Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 11 Oct 23:41
· 10 commits to main since this release

Breaking changes

list_tools() and call_tool() are now coroutines and must be awaited, and the
transport callable must return an awaitable. An async def transport satisfies
the new contract.

tools = await docs.list_tools()
result = await docs.call_tool(tools[0], {"query": "rate limits"})

A synchronous embedder must manage its own event loop. The package deliberately
ships ONE async path and no synchronous wrapper: a wrapper here would choose an
event loop on the embedder's behalf, and that is the embedder's decision, not
this package's. It is also why the change is a major-style break at 0.2.0 rather
than an additive async twin — two entry points into the same request would mean
two paths to keep honest, and only one of them exercised.

What is unchanged

Everything the trust boundary does. TrustPolicy, tool pinning, the gate, the
mirrored-parameter rules and the result guard behave exactly as in 0.1.0, and
the suite proves each of them still bites on the async path rather than assuming
the conversion preserved them — including a changed pin refused after awaiting
discovery, an oversized result refused after awaiting the call, and a
gate-refused call that sends no request at all.

Still zero runtime dependencies. The package opens no connections and now also
chooses no event loop, so it still names no HTTP library.

initialize remains absent (G-52): this client speaks a stateless protocol with
no handshake, and the removed method made failures read backwards.