Documentation
¶
Overview ¶
Package mcpserver is the MCP adapter for search, describe, and invoke.
Index ¶
- Constants
- Variables
- func Handler(srv *capability.Server, opt Options, ids []Identity) (http.Handler, error)
- func Listen(ctx context.Context, addr string, h http.Handler) (string, error)
- func RegisterTools(cat *catalog.Catalog, opt Options) []string
- func RunStdio(ctx context.Context, srv *capability.Server, opt Options) error
- func Serve(ctx context.Context, addr string, h http.Handler) error
- func ToolNames(cat *catalog.Catalog, pins []string, directPins, grouped bool) []string
- func ValidatePins(cat *catalog.Catalog, pins []string) error
- func ValidateRegistration(cat *catalog.Catalog, opt Options) error
- type Identity
- type Options
Constants ¶
View Source
const ( // CallerHeader is the credential of the process calling veto. // The value identifies that caller. It is not an upstream API token. CallerHeader = "Veto-Caller" // DefaultAddr is the listen address for serve --http. DefaultAddr = "127.0.0.1:7433" )
View Source
const Instructions = "Search, then describe, then invoke. A delete waits until confirmation is stored."
Instructions is the procedure a host gives the model on connect.
Variables ¶
View Source
var Version = "dev"
Version is the MCP server build. A release sets it with -X.
Functions ¶
func Handler ¶
Handler is the Streamable HTTP MCP endpoint. A request without a known caller credential is rejected first.
Types ¶
Click to show internal directories.
Click to hide internal directories.