Repository navigation
Adds mcp.StatefulToolPack(State, defs) for tool packs whose handlers share mutable state (a daemon client, a database handle). The generated struct holds state: *State and passes it as the handlers' first parameter:
fn record(self: *Bridge, allocator: Allocator, args: RecordArgs) !types.CallToolResultMotivated by migrating a real downstream server whose tools are all stateful; the stateless ToolPack could not express it without globals. No breaking changes.
Install
zig fetch --save https://github.com/PaytonWebber/zig-mcp-sdk/archive/refs/tags/v0.5.0.tar.gz