docs: switch context7 to official plugin; remove three manual MCP entries

Context: user previously had context7 MCP server registered manually in
three places (~/.claude/settings.json + two in ~/.claude.json), with the
CONTEXT7_API_KEY in HTTP-header form. Replaced with the official
context7@claude-plugins-official plugin.

What changed (outside the repo):
- ~/.claude/plugins/cache/.../context7/unknown/.mcp.json — added
  "--api-key" CLI flag to args (Upstash docs recommend this for stdio).
- ~/.claude/settings.json — removed top-level mcpServers.context7.
- ~/.claude.json — removed top-level mcpServers.context7 and a legacy
  project-scoped entry under projects[snolla-admin-ui].

Backups saved with suffix .bak-20260428-114532.

What changed in the repo (this commit):
- .wiki/concepts/context7-setup.md — new page documenting where the key
  lives, the /plugin update gotcha, and the rollback path.
- .wiki/index.md, log.md — linked / logged.
- .tasks/STATUS.md — task moved to Done.

Plugin takes effect after Claude Code restart; current session still uses
the legacy HTTP transport (verified via smoke test on resolve-library-id).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-28 11:49:31 +03:00
parent 4382fd36b9
commit 3b02a486b0
4 changed files with 85 additions and 0 deletions

View File

@@ -3,6 +3,16 @@ _Updated: 2026-04-28_
## Done
### Switch context7 from manual MCP config to official plugin
- [x] Backup `~/.claude.json` and `~/.claude/settings.json` (suffix `.bak-20260428-114532`)
- [x] User installed `context7@claude-plugins-official`
- [x] Located installed plugin: `~/.claude/plugins/cache/claude-plugins-official/context7/unknown/`
- [x] Injected `--api-key` flag into the plugin's `.mcp.json` (key sourced from `settings.json`, not echoed in chat)
- [x] Smoke-tested `mcp__context7__resolve-library-id` (returned 5 Nuxt entries — works in current session via legacy HTTP config; plugin takes over after Claude Code restart)
- [x] Removed three manual context7 entries (settings.json + 2 in `.claude.json`); JSON validity confirmed
- [x] Documented setup + plugin-update gotcha in `.wiki/concepts/context7-setup.md`
- [x] Wiki index + log + summary updated
### Migrate this repo's `.wiki/` to canonical Karpathy layout
- [x] `git mv` `.wiki/source/*.md``.wiki/concepts/` (rename detection preserves history)
- [x] Add `type: concept` frontmatter to each migrated page