You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-26Lines changed: 9 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,11 @@ Check out our [project addition guide](./docs/adding-projects.md) to learn how t
50
50
- Cursor, Claude Code, VSCode, Windsurf or another MCP Client
51
51
- Context7 API Key (Optional for higher rate limits) (Get yours by creating an account at [context7.com/dashboard](https://context7.com/dashboard))
52
52
53
+
> [!WARNING]
54
+
> **SSE Protocol Deprecation Notice**
55
+
>
56
+
> The Server-Sent Events (SSE) transport protocol is deprecated and its endpoint will be removed in upcoming releases. Please use HTTP or stdio transport methods instead.
57
+
53
58
<details>
54
59
<summary><b>Installing via Smithery</b></summary>
55
60
@@ -117,12 +122,6 @@ Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/
117
122
claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: YOUR_API_KEY"
118
123
```
119
124
120
-
Or using SSE transport:
121
-
122
-
```sh
123
-
claude mcp add --transport sse context7 https://mcp.context7.com/sse --header "CONTEXT7_API_KEY: YOUR_API_KEY"
124
-
```
125
-
126
125
#### Claude Code Local Server Connection
127
126
128
127
```sh
@@ -335,7 +334,8 @@ See [Gemini CLI Configuration](https://google-gemini.github.io/gemini-cli/docs/t
335
334
"context7": {
336
335
"httpUrl": "https://mcp.context7.com/mcp",
337
336
"headers": {
338
-
"CONTEXT7_API_KEY": "YOUR_API_KEY"
337
+
"CONTEXT7_API_KEY": "YOUR_API_KEY",
338
+
"Accept": "application/json, text/event-stream"
339
339
}
340
340
}
341
341
}
@@ -757,7 +757,7 @@ Add this to your Visual Studio MCP config file (see the [Visual Studio docs](htt
757
757
"inputs": [],
758
758
"servers": {
759
759
"context7": {
760
-
"type": "sse",
760
+
"type": "http",
761
761
"url": "https://mcp.context7.com/mcp",
762
762
"headers": {
763
763
"CONTEXT7_API_KEY": "YOUR_API_KEY"
@@ -809,23 +809,6 @@ Add this to your Crush configuration file. See [Crush MCP docs](https://github.c
809
809
}
810
810
```
811
811
812
-
#### Crush Remote Server Connection (SSE)
813
-
814
-
```json
815
-
{
816
-
"$schema": "https://charm.land/crush.json",
817
-
"mcp": {
818
-
"context7": {
819
-
"type": "sse",
820
-
"url": "https://mcp.context7.com/sse",
821
-
"headers": {
822
-
"CONTEXT7_API_KEY": "YOUR_API_KEY"
823
-
}
824
-
}
825
-
}
826
-
}
827
-
```
828
-
829
812
#### Crush Local Server Connection
830
813
831
814
```json
@@ -992,7 +975,7 @@ Context7 MCP provides the following tools that LLMs can use:
992
975
-`get-library-docs`: Fetches documentation for a library using a Context7-compatible library ID.
993
976
-`context7CompatibleLibraryID` (required): Exact Context7-compatible library ID (e.g., `/mongodb/docs`, `/vercel/next.js`)
994
977
-`topic` (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
995
-
-`tokens` (optional, default 10000): Max number of tokens to return. Values less than the default value of 10000 are automatically increased to 10000.
978
+
-`tokens` (optional, default 5000): Max number of tokens to return. Values less than 1000 are automatically increased to 1000.
`Maximum number of tokens of documentation to retrieve (default: ${DEFAULT_MINIMUM_TOKENS}). Higher values provide more context but consume more tokens.`
211
+
`Maximum number of tokens of documentation to retrieve (default: ${DEFAULT_TOKENS}). Higher values provide more context but consume more tokens.`
0 commit comments