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 ¶
const ProtocolVersion = "2025-03-26"
ProtocolVersion is the MCP protocol version this server speaks. When a client requests a different version we still answer with this one and do not reject the session (MCP version negotiation).
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.