mirror of
https://github.com/upstash/context7.git
synced 2025-11-14 09:04:57 +00:00
docs: Adding Notes on Using MCP in Windows Systems
This commit is contained in:
parent
171b298f7a
commit
1755903edf
20
README.md
20
README.md
@ -231,6 +231,26 @@ If you prefer to run the MCP server in a Docker container:
|
|||||||
|
|
||||||
*Note: This is an example configuration. Please refer to the specific examples for your MCP client (like Cursor, VS Code, etc.) earlier in this README to adapt the structure (e.g., `mcpServers` vs `servers`). Also, ensure the image name in `args` matches the tag used during the `docker build` command.*
|
*Note: This is an example configuration. Please refer to the specific examples for your MCP client (like Cursor, VS Code, etc.) earlier in this README to adapt the structure (e.g., `mcpServers` vs `servers`). Also, ensure the image name in `args` matches the tag used during the `docker build` command.*
|
||||||
|
|
||||||
|
### Install in Windows
|
||||||
|
The configuration on Windows is slightly different compared to Linux or macOS (*`Cline` is used in the example*). The same principle applies to other editors; refer to the configuration of `command` and `args`.
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"github.com/upstash/context7-mcp": {
|
||||||
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/c",
|
||||||
|
"npx",
|
||||||
|
"-y",
|
||||||
|
"@upstash/context7-mcp@latest"
|
||||||
|
],
|
||||||
|
"disabled": false,
|
||||||
|
"autoApprove": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
- `DEFAULT_MINIMUM_TOKENS`: Set the minimum token count for documentation retrieval (default: 10000).
|
- `DEFAULT_MINIMUM_TOKENS`: Set the minimum token count for documentation retrieval (default: 10000).
|
||||||
|
|||||||
@ -209,6 +209,26 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp@latest
|
|||||||
- 当前Cursor版本(0.49.5), 请不要使用本方式启动MCP server,详情:[Cursor官方说明](https://docs.cursor.com/context/model-context-protocol#remote-development)
|
- 当前Cursor版本(0.49.5), 请不要使用本方式启动MCP server,详情:[Cursor官方说明](https://docs.cursor.com/context/model-context-protocol#remote-development)
|
||||||
</em>
|
</em>
|
||||||
|
|
||||||
|
### 在Windows上安装
|
||||||
|
在windows上的配置相对于linux或macos来说有些许不同,(*示例使用的`Cline`*), 其它编辑器同理, 参考`command`和`args`的配置即可
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"github.com/upstash/context7-mcp": {
|
||||||
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/c",
|
||||||
|
"npx",
|
||||||
|
"-y",
|
||||||
|
"@upstash/context7-mcp@latest"
|
||||||
|
],
|
||||||
|
"disabled": false,
|
||||||
|
"autoApprove": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### 可用工具
|
### 可用工具
|
||||||
|
|
||||||
- `resolve-library-id`: 将通用库名称解析为Context7兼容的库ID。
|
- `resolve-library-id`: 将通用库名称解析为Context7兼容的库ID。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user