Skip to content

feat(mcp): wizard config/doctor MCP surface per ADR-0011 (#21)#249

Merged
Destynova2 merged 1 commit intomainfrom
feat/wizard-mcp-surface
Apr 21, 2026
Merged

feat(mcp): wizard config/doctor MCP surface per ADR-0011 (#21)#249
Destynova2 merged 1 commit intomainfrom
feat/wizard-mcp-surface

Conversation

@Destynova2
Copy link
Copy Markdown
Contributor

Summary

  • Adds the three wizard MCP tools described in ADR-0011: wizard_get_config, wizard_set_section, wizard_run_doctor.
  • wizard_set_section reuses the existing denylist + hot-reload pipeline so the safety surface matches grob_configure.
  • wizard_run_doctor returns a structured JSON report (providers, models, missing env vars, severity) — agent-friendly replacement for the human-only CLI output.

Test plan

  • Unit tests on section parser (none / valid / invalid)
  • Builtin tool count updated (6 → 9)
  • cargo clippy --lib --all-features -- -D warnings clean

Audit item #21 (sensitive, N=5).

🤖 Generated with Claude Code

Exposes the three wizard primitives described in ADR-0011 as MCP
tools so AI agents can drive grob setup/diagnostics without shelling
out to the CLI:

* `wizard_get_config` — returns a safe JSON view of the current config
  (all sections or a named one). No secrets ever cross the wire.
* `wizard_set_section` — applies a batch of key/value updates to one
  section and triggers hot-reload. Reuses the existing denylist
  (`is_key_denied`) and update pipeline (`apply_config_update` +
  `persist_and_reload`) so the safety policy matches `grob_configure`.
* `wizard_run_doctor` — runs the programmatic health checks
  (providers/models/storage/missing env vars) and returns JSON with
  an overall `severity` flag.

Tools are advertised through `tools/list`. Unit tests cover the
section-parser helper and the updated builtin-tools count.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Destynova2 Destynova2 enabled auto-merge (squash) April 21, 2026 21:15
@Destynova2 Destynova2 merged commit 40d117b into main Apr 21, 2026
42 checks passed
@Destynova2 Destynova2 deleted the feat/wizard-mcp-surface branch April 21, 2026 21:26
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