Skip to content

docs(kit): a new CLI's README says that over MCP ask does not ask - #191

Merged
leemour merged 1 commit into
mainfrom
docs/mcp-ask-runs
Nov 17, 2026
Merged

leemour merged 1 commit into
mainfrom
docs/mcp-ask-runs

Conversation

@leemour

@leemour leemour commented Nov 17, 2026

Copy link
Copy Markdown
Member

Why

The owner ruled NEED-2731 B: ask stays the default for the api group's deletes. Over MCP nobody is there to answer it, so it runs (cli-core's serviceApiPermissions says so in its own comment). A user who connects the CLI to an agent should read that where they set it up.

What

  • cliReadme in kit/src/new.ts: a CLI with an api group gets one paragraph under "Use it with your agent". The agent runs the API's writes and deletes without asking, each one is kept in runs list, and config set permissions.api readonly or config set permissions.api.<operation> deny stops it for a profile. A CLI without an api group gets nothing, since permissions.api names no command there.
  • A test in kit/test/preset.test.ts for both cases.
  • Changelog fragment changes/docs-mcp-ask-runs.md.

Testing

  • Both commands were run on a CLI made with new --preset generic --spec openapi, in a throwaway HOME with the keyring cut off: after permissions.api readonly, api comments-delete --dry-run and api comments-create --dry-run are refused and comments-list still reads. After permissions.api.comments-delete deny, only the delete is refused.
  • pnpm vitest run kit, pnpm lint, tsc -p kit, pnpm docs:check: passed.

🤖 Generated with Claude Code

NEED-2731 B keeps ask as the default for the api group's deletes. Over
MCP nobody answers it, so the agent runs them. A CLI with an api group
now says so beside the MCP setup, says each write is kept in runs list,
and gives the two commands that stop it for a profile:
config set permissions.api readonly, or permissions.api.<operation> deny.
Both were run on a CLI made with new --spec openapi.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit e463e5d into main Nov 17, 2026
16 checks passed
@leemour
leemour deleted the docs/mcp-ask-runs branch November 17, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant