Documentation
¶
Index ¶
- func DecodeCatalogFile[T any](path string) ([]T, bool, error)
- func DecodeVMCPManifest(data []byte) (types.VMCPManifest, error)
- func NormalizeManifest(entry *types.MCPServerCatalogEntryManifest)
- func NormalizeSystemManifest(entry *types.SystemMCPServerCatalogEntryManifest)
- func SanitizeName(name string) string
- func VMCPEntryKey(entryKey, displayName string) string
- func VMCPName(catalogName, sourceURL, entryKey, displayName string) string
- func ValidateConfigurationFields(data []byte) error
- func ValidateEntryKey(key string) error
- func ValidateManifest(ctx context.Context, entry types.MCPServerCatalogEntryManifest, ...) error
- func ValidateSourceFields(entry types.MCPServerCatalogEntryManifest) error
- func WalkCatalogFiles(root string) (iter.Seq2[string, error], error)
- type ValidationOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeVMCPManifest ¶ added in v0.26.2
func DecodeVMCPManifest(data []byte) (types.VMCPManifest, error)
DecodeVMCPManifest maps catalog entry-key references to the resolved-ID field used by the vMCP API and storage model.
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 VMCPEntryKey ¶ added in v0.26.2
VMCPEntryKey returns the key that identifies a vMCP within its source, falling back to one derived from the display name.
func VMCPName ¶ added in v0.26.2
VMCPName gives catalog sync and composite migration the same resource identity.
func ValidateConfigurationFields ¶ added in v0.26.2
ValidateConfigurationFields checks removed fields before typed decoding discards them. Other unknown fields remain allowed for forward compatibility.
func ValidateEntryKey ¶ added in v0.26.2
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
}