Repository navigation
fix(mcp): describe and algorithm_spec name/kind refusals name tools, not CLI - #1322
Merged
Merged
Conversation
…not CLI (#1321) Closes #1321 Unknown-name and kind-mismatch errors from describe_algorithm and algorithm_spec now name list_algorithms (and algorithm_spec with kind=text when a one-file retry applies), not CLI algorithms list / run / init / demo --kind. list_algorithms note filters with kind. CLI wording is unchanged.
Collaborator
Author
|
Self-review (Birfy) Tip SHA: cff80cd
|
Birfy
enabled auto-merge (squash)
November 30, 2026 16:26
This was referenced Nov 30, 2026
Closed
Birfy
added a commit
that referenced
this pull request
Nov 30, 2026
Closes #1323 Base: 8d47530 Tip SHA: de577dc ## What changed On tip `8d47530e` (after #1322), MCP `describe_algorithm` / `algorithm_spec` unknown-name and kind-mismatch refusals already name Path A tools, and `_mcp_gate_wording` already rewrites `pass --kind`. The leftover a host actually reads is a kind refusal that still named CLI flags: `plan` / `start` / `algorithm_spec` on a `kind=text` directory said `use --kind skill_dir / …`; `algorithm_spec(..., kind="nope")` said `--kind must be`; and `demo` kind / unknown-card refusals still said `demo --kind` / `demo --algorithm` / `see \`agentdescent algorithms list\``. `plan` also returned a raw `SpecError`, so the text-directory message never went through the rewriter. MCP `plan` / `start` / `algorithm_spec` / `demo` kind and unknown-demo-card refusals now name Path A fields (`kind`, `algorithm`) and `list_algorithms`. The CLI `plan` / `algorithms run` / `demo` wording is unchanged. `changelog.d/1323-mcp-kind-flag-wording.md`. ## Verification Tip SHA: de577dc Ran: - `pytest -q -o addopts='' tests/test_mcp_kind_flag_wording.py tests/test_mcp_plan_start_wording.py tests/test_mcp_algorithm_error_wording.py tests/test_mcp.py tests/test_mcp_algorithm_spec.py tests/test_mcp_algorithm_spec_placeholder_wording.py tests/test_mcp_describe_run.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py tests/test_demo.py` → 131 passed - `python -m tools.changelog_fragments check` → 67 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 #1321
Base: 37d0387
Tip SHA: cff80cd
What changed
On tip
37d03875(after #1320), MCPdescribe_algorithm/list_algorithmsalready rewrite each card'srunintoalgorithm_spec, and placeholder / plan / apply / diagnose refusals already speak Path A tools.The leftover a host actually reads is the unknown-name and kind-mismatch refusal from
describe_algorithmandalgorithm_spec. Those messages are shared with the CLI, and MCP was returning them almost unchanged, so a host was sent toagentdescent algorithms list/algorithms run/init/demo --kind.MCP
describe_algorithmandalgorithm_specname/kind refusals now name Path A tools:list_algorithms(withkindwhen it is known) and, when a one-file text retry applies,algorithm_specwithkind=text,path,cases, andmodelandbase_url(never guess those).list_algorithmsnotefilters with thekindfield, not CLI--kind.The CLI
algorithms show/run/initwording is unchanged. Thedescribe_algorithmandalgorithm_spectool descriptions mention this wording.changelog.d/1321-mcp-algorithm-error-wording.md.Verification
Tip SHA: cff80cd
Ran:
pytest -q -o addopts='' tests/test_mcp_algorithm_error_wording.py tests/test_mcp_describe_run.py tests/test_mcp_algorithm_spec_placeholder_wording.py tests/test_mcp_plan_start_wording.py tests/test_mcp_algorithm_spec.py tests/test_mcp.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py→ 86 passedpython -m tools.changelog_fragments check→ 66 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: