feat(mcp): wizard config/doctor MCP surface per ADR-0011 (#21)#249
Merged
Destynova2 merged 1 commit intomainfrom Apr 21, 2026
Merged
feat(mcp): wizard config/doctor MCP surface per ADR-0011 (#21)#249Destynova2 merged 1 commit intomainfrom
Destynova2 merged 1 commit intomainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wizard_get_config,wizard_set_section,wizard_run_doctor.wizard_set_sectionreuses the existing denylist + hot-reload pipeline so the safety surface matchesgrob_configure.wizard_run_doctorreturns a structured JSON report (providers, models, missing env vars, severity) — agent-friendly replacement for the human-only CLI output.Test plan
cargo clippy --lib --all-features -- -D warningscleanAudit item #21 (sensitive, N=5).
🤖 Generated with Claude Code