Skip to content

Commit 3f057af

Browse files
Claim Context7 library + fix MCP config for both assistants
Claim the Context7 library: add `url` + `public_key` to context7.json. This is the `pk_` claim key, which Context7's claim flow explicitly has you commit and push to the default branch for ownership verification. Make the bundled MCP config keyless in both mcp.json (Cursor) and .mcp.json (Claude Code), and correct the README key note. The files previously forwarded the key with `${env:CONTEXT7_API_KEY}`, which is Cursor-only syntax. Claude Code doesn't parse the `env:` prefix — it would send the literal `${env:CONTEXT7_API_KEY}` string as the header and warn on every startup. The validate-plugins gate also requires the two files to be byte-identical, which per-tool key syntax makes impossible. Keyless is correct in both tools, satisfies the byte-identical gate, and drops the warning. The rate-limit key (ctx7sk-, a secret, not committable) has no effect until Context7 fetching goes live, so it's wired via env var later, alongside the .context7-library-id flip. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f1ffc91 commit 3f057af

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

.mcp.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"mcpServers": {
33
"context7": {
44
"type": "http",
5-
"url": "https://mcp.context7.com/mcp",
6-
"headers": {
7-
"CONTEXT7_API_KEY": "${env:CONTEXT7_API_KEY}"
8-
}
5+
"url": "https://mcp.context7.com/mcp"
96
}
107
}
118
}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ Iterable's curated library is published there; once it is, the skill fetches the
6262
latest docs live, with the snapshot as its fallback. No reinstall needed when
6363
that happens.
6464
65-
> Context7 works without an API key at a lower rate limit. To raise it, get a
66-
> free key at [context7.com](https://context7.com) and set the `CONTEXT7_API_KEY`
67-
> environment variable — the bundled MCP config forwards it automatically.
65+
> Context7 works without an API key at a lower rate limit, which is how the
66+
> bundled config ships. To raise the limit, get a free key at
67+
> [context7.com](https://context7.com) and add it as a `CONTEXT7_API_KEY` header
68+
> on the `context7` MCP server, using your assistant's env-var syntax
69+
> (`${CONTEXT7_API_KEY}` in Claude Code, `${env:CONTEXT7_API_KEY}` in Cursor).
6870
6971
## What it covers
7072

context7.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"$schema": "https://context7.com/schema/context7.json",
33
"projectTitle": "Iterable Mobile SDKs",
44
"description": "Agent-facing reference for Iterable's mobile SDKs. Polished from Iterable's canonical docs with version-pinned snippets, decision tiers, and Kotlin-preferred Android examples. Covers push notifications, in-app messages, mobile inbox, embedded messaging, deep linking, JWT authentication, event tracking, user profiles, and unknown user activation.",
5+
"url": "https://context7.com/iterable/iterable-sdk-skill",
6+
"public_key": "pk_JMMoVfKCtHoC5E3alGPcX",
57
"folders": [
68
"polished"
79
],

mcp.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"mcpServers": {
33
"context7": {
44
"type": "http",
5-
"url": "https://mcp.context7.com/mcp",
6-
"headers": {
7-
"CONTEXT7_API_KEY": "${env:CONTEXT7_API_KEY}"
8-
}
5+
"url": "https://mcp.context7.com/mcp"
96
}
107
}
118
}

0 commit comments

Comments
 (0)