Repository navigation
fix(mcp): describe and list run names algorithm_spec, not CLI - #1314
Merged
Merged
Conversation
When MCP describe_algorithm or list_algorithms returns a card, run now names algorithm_spec with the card's name, path placeholder, cases, and model and base_url (never guessed), instead of the shared CLI recipe. The CLI algorithms show recipe is unchanged. Closes #1313
Collaborator
Author
|
Review (Birfy) Tip SHA: 9897444
|
Birfy
enabled auto-merge (squash)
November 29, 2026 10:22
This was referenced Nov 29, 2026
Birfy
added a commit
that referenced
this pull request
Nov 29, 2026
Closes #1315 Base: 105c3a3 Tip SHA: d25d275 ## What changed On tip `105c3a37` (after #1314), MCP `demo` / `plan` / `algorithm_spec` / `diagnose` / `describe_algorithm` already rewrite host-facing `next`, `recommendations`, and card `run` into Path A tool language. MCP `apply` and `show` still returned the shared CLI wording in `error` / `apply_plan` / notes, so a host was told flags and a CLI verb it may not have. A text-artifact-onto-directory MCP `apply` (and the `show` `apply_plan` error) now says to pass `to` set to a file, or read it with `show`, not `pass --to FILE`. MCP `apply(run_id, install_to="grok-bot")` now tells the host to call `apply` with this `run_id` and `to=<path>` (and not `install_to=grok-bot`), then to ask Grok Bot to save the listed files — not `agentdescent apply … --to …`. A `policy_slot` `show` `apply_plan.needs` is `to`, not `--to PATH`. Other shared `--to` / `--from` / `--install-to` / `--home` refusals on these two tools are rewritten the same way. The CLI `apply` / `show` wording is unchanged. The `apply` and `show` tool descriptions mention this tool-language wording. `changelog.d/1315-mcp-apply-wording.md`. ## Verification Tip SHA: d25d275 Ran: - `pytest -q -o addopts='' tests/test_mcp_apply_wording.py tests/test_text_kind_dir_target.py tests/test_skill_library_apply_install.py tests/test_mcp.py` → 80 passed - `python -m tools.changelog_fragments check` → 63 changelog fragment(s) OK - `python -m tools.gen_api_docs --check` → docs/api.md is up to date Not run: - Full offline suite locally — the CI test matrix is the line
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 #1313
Base: 5264d34
Tip SHA: 9897444
What changed
On tip
5264d34b(after #1312), MCPdemo/plan/algorithm_spec/diagnosealready rewrite host-facingnextandrecommendationsinto Path A tool language. MCPdescribe_algorithmandlist_algorithmsstill returned the sharedAlgorithm.describe()runfield untouched, so a host was told to run a CLI recipe it may not have.MCP
describe_algorithm("gepa")(and eachlist_algorithmsrow) now returns:evoskillandarchive_selectionkeep the same path placeholders as the CLI (<your-skill-dir> /<path>). Other card fields stay the same. The CLIalgorithms show/algorithms show --jsonrecipe is unchanged. Thedescribe_algorithmandlist_algorithmstool descriptions mention this tool-languagerun.changelog.d/1313-mcp-describe-run.md.Verification
Tip SHA: 9897444
Ran:
pytest -q -o addopts='' tests/test_mcp_describe_run.py tests/test_algorithms.py tests/test_mcp.py→ 163 passedpython -m tools.changelog_fragments check→ 62 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: