docs: Adding Notes on Using MCP in Windows Systems

This commit is contained in:
citizenl 2025-05-07 13:56:48 +08:00
parent 171b298f7a
commit 1755903edf
2 changed files with 40 additions and 0 deletions

View File

@ -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.*
### 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
- `DEFAULT_MINIMUM_TOKENS`: Set the minimum token count for documentation retrieval (default: 10000).

View File

@ -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)
</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。