Repository navigation
fix(mcp): demo next names Path A tools, not CLI verbs - #1308
Merged
Merged
Conversation
Closes #1307 After a successful MCP demo, next named the shared CLI demo --json list (show / algorithms run or init / plan --probe / evolve). Hosts that followed algorithm_spec or plan next would call those tools; a host that followed this list was told to run CLI verbs it may not have. demo now rewrites next into show, apply with dry_run=true, and algorithm_spec (or list_algorithms then algorithm_spec). A real-model-only refusal names algorithm_spec, not a CLI run recipe. The CLI demo next and refusal are unchanged.
Collaborator
Author
|
Review (Birfy) Tip SHA: 001b346
|
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.
Closes #1307
Base: f9c35b5
Tip SHA: 001b346
What changed
On tip
f9c35b5, MCPalgorithm_specandplanalready rewritenextinto host tool language (#1296 / #1298 / #1303 / #1305). MCPdemostill returned the shared CLIdemo --jsonlist untouched:A host that followed the
algorithm_specorplannextwould call those tools; a host that followed thisdemonextwas told to run CLI verbs it may not have.A successful MCP
demonow returns:When no algorithm was named, the last step names
list_algorithmsand then that samealgorithm_speccall (there is no MCPinittool). A real-model-only card's refusal namesalgorithm_specanddescribe_algorithm, notagentdescent algorithms run. Thedemotool description mentions this tool-languagenext. No model name is guessed. The tool still does not start a real run or probe. The CLIdemonext and live-model refusal are unchanged.changelog.d/1307-mcp-demo-next.md.Verification
Tip SHA: 001b346
Ran:
pytest -q -o addopts='' tests/test_mcp.py tests/test_demo.py tests/test_mcp_algorithm_spec.py tests/test_mcp_plan_probe.py tests/test_first_run_caps.py→ 125 passedpython -m tools.changelog_fragments check→ 59 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: