Documentation
¶
Overview ¶
Package mcpserver exposes Dibs tools over the Model Context Protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns a stateless Streamable HTTP MCP handler. Browser GETs (Accept: text/html, no MCP Accept types) get a plain instructions page instead of the protocol's 405, so pasting the endpoint URL into a browser explains how to connect an agent rather than dead-ending.
Types ¶
type Config ¶
type Config struct {
Hub auth.HubClient
// Deps is the shared dependency set (pkg/deps). MCP tools currently
// read only Store and Registry; embedding the whole set keeps this
// surface from silently drifting out of sync with the HTTP one when a
// new subsystem is added.
deps.Deps
BasePath string
}
Config wires Dibs dependencies into the MCP endpoint.