DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
Confirm MCP read-only trust on first use / 首次使用时确认 MCP 只读信任
Summary
- Ask once before plan mode trusts a third-party MCP tool's self-reported readOnlyHint, then allow one-shot, session, or persistent trust decisions through the existing approval flow.
- Persist "always allow" MCP read-only trust back to the owning config source, including project
.mcp.jsonentries and Reasonix TOML plugin entries. - Keep provider-visible MCP tool names, schemas, and ordering stable while updating desktop, CLI, config comments, and docs to frame manual trust as pre-trust management.
- Keep MCP read-only trust prompts as fresh user decisions: Auto/YOLO tool approval and the approved-plan execution window do not answer or drain them, while explicit session grants still prevent repeat prompts.
Cache Impact
Cache-impact: low - The change keeps provider-visible MCP tool names, schemas, and registration order unchanged; trust is handled at execution/approval time and persisted as config for future sessions.
Cache-guard: go test ./internal/... plus existing MCP read-only trust schema stability coverage (TestReadOnlyTrustDoesNotChangeModelVisibleSchema); git diff --check passed.
System-prompt-review: Reviewed during PR update; boot/token-profile changes do not inject dynamic trust state into the stable system prompt or tool schemas.
Verification
git diff --checkgo test ./internal/controlgo test ./internal/...pnpm --dir desktop/frontend exec tsx src/__tests__/capabilities-panel-actions.test.tspnpm --dir desktop/frontend exec tsc --noEmit -p tsconfig.test.json