Documentation
¶
Overview ¶
Package mcpcatalog holds the registry of well-known MCP servers, used both for `moat grant oauth` auto-discovery and for resolving bare `mcp:` names in moat.yaml. It is a dependency-free leaf package so config and provider packages can import it without an import cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrantName ¶
GrantName reports whether grant is an MCP API-key grant and, if so, returns the bare server name. It accepts both the canonical "mcp:<name>" form and the deprecated (but still supported) "mcp-<name>" form, so the two behave identically throughout grant validation, routing, and credential resolution.
Examples: "mcp:context7" → ("context7", true), "mcp-context7" → ("context7", true), "oauth:notion" → ("", false), "github" → ("", false).
Types ¶
type Entry ¶
type Entry struct {
URL string
Grant string
Header string
// OAuth reports whether this server authenticates via OAuth (grant
// "oauth:<name>"), as opposed to an API-key grant (e.g. context7's
// "mcp:context7"). Only OAuth entries are valid targets for
// `moat grant oauth` discovery.
OAuth bool
}
Entry is a resolved well-known MCP server.