mcpcatalog

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 4 Imported by: 0

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

func GrantName(grant string) (string, bool)

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).

func IsGrant

func IsGrant(grant string) bool

IsGrant reports whether grant is an MCP API-key grant in either the canonical "mcp:<name>" or deprecated "mcp-<name>" form.

func Names

func Names() []string

Names returns the sorted list of known server names (for error messages).

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.

func Lookup

func Lookup(name string) (Entry, bool)

Lookup returns the resolved entry for a name, ok=false if unknown. String (OAuth) entries default to grant "oauth:<name>" and header "Authorization".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL