mirror of
https://github.com/chainbase-labs/Agentkey.git
synced 2026-09-20 14:20:23 +08:00
35eab21872
## Summary
- The repo already ships as a Claude Code plugin
(`.claude-plugin/plugin.json` + `marketplace.json`), but `.mcp.json` was
empty (`{ "mcpServers": {} }`), so installing the plugin registered
**no** MCP server — the skill loaded with no tools to call.
- Wire `.mcp.json` to register a `type: http` server at
`https://api.agentkey.app/v1/mcp`, injecting the API key via the
documented `${user_config.AGENTKEY_API_KEY}` interpolation (the manifest
already declares `userConfig.AGENTKEY_API_KEY`).
`${CLAUDE_PLUGIN_OPTION_*}` env vars only apply to stdio/subprocess
servers, not to an http server header.
- Correct the now-misleading `.mcp.json` guidance in
`.claude/CLAUDE.md`, and document the public marketplace install path
(`/plugin marketplace add chainbase-labs/agentkey`) in `README.md` +
`docs/README_zh.md`.
Scope: only `.mcp.json`, `.claude/CLAUDE.md`, `README.md`,
`docs/README_zh.md` (+28/-10). Version/release files untouched; the
`fix:` lets release-please cut 1.9.1 on merge.
## Test Plan
- [x] `claude plugin validate .` passes
- [x] Local end-to-end (isolated config): `claude plugin marketplace add
./` + `claude plugin install agentkey@agentkey --config
AGENTKEY_API_KEY=…` → `plugin:agentkey:agentkey … ✓ Connected`,
confirming `${user_config.*}` is interpolated into the auth header and
the server authenticates
- [x] `bats tests/` 10/10 pass
- [ ] Reviewer sanity-check of the 4-file diff
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>