The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
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.
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).
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.
New constructs a server. 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).
Serve reads newline-delimited JSON-RPC messages from in and writes responses
to out. Logs must never go to out — callers should leave log output on stderr.
Returns when in is exhausted or a fatal I/O error occurs.