Repository navigation
Releases
v0.21.0
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
- @Muhtasim-Munif-Fahim made their first contribution in #449
Full Changelog: v0.20.1...v0.21.0
v0.20.1
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
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
Installation
pip install toolregistry==0.19.0Added
- Public validation error types (#340):
ValidationError/ErrorDetailandSchemaValidationError/SchemaErrorDetailare now importable fromtoolregistry.Tool.validate_parameters()raises the first pair and raw JSON Schema validation raises the second; previously both lived only behindtoolregistry._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 intests/test_validation_errors.py. - Relevance floor on
discover_toolsfuzzy results (#330): BM25 hits scoring belowmin_score_ratioof 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 is0.3;ToolDiscoveryTool(..., min_score_ratio=...)andenable_tool_discovery(min_score_ratio=...)tune it, and0disables 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):
MCPSourceandOpenAPISourceacceptinclude/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 offnmatchglobs; 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 underauthnow raiseConfigErrornaming the entry and the offending keys instead of being silently ignored. call_deferredtolerates client-normalized tool names (#277):_target_toolis 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_toolsinput validation and CJK search (#278):querynow carriesminLength: 1plus a non-whitespacepattern, andtop_kcarriesminimum: 1; both also raiseValueErrorat 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. Thediscover_toolsdescription now states which tool text queries are matched against.- Execution hint metadata (#280):
ToolMetadatagainstitle,read_only_hint,destructive_hint,idempotent_hintandopen_world_hint. All default toNone(unset / unknown), which stays distinguishable from an explicitFalse.ToolMetadata.execution_hintsreturns the resolveddict[str, bool], derivingread_only_hintfromToolTag.READ_ONLYanddestructive_hintfromToolTag.DESTRUCTIVE, and fillingdestructive_hint=Falsefor a read-only tool so the pair cannot contradict the protocol defaults. Keys map 1:1 onto the MCPreadOnlyHint/destructiveHint/idempotentHint/openWorldHintannotations.discover_toolsdeclares itself read-only;call_deferredmakes no claim because its effect depends on the target tool. Declaring both a read-only and a destructive hint raises aUserWarning, and the config loader warns about unrecognised keys undertool_metadata.<tool>. - Registration-time
include/excludefilters (#281):register()andregister_async()acceptincludeorexcludefor themcp,openapi, andlangchainsources, so a source can be narrowed as it is registered instead of registering everything and disabling what is unwanted. Patterns arefnmatchglobs matched against both the raw source name (the MCP tool name, the OpenAPIoperationId, the LangChain tool name) and the post-namespace registered name.includeandexcludeare mutually exclusive, and passing either tonative/classraisesValueError. Filtered-out tools never reach the registry, so they stay invisible todiscover_toolsand 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, andlist_overrides()returns the displaced definitions. Both directions emit the newChangeEventType.OVERRIDEevent;override(..., create=True)on an unregistered name also emitsREGISTER, so listeners keyed on registration still learn the tool appeared. A refresh leaves overridden names untouched, re-records the displaced definition from the remote sorestore_override()reverts to what the source serves now, and reports the suppressed names in a newRefreshResult.overriddentuple instead of counting them asunchanged. A plainregister()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
UserWarningnaming the discarded definition together with a newChangeEventType.REPLACEevent whosemetadata["replaced_tool"]carries it. Passallow_replace=Truetoregister()/register_async()or to theregister_*_toolsintegration 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-equalTool— 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 withname,description, a parameter schema (input_schema,args_schema,parameters, orargs), and a sync/async runner.langchain-coreandlangchain-communityare no longer installed bytoolregistry[langchain](the extra is now empty) and are not imported at runtime. The old unconditionaldel input_schema["description"]raisedKeyErrorfor any args model without a docstring, onlangchain-core0.3.x and 1.x alike; registration is now version-independent, pydantic-v1args_schemamodels are read throughschema()sorequiredis preserved, and the sunsetlangchain-communitydependency is gone. RealBaseToolcompatibility is checked by a new scheduledlangchain-driftworkflow againstlangchain-core0.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 thenamespacefield was rewritten to the new value whilenamekept the old prefix, leaving the two fields inconsistent. Passforce=Trueto replace it.Tool.qualified_namereturnsname(#310) (behavior change): for hand-built tools whosenamespace/method_namefields disagree withname, the property now returns the authoritativenameinstead of reconstructing{namespace}-{method_name}. Tools created throughregister()or thefrom_*factories are unaffected.- Discovery index rebuild is deferred for register/unregister (#289):
REGISTER/UNREGISTERnow mark the BM25 index stale instead of rebuilding it per event, matching the existingENABLE/DISABLE/METADATA_UPDATEpath. Bulk registration pays one rebuild at the nextdiscover(); 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
authnow raisesConfigErrorwith 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_sepapplies to every registration source (#302): native functions and class methods now honorToolRegistry(name_sep="."), matching MCP, OpenAPI, and LangChain.Tool.from_function(..., sep=...)and the new read-onlyToolRegistry.name_sepexpose 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
TypeErrornaming the tool and the type instead of being silently converted withstr(). The message suggests the fix (to_dict(),model_dump(),tolist(), or returning astr).invoke()surfaces this as anErrorResult, 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 tofile(4 hits) producedfile 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...
v0.18.1
Fixed
- Admin panel reverse proxy support —
API_BASEnow 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
Highlights
call_deferredproxy tool — invoke deferred tools by name at runtime, enabling lazy tool loading for registries with many tools- Frozen dataclasses —
ToolandToolMetadataare now immutable (frozen=True), preventing accidental mutation after registration - Two-layer schema model — clean
parameterson the dataclass, augmentedget_schema()for LLM-facing output; separates storage from presentation
What's Changed
- feat: add
call_deferredproxy tool for invoking deferred tools (#262) - refactor: make
ToolandToolMetadatafrozen dataclasses (#264) - refactor: two-layer schema model — clean parameters, augmented
get_schema()(#267)
Full Changelog: v0.17.0...v0.18.0
v0.17.0
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
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-rosettaupper bound from<0.9.0to<0.10.0(tested compatible with 0.9.0) - Fixed Gemini format test to accept uppercase type strings from llm-rosetta >=0.8
Contributors
v0.15.0
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
v0.14.0
Added
- Programmatic Tool Calling (PTC):
registry.ptc.enable()registers aprogrammatic_tool_calltool that lets LLMs write and execute Python code with registered tools callable in the namespace. Two-layer isolation viacodecell.IpcSubprocessRuntime. registry.invoke(tool_name, kwargs): Single-tool execution with full pipeline (permissions, logging).- Invocation tracking:
invocation_idfield on execution log entries (tr_bat_,tr_ptc_,tr_sig_prefixes). headersparameter forregister_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()andbuild_tool_call_messages()can return rosetta IR types directly.
Changed
- Structured result types for
execute_tool_calls()(#202): returnsResultListofToolCallResult | ErrorResultinstead ofdict. - 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):
MCPConnectionManagernow uses a daemon thread with a persistent event loop for sync callers. convert_tool_calls()argument loss (#205): passing an already-normalizedToolCallno longer loses arguments.
Dependencies
- Bump
llm-rosettaminimum from>=0.5.1,<0.7.0to>=0.7.1,<0.8.0.
Install
pip install toolregistry==0.14.0Full Changelog: v0.13.0...v0.14.0