Documentation
¶
Overview ¶
Package mcpserver exposes Beacon's local configuration and operational state through the Model Context Protocol. It is a thin transport over the same config.Service and stats.Registry used by the REST API and web UI, so MCP writes get identical validation, persistence, and hot reconciliation.
Index ¶
Constants ¶
View Source
const (
EndpointPath = "/mcp"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(svc *config.Service, reg *stats.Registry, version string, log *slog.Logger) http.Handler
Handler serves the current MCP Streamable HTTP transport. Beacon's tools are synchronous and keep no cross-call state, so stateless mode avoids retaining one server session per client. Request bodies are bounded before the SDK decodes JSON. Cross-origin protection enforces the MCP transport's Origin requirement while continuing to allow non-browser local/LAN agents.
Types ¶
Click to show internal directories.
Click to hide internal directories.