Documentation
¶
Overview ¶
Package mcpserver exposes the shared-context ledger as MCP tools over Streamable HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(configPath string)
Init loads config and opens the store. Call once before RegisterTools/NewHTTPHandler. It panics on unrecoverable init failure (per repo init contract).
func NewHTTPHandler ¶
NewHTTPHandler builds a standalone Streamable HTTP handler with its own MCP server.
func RegisterTools ¶
RegisterTools registers the 7 ctx_* tools onto an existing MCP server (embed API). auditWriter receives JSON audit log entries; nil discards them (e.g. when the host already logs tool calls).
func SetToolDescriptions ¶
SetToolDescriptions overrides tool descriptions (programmatic > default).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.