Repository navigation
fix(mcp): apply and show refusals name tools, not CLI - #1316
Merged
Merged
Conversation
When MCP apply or show returns a refusal, error / apply_plan / notes now name Path A fields (to, from, install_to) and tools, instead of CLI flags (--to FILE) or `agentdescent apply … --to …`. The CLI apply / show wording is unchanged. Closes #1315
Collaborator
Author
|
Review (Birfy) Tip SHA: d25d275
|
Birfy
enabled auto-merge (squash)
November 29, 2026 16:26
This was referenced Nov 29, 2026
Birfy
added a commit
that referenced
this pull request
Nov 29, 2026
Closes #1317 Base: ca769cf Tip SHA: e990f52 ## What changed On tip `ca769cfb` (after #1316), MCP `demo` / `plan` (`next` after a probe) / `algorithm_spec` / `diagnose` / `describe_algorithm` / `apply` / `show` already rewrite host-facing `next`, `recommendations`, card `run`, and apply/show refusals into Path A tool language. MCP `plan`, `start`, `resume`, and `algorithm_spec` still returned the shared CLI wording in `error` when a worker CLI is missing or a spent-quota resume is refused, so a host was told a CLI verb or flag it may not have. A missing-CLI MCP `plan` or `start` (and `algorithm_spec` when the written spec then fails plan, and `resume` when a plugin host is missing) now says `call \`doctor\``, not `see \`agentdescent doctor\``. MCP `resume` of a `QuotaExhausted` run now says `pass force=true`, not `pass --force`. A bare isolated `opencode` plus a gateway key now names `algorithm_spec` with `model` and `base_url`, not `init` / `algorithms run` with `--model` / `--base-url`. A kind-guess refusal names `kind`, not `--kind`. The CLI `plan` / `evolve` / `resume` / `algorithms run` wording is unchanged. The `plan`, `start`, and `resume` tool descriptions mention this tool-language wording. `changelog.d/1317-mcp-plan-start-wording.md`. ## Verification Tip SHA: e990f52 Ran: - `pytest -q -o addopts='' tests/test_mcp_plan_start_wording.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py tests/test_mcp_plan_probe.py tests/test_mcp.py` → 72 passed - `python -m tools.changelog_fragments check` → 64 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 #1315
Base: 105c3a3
Tip SHA: d25d275
What changed
On tip
105c3a37(after #1314), MCPdemo/plan/algorithm_spec/diagnose/describe_algorithmalready rewrite host-facingnext,recommendations, and cardruninto Path A tool language. MCPapplyandshowstill returned the shared CLI wording inerror/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 theshowapply_planerror) now says to passtoset to a file, or read it withshow, notpass --to FILE. MCPapply(run_id, install_to="grok-bot")now tells the host to callapplywith thisrun_idandto=<path>(and notinstall_to=grok-bot), then to ask Grok Bot to save the listed files — notagentdescent apply … --to …. Apolicy_slotshowapply_plan.needsisto, not--to PATH. Other shared--to/--from/--install-to/--homerefusals on these two tools are rewritten the same way.The CLI
apply/showwording is unchanged. Theapplyandshowtool 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 passedpython -m tools.changelog_fragments check→ 63 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: