Documentation
¶
Overview ¶
Package mcpserver serves the tool catalogue over the Model Context Protocol (design/agents.md, W2): /mcp in Streamable HTTP, stateless, with JSON answers. A call answers from the request's viewer: a bearer token's, the trusted proxy's, or the public view; never a browser's session cookie.
Index ¶
Constants ¶
const Path = "/mcp"
Path is the endpoint: POST, and GET and DELETE answered 405 by the stateless transport.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Catalogue *tools.Catalogue
Version string // the release, in initialize's serverInfo
PublicURL string // the portal's origin; a browser Origin other than it is refused
RequireAuth bool // no public view: a call without a token or the proxy's identity is refused
Log *slog.Logger
}
Options configures the endpoint.