Documentation
¶
Overview ¶
Package mcp implements a thin stdio MCP server over the local gadak mirror.
It is the access path for clients without a shell (Claude Desktop and similar). Agents that can run commands should prefer `gadak sql` / `gadak issue` / `gadak search` instead — see docs/MCP.md and contracts/agent.md.
Protocol surface is deliberately small and implemented with the Go stdlib only: initialize, tools/list, tools/call, notifications/initialized, ping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
DBPath string
Profile string
// Version is the gadak binary version reported in serverInfo.
Version string
// contains filtered or unexported fields
}
Server is a stdio MCP session bound to one mirror database. Callers build it as a literal; the database is opened on first tool call, so initialize / tools/list work even when the mirror is missing (the tool then returns a clear isError message).