Skip to content

Releases

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:46

What's Changed

  • feat(admin): admin extension contract v1 (#435) by @Oaklight in #438
  • feat(admin): source persistence and status hook (#436) by @Oaklight in #440
  • fix(admin): extension contract follow-ups (#439) by @Oaklight in #441
  • feat(tool): declare tool metadata at definition time by @Oaklight in #443
  • test(tool): cover every pipeline-owned metadata field by @Oaklight in #444
  • fix(admin): extension nav groups reuse the shell's section labels (#446) by @Oaklight in #447
  • refactor: split utils.py by concern (#437) by @Oaklight in #448
  • feat(tool): add copy_tool_metadata for wrappers that rebuild functions by @Muhtasim-Munif-Fahim in #449
  • fix(admin): key the auth throttle on the client behind a trusted proxy by @Oaklight in #450
  • fix(admin): normalize IPv4-mapped peers for the throttle key by @Oaklight in #452
  • chore(vendor): sync httpclient to 0.7.3 (#305) by @Oaklight in #453
  • feat(netpolicy): return the checked addresses for connection pinning by @Oaklight in #454
  • chore(release): bump version to 0.21.0 by @Oaklight in #455
  • ci(rosetta): run the full suite against the target llm-rosetta by @Oaklight in #456
  • fix(openapi): expose registered integrations and adopt a moved servers[0] by @Oaklight in #459
  • fix(openapi): validate only the base URL a refresh adopts by @Oaklight in #460
  • fix(admin): validate only the servers[0] entry of a source spec by @Oaklight in #462
  • feat(llm): content-aware truncation and a token result budget by @Oaklight in #463
  • feat(llm): opt-in private storage and paging for truncated results by @Oaklight in #464
  • feat(config): carry per-route parameter schema overrides by @Oaklight in #465
  • fix(permissions): require a PermissionPolicy in set_permission_policy by @Oaklight in #468
  • feat(tool): record parameters whose annotation could not be resolved by @Oaklight in #469
  • docs(readme): add the TestPyPI version badge by @Oaklight in #471
  • feat(tool): resolve function-local annotations with a localns by @Oaklight in #472

New Contributors

Full Changelog: v0.20.1...v0.21.0

v0.20.1

Choose a tag to compare

@github-actions github-actions released this 08 Nov 06:45

What's Changed

  • feat(netpolicy): expose the outbound address policy and harden special-purpose ranges (#425) by @Oaklight in #426
  • fix(admin): reject OpenAPI spec regexes that do not compile by @Oaklight in #427
  • fix(admin): throttle failed token authentication per source (#405) by @Oaklight in #429
  • fix(registry): stop auto discovery from mutating a map under iteration by @Oaklight in #432
  • fix(admin): walk properties named like data keywords (#430) by @Oaklight in #433
  • release: v0.20.1 by @Oaklight in #434

Full Changelog: v0.20.0...v0.20.1

v0.20.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 02:03

What's Changed

  • fix(utils): write non-finite floats as null in tool results by @Oaklight in #347
  • chore(vendor): httpclient 0.6.2 and httpserver 0.7.0 by @Oaklight in #351
  • chore: release 0.19.1 by @Oaklight in #352
  • feat(hints): add declared_execution_hints for wire-safe publishing by @Oaklight in #359
  • fix(schema): recompute the fingerprint when parameters are replaced by @Oaklight in #361
  • fix(metadata): copy mutable containers on construction by @Oaklight in #360
  • fix(schema): parameterize bare containers and dedupe union branches by @Oaklight in #358
  • fix(admin): keep panel JSON bodies valid when a result is non-finite by @Oaklight in #362
  • fix(admin): resolve 19 admin panel defects from the Playwright audit by @Oaklight in #364
  • chore(deps): update vendored zerodep modules by @github-actions[bot] in #367
  • chore(deps): update vendored zerodep modules by @github-actions[bot] in #368
  • chore(deps): update vendored zerodep modules by @github-actions[bot] in #374
  • ci(release): allow workflow_dispatch to release a specific ref by @Oaklight in #371
  • fix(openapi): parse pretty-printed JSON specs (#369) by @Oaklight in #372
  • feat(admin): console UI, source registration, overrides and discovery modes by @Oaklight in #366
  • fix(admin): restrict OpenAPI spec_url to http and https by @Oaklight in #373
  • fix(openapi): refuse operation paths that change the request origin by @Oaklight in #385
  • fix(openapi): require an explicit opt-in to read local spec files (#376) by @Oaklight in #386
  • fix(admin): harden DNS rebinding, execution logs, and cookies by @Oaklight in #392
  • fix(openapi): keep URL userinfo out of source_detail and $ref warnings (#378) by @Oaklight in #387
  • fix(admin): keep secrets out of logs, config responses and imports by @Oaklight in #390
  • chore(deps): update vendored zerodep modules by @github-actions[bot] in #395
  • fix(admin): close stored XSS in the console UI by @Oaklight in #389
  • fix(openapi): cap downloaded specs by bytes and nesting depth by @Oaklight in #388
  • fix(admin): mask stdio command arguments in the config response by @Oaklight in #396
  • fix(mcp): keep credentials out of MCP source_detail (#394) by @Oaklight in #397
  • chore(deps): update vendored zerodep modules by @Oaklight in #401
  • chore(gitignore): ignore local packaging and design artifacts by @Oaklight in #404
  • chore(deps): vendor httpclient 0.7.0 from zerodep@f903134 by @Oaklight in #408
  • fix(openapi): refuse non-public outbound hosts by default (#370) by @Oaklight in #403
  • refactor(openapi): drop the resolve_refs_redacted wrapper by @Oaklight in #412
  • refactor(netpolicy): accept ws/wss schemes natively by @Oaklight in #413
  • feat(mcp): apply the outbound address policy to URL transports by @Oaklight in #411
  • feat(openapi): cap buffered tool responses at 10 MiB (#391) by @Oaklight in #410
  • ci(mcp): run the v1 compatibility job on MCP pull requests (#414) by @Oaklight in #415
  • refactor(mcp): use native ws/wss in the outbound policy by @Oaklight in #416
  • fix(admin): keep the outbound policy at the panel boundary (#370) by @Oaklight in #417
  • fix(openapi): keep async DNS off the event loop (#406) by @Oaklight in #420
  • fix(admin): stop pre-filling a masked stdio command by @Oaklight in #419
  • chore(deps): update vendored zerodep modules by @Oaklight in #422
  • chore(deps): record zerodep source ref 48606bf by @Oaklight in #423
  • release: v0.20.0 by @Oaklight in #424

Full Changelog: v0.19.0...v0.20.0

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 17:57

Installation

pip install toolregistry==0.19.0

Added

  • Public validation error types (#340): ValidationError / ErrorDetail and SchemaValidationError / SchemaErrorDetail are now importable from toolregistry. Tool.validate_parameters() raises the first pair and raw JSON Schema validation raises the second; previously both lived only behind toolregistry._vendor, so a downstream server could not map a validation failure to its own error format without importing a private path. The names are re-exports of the classes actually raised, pinned by identity in tests/test_validation_errors.py.
  • Relevance floor on discover_tools fuzzy results (#330): BM25 hits scoring below min_score_ratio of the best hit are dropped, so a query with one clear match is no longer padded with unrelated tools that merely share a token. The default is 0.3; ToolDiscoveryTool(..., min_score_ratio=...) and enable_tool_discovery(min_score_ratio=...) tune it, and 0 disables the floor. The floor is relative because BM25 scores are not comparable across queries; the best hit is always kept and exact-name lookups bypass it.
  • Per-source filters in declarative config (#297): MCPSource and OpenAPISource accept include / exclude, so a config entry can narrow an MCP server or OpenAPI spec instead of registering everything. Each value may be a bare string or a list of fnmatch globs; the two sides are mutually exclusive. An omitted filter means no filtering, while an empty list is an explicit empty filter that matches nothing. Unknown keys on a source entry or under auth now raise ConfigError naming the entry and the offending keys instead of being silently ignored.
  • call_deferred tolerates client-normalized tool names (#277): _target_tool is resolved by collapsing / and - to _ and folding case, so a name an MCP client rewrote (weather_get_current) reaches the registered tool (weather-get-current). An exact registered spelling always wins over a normalized match, so two names that collide after normalization still dispatch to their own tool. On a miss the error lists close registered names (Did you mean: datetime-now?) so the model can self-correct in one turn.
  • discover_tools input validation and CJK search (#278): query now carries minLength: 1 plus a non-whitespace pattern, and top_k carries minimum: 1; both also raise ValueError at runtime. A zero-dependency tokenizer adds character bigrams for CJK runs before BM25 indexing, so Chinese queries match Chinese tool descriptions instead of silently returning nothing. The discover_tools description now states which tool text queries are matched against.
  • Execution hint metadata (#280): ToolMetadata gains title, read_only_hint, destructive_hint, idempotent_hint and open_world_hint. All default to None (unset / unknown), which stays distinguishable from an explicit False. ToolMetadata.execution_hints returns the resolved dict[str, bool], deriving read_only_hint from ToolTag.READ_ONLY and destructive_hint from ToolTag.DESTRUCTIVE, and filling destructive_hint=False for a read-only tool so the pair cannot contradict the protocol defaults. Keys map 1:1 onto the MCP readOnlyHint / destructiveHint / idempotentHint / openWorldHint annotations. discover_tools declares itself read-only; call_deferred makes no claim because its effect depends on the target tool. Declaring both a read-only and a destructive hint raises a UserWarning, and the config loader warns about unrecognised keys under tool_metadata.<tool>.
  • Registration-time include / exclude filters (#281): register() and register_async() accept include or exclude for the mcp, openapi, and langchain sources, so a source can be narrowed as it is registered instead of registering everything and disabling what is unwanted. Patterns are fnmatch globs matched against both the raw source name (the MCP tool name, the OpenAPI operationId, the LangChain tool name) and the post-namespace registered name. include and exclude are mutually exclusive, and passing either to native / class raises ValueError. Filtered-out tools never reach the registry, so they stay invisible to discover_tools and the admin panel, and the filter is re-applied on refresh so excluded tools neither reappear nor get reported as removed.
  • Tool overrides (#282): override(name, tool, create=False) replaces a registered tool and records the displaced definition, restore_override(name) puts it back, and list_overrides() returns the displaced definitions. Both directions emit the new ChangeEventType.OVERRIDE event; override(..., create=True) on an unregistered name also emits REGISTER, so listeners keyed on registration still learn the tool appeared. A refresh leaves overridden names untouched, re-records the displaced definition from the remote so restore_override() reverts to what the source serves now, and reports the suppressed names in a new RefreshResult.overridden tuple instead of counting them as unchanged. A plain register() onto an overridden name drops the override record, symmetric with unregistering, and namespace-rewriting operations (merge, spinoff, reduce_namespace) keep override records keyed to the renamed tools.
  • Replacement on plain registration is now visible (#290): registering onto an existing name still replaces the stored tool, but now emits a UserWarning naming the discarded definition together with a new ChangeEventType.REPLACE event whose metadata["replaced_tool"] carries it. Pass allow_replace=True to register() / register_async() or to the register_*_tools integration methods to acknowledge the replacement and suppress the warning; the event still fires, so observation is not gated on the flag. Re-registering a field-equal Tool — including the same object under the same namespace — is not a replacement, and when the discarded tool held an override the warning says the recorded override was also dropped.

Changed

  • LangChain integration is structural (#313) (breaking): source="langchain" now accepts any object with name, description, a parameter schema (input_schema, args_schema, parameters, or args), and a sync/async runner. langchain-core and langchain-community are no longer installed by toolregistry[langchain] (the extra is now empty) and are not imported at runtime. The old unconditional del input_schema["description"] raised KeyError for any args model without a docstring, on langchain-core 0.3.x and 1.x alike; registration is now version-independent, pydantic-v1 args_schema models are read through schema() so required is preserved, and the sunset langchain-community dependency is gone. Real BaseTool compatibility is checked by a new scheduled langchain-drift workflow against langchain-core 0.3.x and 1.x on Python 3.10 and 3.13.
  • update_namespace(force=False) preserves the existing namespace (#310) (behavior change): an already-qualified tool is returned unchanged. Previously the namespace field was rewritten to the new value while name kept the old prefix, leaving the two fields inconsistent. Pass force=True to replace it.
  • Tool.qualified_name returns name (#310) (behavior change): for hand-built tools whose namespace / method_name fields disagree with name, the property now returns the authoritative name instead of reconstructing {namespace}-{method_name}. Tools created through register() or the from_* factories are unaffected.
  • Discovery index rebuild is deferred for register/unregister (#289): REGISTER / UNREGISTER now mark the BM25 index stale instead of rebuilding it per event, matching the existing ENABLE / DISABLE / METADATA_UPDATE path. Bulk registration pays one rebuild at the next discover(); deferred-tool descriptions are still refreshed eagerly.
  • Config loader rejects unknown keys (#297) (behavior change): a misspelled key on a tool source entry or under auth now raises ConfigError with the entry index and valid key set. Configs that relied on a silently ignored key will fail at load time instead of partially applying.
  • name_sep applies to every registration source (#302): native functions and class methods now honor ToolRegistry(name_sep="."), matching MCP, OpenAPI, and LangChain. Tool.from_function(..., sep=...) and the new read-only ToolRegistry.name_sep expose the same rule. Default - behavior is unchanged.
  • Tool results with no JSON projection now fail loudly (breaking) (#279): a result that cannot be encoded to JSON raises a TypeError naming the tool and the type instead of being silently converted with str(). The message suggests the fix (to_dict(), model_dump(), tolist(), or returning a str). invoke() surfaces this as an ErrorResult, so the public "never raises" contract is unchanged.
  • Process-backend results are encoded in the parent (#279): the process worker no longer stringifies its result, so the encoder — and the raise above — now apply on the default execution mode rather than only on the thread backend. A tool result crossing a process boundary must therefore be picklable.

Fixed

  • A homogeneous corpus no longer turns a working query into nothing (#342): when every token of a multi-token query was above the document-frequency floor, the token filter left nothing to search and discover() returned [] — so adding a word to file (4 hits) produced file on disk (0 hits). The filter now falls back to the query's capability tokens (tokens that appear in at least one tool name) and keeps the rarest, which reproduces the single-word result on a corpus where every tool says "work with a file on disk". A query made only of boilerplate description words has no capability token and still returns nothing, whi...
Read more

v0.18.1

Choose a tag to compare

@github-actions github-actions released this 16 Sep 09:09

Fixed

  • Admin panel reverse proxy support — API_BASE now uses the full page URL instead of just the origin, so the admin panel works correctly when served behind a reverse proxy at a sub-path (e.g. /admin/openapi/). Previously, API calls would go to the root path and miss the proxy prefix.

Full Changelog: v0.18.0...v0.18.1

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 15 Sep 08:55

Highlights

  • call_deferred proxy tool — invoke deferred tools by name at runtime, enabling lazy tool loading for registries with many tools
  • Frozen dataclasses — Tool and ToolMetadata are now immutable (frozen=True), preventing accidental mutation after registration
  • Two-layer schema model — clean parameters on the dataclass, augmented get_schema() for LLM-facing output; separates storage from presentation

What's Changed

  • feat: add call_deferred proxy tool for invoking deferred tools (#262)
  • refactor: make Tool and ToolMetadata frozen dataclasses (#264)
  • refactor: two-layer schema model — clean parameters, augmented get_schema() (#267)

Full Changelog: v0.17.0...v0.18.0

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 16:58

What's Changed

  • chore(vendor): update httpclient 0.4.5→0.4.7, httpserver 0.2.1→0.3.0 by @Oaklight in #242
  • feat: emit additionalProperties for **kwargs functions by @Oaklight in #241
  • refactor: replace Pydantic with dataclasses + zerodep validate by @Oaklight in #244
  • refactor(llm): migrate to tool_ops API and add google-interactions format by @Oaklight in #247
  • feat: add remote tool source refresh for OpenAPI and MCP by @Oaklight in #248
  • feat: unified register() mega-method with auto-detection by @Oaklight in #249
  • docs(examples): migrate register_from_* to unified register() by @Oaklight in #250
  • chore: add zerodep-update CI workflow by @Oaklight in #255
  • chore(deps): update vendored zerodep modules by @github-actions[bot] in #256
  • feat: add schema fingerprint and staleness timestamp to ToolMetadata by @Oaklight in #253
  • feat: classify breaking vs compatible changes on refresh by @Oaklight in #254
  • feat: expose cookie support in HttpClientConfig by @Oaklight in #259
  • feat: add cookie-based session auth to admin panel by @Oaklight in #260

New Contributors

  • @github-actions[bot] made their first contribution in #256

Full Changelog: v0.16.0...v0.17.0

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 25 Aug 19:32

What's New

Admin Execution Log Warnings (#237)

Tool execution warnings (logger.warning()) are now captured and surfaced in the admin dashboard's execution log. Previously, intermediate warnings during successful tool calls were only written to stderr and invisible in the admin UI. Each ExecutionLogEntry now carries a warnings field, and the dashboard displays warning counts alongside status badges.

MCP 2026-07-28 Content Type Support (#239)

is_content_block_list() now recognizes audio, resource_link, and resource content block types in addition to text and image. This enables the MCP adapter in toolregistry-server to route these content types through the multimodal pipeline instead of JSON-dumping them into text.

Dependency Updates

  • Widened llm-rosetta upper bound from <0.9.0 to <0.10.0 (tested compatible with 0.9.0)
  • Fixed Gemini format test to accept uppercase type strings from llm-rosetta >=0.8

Contributors

  • @clementine-oaklight[bot] — admin execution log warnings (#238)
  • @Oaklight — content block types, dependency updates

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 06 Aug 00:09

What's Changed

  • fix: sanitize Pydantic v2 artifacts (anyOf, nullable, title) from get_schema() output by @clementine-oaklight[bot] in #216
  • fix: shared AsyncRuntime for sync→async bridging (#217) by @milo-oaklight[bot] in #220
  • feat(executor): InlineBackend + ExecutionHandle.result_async() (#223) by @Oaklight in #226
  • feat(registry): invoke/ainvoke through backend seam, return Result types (#224) by @Oaklight in #227
  • feat(registry): per-tool batch backend + aexecute_tool_calls, drop force_thread (#225) by @Oaklight in #228
  • refactor(mcp): add v1/v2 compat layer for client-side integration by @Oaklight in #232
  • refactor(executor): lazy InlineBackend, eliminate ainvoke Handle bypass (#229) by @Oaklight in #230
  • feat(executor): enforce per-call timeout for inline backend by @Oaklight in #233
  • refactor(executor): promote inline to thread on sync path — complete timeout matrix by @Oaklight in #234
  • fix(executor): block process for inline tools + e2e test coverage by @Oaklight in #235

New Contributors

  • @milo-oaklight[bot] made their first contribution in #220

Full Changelog: v0.14.0...v0.15.0

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 08:44

v0.14.0

Added

  • Programmatic Tool Calling (PTC): registry.ptc.enable() registers a programmatic_tool_call tool that lets LLMs write and execute Python code with registered tools callable in the namespace. Two-layer isolation via codecell.IpcSubprocessRuntime.
  • registry.invoke(tool_name, kwargs): Single-tool execution with full pipeline (permissions, logging).
  • Invocation tracking: invocation_id field on execution log entries (tr_bat_, tr_ptc_, tr_sig_ prefixes).
  • headers parameter for register_from_mcp (#212): pass custom HTTP headers (e.g. Authorization: Bearer ...) to MCP servers using SSE or streamable-http transports.
  • api_format="rosetta-ir" (#207): get_schemas() and build_tool_call_messages() can return rosetta IR types directly.

Changed

  • Structured result types for execute_tool_calls() (#202): returns ResultList of ToolCallResult | ErrorResult instead of dict.
  • Renamed LLM builder functions for clarity (old names preserved as deprecated aliases).
  • Canonical "openai-responses" format name (renamed from "openai-response").

Fixed

  • Persistent MCP connection breaks in sync mode (#211): MCPConnectionManager now uses a daemon thread with a persistent event loop for sync callers.
  • convert_tool_calls() argument loss (#205): passing an already-normalized ToolCall no longer loses arguments.

Dependencies

  • Bump llm-rosetta minimum from >=0.5.1,<0.7.0 to >=0.7.1,<0.8.0.

Install

pip install toolregistry==0.14.0

Full Changelog: v0.13.0...v0.14.0