Documentation
¶
Overview ¶
Package mcp serves the API's methods as MCP tools: one tool per unary method, generated from the proto schema into gen/mcptools. It knows nothing of tokens; the caller says which procedures a client may reach.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Allow reports whether a procedure is offered as a tool; nil offers none.
Allow func(procedure string) bool
// HTTP and BaseURL are where every call goes.
HTTP connect.HTTPClient
BaseURL string
// Before runs ahead of each call; an error ends the call with it.
Before func(ctx context.Context) error
Version string
}
Options says which tools a server offers and where their calls go.