Repository navigation
fix(mcp): diagnose recommendations name tools, not CLI verbs - #1312
Merged
Merged
Conversation
When MCP diagnose returns recommendations, they now name Path A tools (show, apply with dry_run=true, resume, status, doctor, plan, diagnose) instead of the shared CLI verbs. A still-running run is followed with status, then diagnose when it ends (there is no watch tool). The CLI diagnose recommendations are unchanged. Closes #1311
Collaborator
Author
|
Review (Birfy) Tip SHA: 788ca42
|
Birfy
enabled auto-merge (squash)
November 29, 2026 04:27
This was referenced Nov 29, 2026
Birfy
added a commit
that referenced
this pull request
Nov 29, 2026
Closes #1313 Base: 5264d34 Tip SHA: 9897444 ## What changed On tip `5264d34b` (after #1312), MCP `demo` / `plan` / `algorithm_spec` / `diagnose` already rewrite host-facing `next` and `recommendations` into Path A tool language. MCP `describe_algorithm` and `list_algorithms` still returned the shared `Algorithm.describe()` `run` field untouched, so a host was told to run a CLI recipe it may not have. MCP `describe_algorithm("gepa")` (and each `list_algorithms` row) now returns: ``` call algorithm_spec with name=gepa, path=<your-prompt.txt>, cases=<your-cases.jsonl>, and model and base_url (never guess those) ``` `evoskill` and `archive_selection` keep the same path placeholders as the CLI (`<your-skill-dir`> / `<path>`). Other card fields stay the same. The CLI `algorithms show` / `algorithms show --json` recipe is unchanged. The `describe_algorithm` and `list_algorithms` tool descriptions mention this tool-language `run`. `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 passed - `python -m tools.changelog_fragments check` → 62 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 #1311
Base: c5de234
Tip SHA: 788ca42
What changed
On tip
c5de2343(after #1310), MCPdemo/plan/algorithm_specalready rewrite host-facingnextinto Path A tool language. MCPdiagnosestill returned the shareddiagnose_payloadrecommendations untouched, so a host was told to run CLI verbs it may not have, includingagentdescent watchthough Path A has nowatchtool.A solved MCP
diagnosenow returns:A still-running run is followed with
status, thendiagnosewhen it ends. Cancelled / run-failed / reflector-error / partial-improvement / unknown / scoring-mismatch recommendations name the matching Path A tools (resume,show,doctor,plan). Verdict, summary, and evidence stay the same. The CLIdiagnose/diagnose --jsonrecommendations are unchanged. Thediagnosetool description mentions this tool-languagerecommendations.changelog.d/1311-mcp-diagnose-recommendations.md.Verification
Tip SHA: 788ca42
Ran:
pytest -q -o addopts='' tests/test_mcp_diagnose.py tests/test_diagnose.py tests/test_mcp.py→ 76 passedpython -m tools.changelog_fragments check→ 61 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: