Repository navigation
docs(agent-tool-use): a tool is a composable function - the MCP binding's declaration shape, the Playground calls mermaid.render - #630
Merged
Conversation
…ng's declaration shape, the Playground calls mermaid.render The design spec draft-design-specs/agent-tool-use.md records Eric's review of 2026-11-16: the packs declare each MCP tool as a preload function bound in code through an encapsulated client (bind(server, tool, digest)), the server file keeps servers only, a route names the capability, never the transport, and the engine-side DiagramRender stays as the graph's business logic; a generic public mcp.tool route was proposed and set aside, so ADR-0033 stands (one consequence line). Section 9 of the agent-loop spec and the orchestration concept's adapter-B passage point to it. The Playground's diagram-assistant calls mermaid.render: DiagramRender, its mock, its test, the route map, the server file (servers only, an optional copy of the binding's default entry), both READMEs and the unreleased CHANGELOG entry. DiagramAssistantTest: 4 tests green. The packs: mercury-python #55 and mercury-nodejs #122. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…the reshaped MCP binding, both packs Both packs' bindings (mercury-python #55, mercury-nodejs #122, merged) and the Playground built from this branch, against the live Mermaid server: two runs, 200 each, two model turns on Haiku 4.5, the image stored, 20 trace records per run with every parent owned by a record - the pack leg's ancestry continuous from mermaid.render to the REST entry. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
Author
|
The end-to-end regression on the live Mermaid server is recorded in |
… strict docs build cannot resolve a file outside docs/ Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Nov 16, 2026
…hape and the Playground on mermaid.render, recorded as landed Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
draft-design-specs/agent-tool-use.mdrecords the 2026-11-16 review of the MCP binding's shape: a tool of an MCP server isa composable function of the language pack, declared in its code as a
preloadfunction bound through an encapsulatedclient (
bind(server, tool, schema_sha256)), the server file keeps servers only, a route names the capability and never thetransport (
mermaid.render), and an engine-side function in front of a pack route is business logic of the graph that stayswhen it does more than call the tool. Section 9 of
llm-helper-agent-loop.mdand the adapter-B passage ofai-agent-orchestration.mdcarry dated pointers; ADR-0033 gains one consequence sentence, the decision untouched. ThePlayground's
diagram-assistantfollows:DiagramRendercallsmermaid.render,MockDiagramRenderserves it,DiagramAssistantTest's javadoc follows,event-over-http.yamlmaps it,mcp/mermaid-servers.ymlkeeps the server onlyas an optional copy of the binding's default entry, and the graph README, the example README and the unreleased CHANGELOG
entry name the function instead of the old route.
mvn test -f examples/minigraph-playground/pom.xml -Dtest=DiagramAssistantTest:4 tests, 0 failures. The packs' halves are Accenture/mercury-python#55 and Accenture/mercury-nodejs#122.
Why
The binding built on 2026-11-14 conjured each tool's route at boot from a YAML allowlist row as an alias of a private
mcp.toolfunction, so the Playground'sdiagram.rendercalled a route,diagram.render.mcp, that nopreloadin the packdeclared: a non-standard mechanism a developer could forget, and a second place to look. The review weighed a generic public
mcp.toolroute with the server and the tool named in the call (ADR-0033's rejected alternative, which would have needed arule that no catalog row names it directly) against a pack function per tool bound in code, and chose the latter: the
architecture of one route per tool with a pinned digest is kept, the generic route disappears instead of being guarded, and
the engine stays MCP-free and tool-free as design (d) of ADR-0033 intends. The route name drops the transport because a tool
may start as an MCP tool and later be implemented another way while the graph stays unchanged.
🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com