Documentation
¶
Overview ¶
Package mcpserver exposes the daemon's tools through the official Go MCP SDK.
Index ¶
Constants ¶
const (
DefaultTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶
func NewHTTPHandler(endpoint, publicEndpoint string, timeout time.Duration, version, token string) (http.Handler, func(), error)
NewHTTPHandler reuses the same tools for a Streamable HTTP endpoint. Its caller must enforce TLS, the configured Host and Origin policy, and Bearer authentication before dispatching to this handler. This lets the caller use an explicitly configured authority even if its TLS listener binds loopback. endpoint addresses the loopback backend. publicEndpoint is the canonical HTTPS MCP URL returned to remote clients for Job recovery. The returned cleanup closes the daemon client's idle connections.
func RunStdioCommand ¶
RunStdioCommand runs MCP independently of the human CLI's configuration and logs.
Types ¶
This section is empty.