Skip to content

fix(mcp): describe and list run names algorithm_spec, not CLI - #1314

Merged
Birfy merged 1 commit into
mainfrom
fix/1313-mcp-describe-run
Nov 29, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1313-mcp-describe-run

Conversation

@Birfy

@Birfy Birfy commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

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

When MCP describe_algorithm or list_algorithms returns a card, run now
names algorithm_spec with the card's name, path placeholder, cases, and
model and base_url (never guessed), instead of the shared CLI recipe.
The CLI algorithms show recipe is unchanged.

Closes #1313
@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 29, 2026
@Birfy

Birfy commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 9897444
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1314 → T2 (package MCP card run rewrite plus tests and the changelog fragment)
  • pytest -q -o addopts='' tests/test_mcp_describe_run.py tests/test_algorithms.py tests/test_mcp.py at this tip → 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 on this tip is the line
    Findings:
  • No actionable defects. When MCP describe_algorithm or list_algorithms returns a card, run now names algorithm_spec with the card's name, path placeholder, cases, and model and base_url (never guessed), instead of the CLI recipe (agentdescent algorithms run … --model / --base-url). Other card fields stay the same. The CLI algorithms show recipe is unchanged.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 29, 2026 10:22
@Birfy
Birfy merged commit 105c3a3 into main Nov 29, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1313-mcp-describe-run branch November 29, 2026 10:49
Birfy added a commit that referenced this pull request Nov 29, 2026
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
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: describe_algorithm and list_algorithms still name a CLI algorithms run recipe

1 participant