Skip to content

fix(mcp): algorithm_spec placeholder refusals name tools, not CLI - #1320

Open
Birfy wants to merge 1 commit into
mainfrom
fix/1319-mcp-algorithm-spec-placeholder-wording
Open

Birfy wants to merge 1 commit into
mainfrom
fix/1319-mcp-algorithm-spec-placeholder-wording

Conversation

@Birfy

@Birfy Birfy commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Closes #1319

Base: fb519a6
Tip SHA: ff534ed

What changed

On tip fb519a67 (after #1318), MCP describe_algorithm / list_algorithms already name algorithm_spec with model and base_url, and a successful algorithm_spec (those fields passed) already points next at plan(..., probe=true) and a capped start. #1317 rewrites one different shared error phrase into tool language.

The leftover a host actually reads is the placeholder refusal from algorithm_spec itself, when model / base_url were omitted. That path still spoke CLI, and its next told the host to hand-edit the written spec and then plan.

MCP algorithm_spec placeholder refusals in warnings, error, and next now name Path A fields: re-call algorithm_spec with model and base_url (never guess those), and do not start. They no longer contain --model / --base-url, or attribute the placeholders to init.

The CLI algorithms run / init wording is unchanged. The algorithm_spec tool description mentions this wording.

changelog.d/1319-mcp-algorithm-spec-placeholder-wording.md.

Verification

Tip SHA: ff534ed

Ran:

  • pytest -q -o addopts='' 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 → 74 passed
  • python -m tools.changelog_fragments check → 65 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 #1319

When model / base_url are omitted, MCP algorithm_spec still warned
hosts to re-run with --model / --base-url, attributed placeholders
to init, and told them to edit the written spec then plan. Rewrite
warnings, error, and next into Path A tool language: re-call
algorithm_spec with model and base_url (never guess those) and do
not start. The CLI algorithms run / init wording is unchanged.
@Birfy

Birfy commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Self-review (Birfy)

Tip SHA: ff534ed
Ran:

  • pytest -q -o addopts='' 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 → pass (74 passed)
  • python -m tools.changelog_fragments check → pass (65 changelog fragment(s) OK)
  • python -m tools.gen_api_docs --check → pass (docs/api.md is up to date)
    Not run:
  • Full offline suite locally — the CI test matrix is the line
    Findings:
  • none
    Verdict: PASS

@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 30, 2026
@Birfy
Birfy enabled auto-merge (squash) November 30, 2026 04:29

This branch has not been deployed

No deployments
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: algorithm_spec placeholder refusal still names CLI --model/--base-url and says to edit the spec

1 participant