feat: plugin userConfig — API key keychain storage + install UX#74
Open
feat: plugin userConfig — API key keychain storage + install UX#74
Conversation
…age (#74) Migrate plugin configuration from raw environment variables to Claude Code's native userConfig system. API keys are now stored securely in the system keychain (sensitive: true), and new users get a guided setup prompt on install. Changes: - plugin.json: add userConfig schema (CHORUS_URL required, CHORUS_API_KEY required+sensitive), bump version to 0.6.0 - .mcp.json: use ${user_config.*} for HTTP MCP server config - chorus-api.sh: add chorus_resolve_config() with env var > CLAUDE_PLUGIN_OPTION_* fallback - All 9 hook scripts: centralized config resolution via fallback pattern - SKILL.md: rewrite Setup section (Option A: userConfig, Option B: env vars) - marketplace.json: sync version to 0.6.0 - test-syntax.sh: add CLAUDE_PLUGIN_OPTION_* mock env vars Backward compatible: env vars always take priority in hook scripts. Headless environments continue to work with exported env vars. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Coverage Report
File CoverageNo changed files found. |
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
userConfigto plugin manifest:CHORUS_URL(required) +CHORUS_API_KEY(required, sensitive → keychain).mcp.jsonuses${user_config.*}for HTTP MCP server — new users get guided setup on installenv var > CLAUDE_PLUGIN_OPTION_*fallback for backward compatChanged files
plugin.jsonmarketplace.json.mcp.json${CHORUS_URL}→${user_config.CHORUS_URL}chorus-api.shchorus_resolve_config()+resolve-configsubcommandon-*.sh(9 files)test-syntax.shCLAUDE_PLUGIN_OPTION_*mock env varsSKILL.mdTest plan
${user_config.*}): checkin → idea → proposal → task → verify → done🤖 Generated with Claude Code