Skip to content

mcp: empty-store latest/last refusals still name CLI demo / evolve #1327

Done

Description

@Birfy

What happens

On tip 32a92cd698 (after #1326), MCP show / status / diagnose / apply / cancel / resume already rewrite many shared CLI hints into Path A tools. The leftover a host actually reads is the shared resolve_run_id empty-store refusal, which still names CLI agentdescent demo / agentdescent evolve.

resolve_run_id is shared with the CLI (#892 / #896). When the store is empty and the host passes latest or last, it raises:

no runs under <store> yet, so 'latest' has nothing to point at; start one with `agentdescent demo` or `agentdescent evolve`

MCP paths surface that string unchanged:

  • status / diagnose / cancel return {"error": str(e)} with no rewrite
  • show / apply run _mcp_apply_wording, which does not rewrite this phrase
  • resume runs _mcp_gate_wording, which does not rewrite this phrase either

The CLI wording on the same input is correct for an operator who has the CLI.

Measured with from agentdescent.mcp import Tools on this tip, on a fresh empty store:

# Tools(store).status("latest") / .show("latest") / .diagnose("latest")
# / .cancel("latest") / .resume("latest") / .apply("latest")
#   error: "no runs under <store> yet, so 'latest' has nothing to point at;
#     start one with `agentdescent demo` or `agentdescent evolve`"

demo and start are already Path A tools. A host following the refusal is told to run CLI verbs it may not have, including evolve, which is not an MCP tool.

tests/test_latest_run_alias.py currently pins the CLI wording on the MCP empty-store path.

Expected

  • MCP status / show / diagnose / apply / cancel / resume empty-store latest/last refusals name Path A tools (demo, start), not CLI agentdescent demo / agentdescent evolve.
  • The CLI show latest / status latest wording is unchanged (agentdescent demo, agentdescent evolve).

Suggested fix

  • On the MCP path only: rewrite the shared empty-store phrase into Path A tools (call \demo` or call `start` with a spec). Route status/diagnose/cancelerrors through that rewrite; also apply it from_mcp_apply_wordingand_mcp_gate_wordingsoshow/apply/resumeare covered. Do not changecli.py`.
  • Update tests/test_latest_run_alias.py so the MCP empty-store assertion requires the tool language and keeps the CLI assertion on the CLI path.
  • changelog.d/<n>-mcp-empty-store-latest-wording.md.

Acceptance

  • With an empty store, MCP status / show / diagnose / apply / cancel / resume on latest (and last) contain demo and start, and do not contain agentdescent demo or agentdescent evolve.
  • CLI show --json latest on an empty store still contains agentdescent demo and agentdescent evolve.

Activity

  1. added
    bug
    area:plugins
    area:cli
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:pluginsbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions