Skip to content

fix(mcp): demo next names Path A tools, not CLI verbs - #1308

Merged
Birfy merged 1 commit into
mainfrom
fix/1307-mcp-demo-next
Nov 28, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1307-mcp-demo-next

Conversation

@Birfy

@Birfy Birfy commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Closes #1307

Base: f9c35b5
Tip SHA: 001b346

What changed

On tip f9c35b5, MCP algorithm_spec and plan already rewrite next into host tool language (#1296 / #1298 / #1303 / #1305). MCP demo still returned the shared CLI demo --json list untouched:

next: agentdescent show  <run_id>
      agentdescent apply <run_id> --dry-run
      agentdescent algorithms run gepa … --out spec.json
      agentdescent plan spec.json --probe
      agentdescent evolve spec.json --max-calls <N>
      agentdescent doctor

A host that followed the algorithm_spec or plan next would call those tools; a host that followed this demo next was told to run CLI verbs it may not have.

A successful MCP demo now returns:

next: call show with this run_id
      call apply with this run_id and dry_run=true to preview the write
      to run this card on the user's data, call algorithm_spec with the name, their path and cases, and model and base_url (never guess those), plus rounds=1 and workers=1; if that refuses, follow its next and do not start; otherwise follow its next

When no algorithm was named, the last step names list_algorithms and then that same algorithm_spec call (there is no MCP init tool). A real-model-only card's refusal names algorithm_spec and describe_algorithm, not agentdescent algorithms run. The demo tool description mentions this tool-language next. No model name is guessed. The tool still does not start a real run or probe. The CLI demo next and live-model refusal are unchanged.

changelog.d/1307-mcp-demo-next.md.

Verification

Tip SHA: 001b346

Ran:

  • pytest -q -o addopts='' tests/test_mcp.py tests/test_demo.py tests/test_mcp_algorithm_spec.py tests/test_mcp_plan_probe.py tests/test_first_run_caps.py → 125 passed
  • python -m tools.changelog_fragments check → 59 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

Closes #1307

After a successful MCP demo, next named the shared CLI demo --json
list (show / algorithms run or init / plan --probe / evolve). Hosts
that followed algorithm_spec or plan next would call those tools; a
host that followed this list was told to run CLI verbs it may not
have. demo now rewrites next into show, apply with dry_run=true, and
algorithm_spec (or list_algorithms then algorithm_spec). A
real-model-only refusal names algorithm_spec, not a CLI run recipe.
The CLI demo next and refusal are unchanged.
@github-actions github-actions Bot added the risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff label Nov 28, 2026
@Birfy

Birfy commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 001b346
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1308 → T2 (package MCP next-line plus tests and the changelog fragment)
  • pytest -q -o addopts='' tests/test_mcp.py tests/test_demo.py tests/test_mcp_algorithm_spec.py tests/test_mcp_plan_probe.py tests/test_first_run_caps.py at this tip → 125 passed
  • python -m tools.changelog_fragments check → 59 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 demo finishes a run, next now names Path A tools (show, apply with dry_run=true, then algorithm_spec, or list_algorithms then algorithm_spec when no card was named), instead of the CLI demo --json list. A real-model-only refusal names algorithm_spec and describe_algorithm, not agentdescent algorithms run. The CLI demo next and live-model refusal are unchanged. No model name is guessed. The tool still does not start a real run or probe. apply is only named with dry_run=true.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 28, 2026 16:27
@Birfy
Birfy merged commit 8062018 into main Nov 28, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1307-mcp-demo-next branch November 28, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp: demo next still names CLI verbs, not Path A tools

1 participant