Documentation
¶
Overview ¶
Package mcpserver exposes the ka service as an MCP server (PRD §11): a few coarse tools whose input schemas carry the workspace's real vocabulary, compact text results, and actionable errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NextRenderOptions = render.DetailOptions{MaxTokens: nextTokens, MinBody: 150, Untrusted: true}
NextRenderOptions is how ka_next renders its ticket.
var Version = "dev"
Version is reported to clients.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Actor string // override the agent actor (default agent/<clientInfo.name>)
MaxWait time.Duration
// Presence, when set, records each session's calls (daemon mode).
Presence *presence.Tracker
}
Options configures the server.
type Proxy ¶
type Proxy struct {
Endpoint string // http://127.0.0.1:7711/mcp
Token string // the daemon's local token
Header http.Header // extra headers (X-Ka-Actor, X-Ka-Session)
Client *http.Client
// contains filtered or unexported fields
}
Proxy bridges a stdio MCP client to a daemon's Streamable HTTP endpoint (PRD §8.3), so `ka mcp` shares the daemon's index, presence and events. Messages pass through unchanged: the client's initialize reaches the daemon, which derives the agent's actor from clientInfo exactly as the in-process server does.
type Server ¶
Server wraps an MCP server around a service.
func (*Server) HTTPHandler ¶
HTTPHandler serves MCP over Streamable HTTP (mounted at /mcp by the daemon).