Skip to content

fix(mcp): apply and show refusals name tools, not CLI - #1316

Merged
Birfy merged 1 commit into
mainfrom
fix/1315-mcp-apply-wording
Nov 29, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1315-mcp-apply-wording

Conversation

@Birfy

@Birfy Birfy commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

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

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
@Birfy

Birfy commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: d25d275
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1316 → T3 (size 268 lines / 3 files > 250 allowed for T2; package MCP apply/show wording rewrite plus tests and the changelog fragment)
  • 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 at this tip → 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 on this tip is the line
    Findings:
  • No actionable defects. 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 …. A text-artifact-onto-directory refusal and a grok-bot install_to refusal are covered. The CLI apply / show wording is unchanged.
    Verdict: PASS

@github-actions github-actions Bot added the risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller label Nov 29, 2026
@Birfy
Birfy enabled auto-merge (squash) November 29, 2026 16:26
@Birfy
Birfy merged commit ca769cf into main Nov 29, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1315-mcp-apply-wording branch November 29, 2026 16:55
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T3 Risk tier T3 (core loop, release, process; needs Danyang's click), set by the controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp: apply and show refusals still name CLI --to / agentdescent apply

1 participant