mcp

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnownServerRegistry

type KnownServerRegistry map[string][]string

KnownServerRegistry maps lowercase MCP server names to their tool observation strings. Matched servers get these observations merged in addition to transport/command metadata.

func DefaultKnownServers

func DefaultKnownServers() KnownServerRegistry

DefaultKnownServers returns the built-in registry of well-known public MCP servers.

func (KnownServerRegistry) Lookup

func (r KnownServerRegistry) Lookup(name string) []string

Lookup returns the tool observations for a given server name (case-insensitive). Returns nil if the server is not in the registry.

type McpConfigParser

type McpConfigParser struct {
	// contains filtered or unexported fields
}

func NewMcpConfigParser

func NewMcpConfigParser(known KnownServerRegistry) *McpConfigParser

func (*McpConfigParser) FileType

func (p *McpConfigParser) FileType() string

func (*McpConfigParser) Filenames

func (p *McpConfigParser) Filenames() []string

func (*McpConfigParser) Parse

func (p *McpConfigParser) Parse(data []byte) (parser.ParsedFile, error)

Jump to

Keyboard shortcuts

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