Context7 Platform -- Up-to-date docs for AI agents
feat(copilot-plugin): pass CONTEXT7_API_KEY from environment to MCP server (#2752)
Enes Gulese35cb61068fa
diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.jsonindex 854b3179..7342e159 100644--- a/.github/plugin/marketplace.json+++ b/.github/plugin/marketplace.json@@ -12,7 +12,7 @@"name": "context7","source": "./plugins/copilot/context7","description": "Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.",- "version": "1.0.1"+ "version": "1.0.2"}]}diff --git a/plugins/copilot/context7/.mcp.json b/plugins/copilot/context7/.mcp.jsonindex c5280c5f..38df3178 100644--- a/plugins/copilot/context7/.mcp.json+++ b/plugins/copilot/context7/.mcp.json@@ -2,7 +2,10 @@"mcpServers": {"context7": {"type": "http",- "url": "https://mcp.context7.com/mcp"+ "url": "https://mcp.context7.com/mcp",+ "headers": {+ "CONTEXT7_API_KEY": "${CONTEXT7_API_KEY:-}"+ }}}}diff --git a/plugins/copilot/context7/README.md b/plugins/copilot/context7/README.mdindex f2cbf3a0..3052097e 100644--- a/plugins/copilot/context7/README.md+++ b/plugins/copilot/context7/README.md@@ -20,6 +20,17 @@ copilot plugin marketplace add upstash/context7copilot plugin install context7@context7-marketplace```+## API Key (Recommended)++Without an API key, the plugin connects anonymously and shares the anonymous rate limits. To use your own plan, create an API key in the [Context7 dashboard](https://context7.com/dashboard) and export it as an environment variable before launching Copilot CLI:++```bash+# e.g. in ~/.zshrc or ~/.bashrc+export CONTEXT7_API_KEY="your-api-key"+```++The plugin's MCP server configuration picks up `CONTEXT7_API_KEY` automatically. Restart Copilot CLI after setting it, then verify the key is being used by checking your usage in the [dashboard](https://context7.com/dashboard).+## Available Tools### resolve-library-iddiff --git a/plugins/copilot/context7/plugin.json b/plugins/copilot/context7/plugin.jsonindex 0c62e213..191088de 100644--- a/plugins/copilot/context7/plugin.json+++ b/plugins/copilot/context7/plugin.json@@ -1,7 +1,7 @@{"name": "context7","description": "Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.",- "version": "1.0.1",+ "version": "1.0.2","author": {"name": "Upstash"},