Skip to content

v0.5.0

Latest

Choose a tag to compare

@PaytonWebber PaytonWebber released this 10 Jun 21:39
· 1 commit to main since this release
v0.5.0
ef39958

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.CallToolResult

Motivated 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