Documentation
¶
Index ¶
- func DecodeCatalogFile[T any](path string, strict bool) ([]T, bool, error)
- func NormalizeManifest(entry *types.MCPServerCatalogEntryManifest)
- func NormalizeSystemManifest(entry *types.SystemMCPServerCatalogEntryManifest)
- func SanitizeName(name string) string
- func ValidateManifest(ctx context.Context, entry types.MCPServerCatalogEntryManifest, ...) error
- func ValidateSourceFields(entry types.MCPServerCatalogEntryManifest) error
- func WalkCatalogFiles(root string) (iter.Seq2[string, error], bool, error)
- type ValidationOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeManifest ¶
func NormalizeManifest(entry *types.MCPServerCatalogEntryManifest)
NormalizeManifest applies the same compatibility normalization used when Obot imports a catalog source.
func NormalizeSystemManifest ¶
func NormalizeSystemManifest(entry *types.SystemMCPServerCatalogEntryManifest)
NormalizeSystemManifest applies the same compatibility normalization used when Obot imports a system catalog source.
func SanitizeName ¶
SanitizeName converts a catalog entry name to the RFC 1123-compatible form used when catalog entries are persisted.
func ValidateManifest ¶
func ValidateManifest(ctx context.Context, entry types.MCPServerCatalogEntryManifest, options ValidationOptions) error
func ValidateSourceFields ¶
func ValidateSourceFields(entry types.MCPServerCatalogEntryManifest) error
Types ¶
type ValidationOptions ¶
type ValidationOptions struct {
MCP mcp.ValidationOptions
MCPBackend string
GitManaged bool
}
Click to show internal directories.
Click to hide internal directories.