Context7 Platform -- Up-to-date docs for AI agents
feat: reorganize IDE installation docs and standardize API key header formats
enesgules3ddfe52e0130
diff --git a/README.md b/README.mdindex 4197414b..842b88d4 100644--- a/README.md+++ b/README.md@@ -99,49 +99,33 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i}```+</details>+<details>-<summary>Alternative: Use Bun</summary>+<summary><b>Install in Claude Code</b></summary>-[](https://cursor.com/install-mcp?name=context7&config=eyJjb21tYW5kIjoiYnVueCAteSBAdXBzdGFzaC9jb250ZXh0Ny1tY3AifQ%3D%3D)+Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp) for more info.-```json-{- "mcpServers": {- "context7": {- "command": "bunx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "your_api_key"]- }- }-}+#### Claude Code Remote Server Connection++```sh+claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "Context7-API-Key: your-key"```-</details>+Or using SSE transport:-<details>-<summary>Alternative: Use Deno</summary>+```sh+claude mcp add --transport sse context7 https://mcp.context7.com/sse --header "Context7-API-Key: your-key"+```-[](https://cursor.com/install-mcp?name=context7&config=eyJjb21tYW5kIjoiZGVubyBydW4gLS1hbGxvdy1lbnYgLS1hbGxvdy1uZXQgbnBtOkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJ9)+#### Claude Code Local Server Connection-```json-{- "mcpServers": {- "context7": {- "command": "deno",- "args": [- "run",- "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",- "--allow-net",- "npm:@upstash/context7-mcp"- ]- }- }-}+```sh+claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key your-key```</details>-</details>-<details><summary><b>Install in Windsurf</b></summary>@@ -174,39 +158,6 @@ Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.</details>-<details>-<summary><b>Install in Trae</b></summary>--Use the Add manually feature and fill in the JSON configuration information for that MCP server.-For more details, visit the [Trae documentation](https://docs.trae.ai/ide/model-context-protocol?_lang=en).--#### Trae Remote Server Connection--```json-{- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp"- }- }-}-```--#### Trae Local Server Connection--```json-{- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp"]- }- }-}-```--</details>-<details><summary><b>Install in VS Code</b></summary>@@ -245,42 +196,16 @@ Add this to your VS Code MCP config file. See [VS Code MCP docs](https://code.vi</details><details>-<summary><b>Install in Visual Studio 2022</b></summary>--You can configure Context7 MCP in Visual Studio 2022 by following the [Visual Studio MCP Servers documentation](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022).--Add this to your Visual Studio MCP config file (see the [Visual Studio docs](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022) for details):--```json-{- "mcp": {- "servers": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp"- }- }- }-}-```--Or, for a local server:+<summary>+<b>Install in Cline</b>+</summary>-```json-{- "mcp": {- "servers": {- "context7": {- "type": "stdio",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "your_api_key"]- }- }- }-}-```+You can easily install Context7 through the [Cline MCP Server Marketplace](https://cline.bot/mcp-marketplace) by following these instructions:-For more information and troubleshooting, refer to the [Visual Studio MCP Servers documentation](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022).+1. Open **Cline**.+2. Click the hamburger menu icon (☰) to enter the **MCP Servers** section.+3. Use the search bar within the **Marketplace** tab to find _Context7_.+4. Click the **Install** button.</details>@@ -306,24 +231,69 @@ It can be installed via [Zed Extensions](https://zed.dev/extensions?query=Contex</details><details>-<summary><b>Install in Gemini CLI</b></summary>+<summary><b>Install in Augment Code</b></summary>-See [Gemini CLI Configuration](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md) for details.+To configure Context7 MCP in Augment Code, you can use either the graphical interface or manual configuration.-1. Open the Gemini CLI settings file. The location is `~/.gemini/settings.json` (where `~` is your home directory).-2. Add the following to the `mcpServers` object in your `settings.json` file:+### **A. Using the Augment Code UI**++1. Click the hamburger menu.+2. Select **Settings**.+3. Navigate to the **Tools** section.+4. Click the **+ Add MCP** button.+5. Enter the following command:++ ```+ npx -y @upstash/context7-mcp@latest+ ```++6. Name the MCP: **Context7**.+7. Click the **Add** button.++Once the MCP server is added, you can start using Context7's up-to-date code documentation features directly within Augment Code.++---++### **B. Manual Configuration**++1. Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel+2. Select Edit Settings+3. Under Advanced, click Edit in settings.json+4. Add the server configuration to the `mcpServers` array in the `augment.advanced` object++"augment.advanced": {+"mcpServers": [+{+"name": "context7",+"command": "npx",+"args": ["-y", "@upstash/context7-mcp"]+}+]+}++Once the MCP server is added, restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.++</details>++<details>+<summary><b>Install in Roo Code</b></summary>++Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https://docs.roocode.com/features/mcp/using-mcp-in-roo) for more info.++#### Roo Code Remote Server Connection```json{"mcpServers": {"context7": {- "httpUrl": "https://mcp.context7.com/mcp"+ "type": "streamable-http",+ "url": "https://mcp.context7.com/mcp"}}}```-Or, for a local server:+#### Roo Code Local Server Connection```json{@@ -336,32 +306,40 @@ Or, for a local server:}```-If the `mcpServers` object does not exist, create it.-</details><details>-<summary><b>Install in Claude Code</b></summary>+<summary><b>Install in Gemini CLI</b></summary>-Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp) for more info.+See [Gemini CLI Configuration](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md) for details.-#### Claude Code Remote Server Connection+1. Open the Gemini CLI settings file. The location is `~/.gemini/settings.json` (where `~` is your home directory).+2. Add the following to the `mcpServers` object in your `settings.json` file:-```sh-claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "Context7-API-Key: your-key"+```json+{+ "mcpServers": {+ "context7": {+ "httpUrl": "https://mcp.context7.com/mcp"+ }+ }+}```-Or using SSE transport:+Or, for a local server:-```sh-claude mcp add --transport sse context7 https://mcp.context7.com/sse --header "Context7-API-Key: your-key"+```json+{+ "mcpServers": {+ "context7": {+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"]+ }+ }+}```-#### Claude Code Local Server Connection--```sh-claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key your-key-```+If the `mcpServers` object does not exist, create it.</details>@@ -384,73 +362,61 @@ Add this to your Claude Desktop `claude_desktop_config.json` file. See [Claude D</details><details>-<summary><b>Install in Crush</b></summary>--Add this to your Crush configuration file. See [Crush MCP docs](https://github.com/charmbracelet/crush#mcps) for more info.--#### Crush Remote Server Connection (HTTP)+<summary><b>Install in Opencode</b></summary>-```json-{- "$schema": "https://charm.land/crush.json",- "mcp": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp"- }- }-}-```+Add this to your Opencode configuration file. See [Opencode MCP docs](https://opencode.ai/docs/mcp-servers) docs for more info.-#### Crush Remote Server Connection (SSE)+#### Opencode Remote Server Connection```json-{- "$schema": "https://charm.land/crush.json",- "mcp": {- "context7": {- "type": "sse",- "url": "https://mcp.context7.com/sse"- }+"mcp": {+ "context7": {+ "type": "remote",+ "url": "https://mcp.context7.com/mcp",+ "enabled": true}}```-#### Crush Local Server Connection+#### Opencode Local Server Connection```json{- "$schema": "https://charm.land/crush.json","mcp": {"context7": {- "type": "stdio",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp"]+ "type": "local",+ "command": ["npx", "-y", "@upstash/context7-mcp"],+ "enabled": true}}}```</details>-<details>-<summary>-<b>Install in Cline</b>-</summary>+<summary><b>Install in OpenAI Codex</b></summary>-You can easily install Context7 through the [Cline MCP Server Marketplace](https://cline.bot/mcp-marketplace) by following these instructions:+See [OpenAI Codex](https://github.com/openai/codex) for more information.-1. Open **Cline**.-2. Click the hamburger menu icon (☰) to enter the **MCP Servers** section.-3. Use the search bar within the **Marketplace** tab to find _Context7_.-4. Click the **Install** button.+Add the following configuration to your OpenAI Codex MCP server settings:++```toml+[mcp_servers.context7]+args = ["-y", "@upstash/context7-mcp"]+command = "npx"+```</details><details>-<summary><b>Install in BoltAI</b></summary>+<summary><b>Install in JetBrains AI Assistant</b></summary>-Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:+See [JetBrains AI Assistant Documentation](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html) for more details.++1. In JetBrains IDEs go to `Settings` -> `Tools` -> `AI Assistant` -> `Model Context Protocol (MCP)`+2. Click `+ Add`.+3. Click on `Command` in the top-left corner of the dialog and select the As JSON option from the list+4. Add this configuration and click `OK````json{@@ -463,7 +429,107 @@ Open the "Settings" page of the app, navigate to "Plugins," and enter the follow}```-Once saved, enter in the chat `get-library-docs` followed by your Context7 documentation ID (e.g., `get-library-docs /nuxt/ui`). More information is available on [BoltAI's Documentation site](https://docs.boltai.com/docs/plugins/mcp-servers). For BoltAI on iOS, [see this guide](https://docs.boltai.com/docs/boltai-mobile/mcp-servers).+5. Click `Apply` to save changes.+6. The same way context7 could be added for JetBrains Junie in `Settings` -> `Tools` -> `Junie` -> `MCP Settings`++</details>++<details>++<summary><b>Install in Kiro</b></summary>++See [Kiro Model Context Protocol Documentation](https://kiro.dev/docs/mcp/configuration/) for details.++1. Navigate `Kiro` > `MCP Servers`+2. Add a new MCP server by clicking the `+ Add` button.+3. Paste the configuration given below:++```json+{+ "mcpServers": {+ "Context7": {+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"],+ "env": {},+ "disabled": false,+ "autoApprove": []+ }+ }+}+```++4. Click `Save` to apply the changes.++</details>++<details>+<summary><b>Install in Trae</b></summary>++Use the Add manually feature and fill in the JSON configuration information for that MCP server.+For more details, visit the [Trae documentation](https://docs.trae.ai/ide/model-context-protocol?_lang=en).++#### Trae Remote Server Connection++```json+{+ "mcpServers": {+ "context7": {+ "url": "https://mcp.context7.com/mcp"+ }+ }+}+```++#### Trae Local Server Connection++```json+{+ "mcpServers": {+ "context7": {+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"]+ }+ }+}+```++</details>++<details>+<summary><b>Using Bun or Deno</b></summary>++Use these alternatives to run the local Context7 MCP server with other runtimes. These examples work for any client that supports launching a local MCP server via command + args.++#### Bun++```json+{+ "mcpServers": {+ "context7": {+ "command": "bunx",+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "your_api_key"]+ }+ }+}+```++#### Deno++```json+{+ "mcpServers": {+ "context7": {+ "command": "deno",+ "args": [+ "run",+ "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",+ "--allow-net",+ "npm:@upstash/context7-mcp"+ ]+ }+ }+}+```</details>@@ -548,76 +614,16 @@ The configuration on Windows is slightly different compared to Linux or macOS (_</details><details>-<summary><b>Install in Augment Code</b></summary>--To configure Context7 MCP in Augment Code, you can use either the graphical interface or manual configuration.--### **A. Using the Augment Code UI**--1. Click the hamburger menu.-2. Select **Settings**.-3. Navigate to the **Tools** section.-4. Click the **+ Add MCP** button.-5. Enter the following command:-- ```- npx -y @upstash/context7-mcp@latest- ```--6. Name the MCP: **Context7**.-7. Click the **Add** button.--Once the MCP server is added, you can start using Context7's up-to-date code documentation features directly within Augment Code.-------### **B. Manual Configuration**--1. Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel-2. Select Edit Settings-3. Under Advanced, click Edit in settings.json-4. Add the server configuration to the `mcpServers` array in the `augment.advanced` object--"augment.advanced": {-"mcpServers": [-{-"name": "context7",-"command": "npx",-"args": ["-y", "@upstash/context7-mcp"]-}-]-}--Once the MCP server is added, restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.--</details>--<details>-<summary><b>Install in Roo Code</b></summary>--Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https://docs.roocode.com/features/mcp/using-mcp-in-roo) for more info.--#### Roo Code Remote Server Connection--```json-{- "mcpServers": {- "context7": {- "type": "streamable-http",- "url": "https://mcp.context7.com/mcp"- }- }-}-```+<summary><b>Install in Amazon Q Developer CLI</b></summary>-#### Roo Code Local Server Connection+Add this to your Amazon Q Developer CLI configuration file. See [Amazon Q Developer CLI docs](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-configuration.html) for more details.```json{"mcpServers": {"context7": {"command": "npx",- "args": ["-y", "@upstash/context7-mcp"]+ "args": ["-y", "@upstash/context7-mcp@latest"]}}}@@ -626,244 +632,237 @@ Add this to your Roo Code MCP configuration file. See [Roo Code MCP docs](https:</details><details>-<summary><b>Install in Zencoder</b></summary>+<summary><b>Install in Warp</b></summary>-To configure Context7 MCP in Zencoder, follow these steps:+See [Warp Model Context Protocol Documentation](https://docs.warp.dev/knowledge-and-collaboration/mcp#adding-an-mcp-server) for details.-1. Go to the Zencoder menu (...)-2. From the dropdown menu, select Agent tools-3. Click on the Add custom MCP-4. Add the name and server configuration from below, and make sure to hit the Install button+1. Navigate `Settings` > `AI` > `Manage MCP servers`.+2. Add a new MCP server by clicking the `+ Add` button.+3. Paste the configuration given below:```json{- "command": "npx",- "args": ["-y", "@upstash/context7-mcp@latest"]+ "Context7": {+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"],+ "env": {},+ "working_directory": null,+ "start_on_launch": true+ }}```-Once the MCP server is added, you can easily continue using it.+4. Click `Save` to apply the changes.</details><details>-<summary><b>Install in Amazon Q Developer CLI</b></summary>-Add this to your Amazon Q Developer CLI configuration file. See [Amazon Q Developer CLI docs](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-configuration.html) for more details.+<summary><b>Install in Copilot Coding Agent</b></summary>++## Using Context7 with Copilot Coding Agent++Add the following configuration to the `mcp` section of your Copilot Coding Agent configuration file Repository->Settings->Copilot->Coding agent->MCP configuration:```json{"mcpServers": {"context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp@latest"]+ "type": "http",+ "url": "https://mcp.context7.com/mcp",+ "tools": ["get-library-docs", "resolve-library-id"]}}}```+For more information, see the [official GitHub documentation](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp).+</details><details>-<summary><b>Install in Qodo Gen</b></summary>+<summary><b>Install in LM Studio</b></summary>-See [Qodo Gen docs](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps) for more details.+See [LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) for more information.-1. Open Qodo Gen chat panel in VSCode or IntelliJ.-2. Click Connect more tools.-3. Click + Add new MCP.-4. Add the following configuration:+#### One-click install:++[](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)++#### Manual set-up:++1. Navigate to `Program` (right side) > `Install` > `Edit mcp.json`.+2. Paste the configuration given below:```json{"mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp"+ "Context7": {+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"]}}}```+3. Click `Save` to apply the changes.+4. Toggle the MCP server on/off from the right hand side, under `Program`, or by clicking the plug icon at the bottom of the chat box.+</details><details>-<summary><b>Install in JetBrains AI Assistant</b></summary>+<summary><b>Install in Visual Studio 2022</b></summary>-See [JetBrains AI Assistant Documentation](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html) for more details.+You can configure Context7 MCP in Visual Studio 2022 by following the [Visual Studio MCP Servers documentation](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022).-1. In JetBrains IDEs go to `Settings` -> `Tools` -> `AI Assistant` -> `Model Context Protocol (MCP)`-2. Click `+ Add`.-3. Click on `Command` in the top-left corner of the dialog and select the As JSON option from the list-4. Add this configuration and click `OK`+Add this to your Visual Studio MCP config file (see the [Visual Studio docs](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022) for details):```json{- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp"]+ "mcp": {+ "servers": {+ "context7": {+ "type": "http",+ "url": "https://mcp.context7.com/mcp"+ }}}}```-5. Click `Apply` to save changes.-6. The same way context7 could be added for JetBrains Junie in `Settings` -> `Tools` -> `Junie` -> `MCP Settings`--</details>--<details>-<summary><b>Install in Warp</b></summary>--See [Warp Model Context Protocol Documentation](https://docs.warp.dev/knowledge-and-collaboration/mcp#adding-an-mcp-server) for details.--1. Navigate `Settings` > `AI` > `Manage MCP servers`.-2. Add a new MCP server by clicking the `+ Add` button.-3. Paste the configuration given below:+Or, for a local server:```json{- "Context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp"],- "env": {},- "working_directory": null,- "start_on_launch": true+ "mcp": {+ "servers": {+ "context7": {+ "type": "stdio",+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp", "--api-key", "your_api_key"]+ }+ }}}```-4. Click `Save` to apply the changes.+For more information and troubleshooting, refer to the [Visual Studio MCP Servers documentation](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022).</details><details>-<summary><b>Install in Opencode</b></summary>+<summary><b>Install in Crush</b></summary>-Add this to your Opencode configuration file. See [Opencode MCP docs](https://opencode.ai/docs/mcp-servers) docs for more info.+Add this to your Crush configuration file. See [Crush MCP docs](https://github.com/charmbracelet/crush#mcps) for more info.-#### Opencode Remote Server Connection+#### Crush Remote Server Connection (HTTP)```json-"mcp": {- "context7": {- "type": "remote",- "url": "https://mcp.context7.com/mcp",- "enabled": true+{+ "$schema": "https://charm.land/crush.json",+ "mcp": {+ "context7": {+ "type": "http",+ "url": "https://mcp.context7.com/mcp"+ }}}```-#### Opencode Local Server Connection+#### Crush Remote Server Connection (SSE)```json{+ "$schema": "https://charm.land/crush.json","mcp": {"context7": {- "type": "local",- "command": ["npx", "-y", "@upstash/context7-mcp"],- "enabled": true+ "type": "sse",+ "url": "https://mcp.context7.com/sse"}}}```-</details>--<details>--<summary><b>Install in Copilot Coding Agent</b></summary>--## Using Context7 with Copilot Coding Agent--Add the following configuration to the `mcp` section of your Copilot Coding Agent configuration file Repository->Settings->Copilot->Coding agent->MCP configuration:+#### Crush Local Server Connection```json{- "mcpServers": {+ "$schema": "https://charm.land/crush.json",+ "mcp": {"context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "tools": ["get-library-docs", "resolve-library-id"]+ "type": "stdio",+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp"]}}}```-For more information, see the [official GitHub documentation](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp).-</details>--<details>--<summary><b>Install in Kiro</b></summary>-See [Kiro Model Context Protocol Documentation](https://kiro.dev/docs/mcp/configuration/) for details.+<details>+<summary><b>Install in BoltAI</b></summary>-1. Navigate `Kiro` > `MCP Servers`-2. Add a new MCP server by clicking the `+ Add` button.-3. Paste the configuration given below:+Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:```json{"mcpServers": {- "Context7": {+ "context7": {"command": "npx",- "args": ["-y", "@upstash/context7-mcp"],- "env": {},- "disabled": false,- "autoApprove": []+ "args": ["-y", "@upstash/context7-mcp"]}}}```-4. Click `Save` to apply the changes.+Once saved, enter in the chat `get-library-docs` followed by your Context7 documentation ID (e.g., `get-library-docs /nuxt/ui`). More information is available on [BoltAI's Documentation site](https://docs.boltai.com/docs/plugins/mcp-servers). For BoltAI on iOS, [see this guide](https://docs.boltai.com/docs/boltai-mobile/mcp-servers).</details>+<details>-<summary><b>Install in OpenAI Codex</b></summary>+<summary><b>Install in Zencoder</b></summary>-See [OpenAI Codex](https://github.com/openai/codex) for more information.+To configure Context7 MCP in Zencoder, follow these steps:-Add the following configuration to your OpenAI Codex MCP server settings:+1. Go to the Zencoder menu (...)+2. From the dropdown menu, select Agent tools+3. Click on the Add custom MCP+4. Add the name and server configuration from below, and make sure to hit the Install button-```toml-[mcp_servers.context7]-args = ["-y", "@upstash/context7-mcp"]-command = "npx"+```json+{+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp@latest"]+}```-</details>-<details>-<summary><b>Install in LM Studio</b></summary>--See [LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) for more information.+Once the MCP server is added, you can easily continue using it.-#### One-click install:+</details>-[](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)+<details>+<summary><b>Install in Qodo Gen</b></summary>-#### Manual set-up:+See [Qodo Gen docs](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps) for more details.-1. Navigate to `Program` (right side) > `Install` > `Edit mcp.json`.-2. Paste the configuration given below:+1. Open Qodo Gen chat panel in VSCode or IntelliJ.+2. Click Connect more tools.+3. Click + Add new MCP.+4. Add the following configuration:```json{"mcpServers": {- "Context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp"]+ "context7": {+ "url": "https://mcp.context7.com/mcp"}}}```-3. Click `Save` to apply the changes.-4. Toggle the MCP server on/off from the right hand side, under `Program`, or by clicking the plug icon at the bottom of the chat box.-</details>+<details><summary><b>Install in Perplexity Desktop</b></summary>diff --git a/src/index.ts b/src/index.tsindex f8d469d3..60945b5d 100644--- a/src/index.ts+++ b/src/index.ts@@ -279,10 +279,9 @@ async function main() {// Check headers in order of preferenceconst apiKey =extractBearerToken(req.headers.authorization) ||- extractHeaderValue(req.headers["x-context7-api-key"]) || // Standard with x- prefix- extractHeaderValue(req.headers["context7-api-key"]) || // Without x- prefix- extractHeaderValue(req.headers["context7_api_key"]) || // With underscores- extractHeaderValue(req.headers["x-api-key"]); // Generic API key header+ extractHeaderValue(req.headers["X-Context7-API-Key"]) || // Standard with x- prefix+ extractHeaderValue(req.headers["Context7-API-Key"]) || // Without x- prefix+ extractHeaderValue(req.headers["X-API-Key"]); // Generic API key headertry {// Extract client IP address using socket remote address (most reliable)