Skip to content

Commit fcd7310

Browse files
authored
Merge pull request #166 from citizenll/fix_windows_npx
2 parents cb01c51 + 1755903 commit fcd7310

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,26 @@ If you prefer to run the MCP server in a Docker container:
231231
232232
*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.*
233233
234+
### Install in Windows
235+
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`.
236+
```json
237+
{
238+
"mcpServers": {
239+
"github.com/upstash/context7-mcp": {
240+
"command": "cmd",
241+
"args": [
242+
"/c",
243+
"npx",
244+
"-y",
245+
"@upstash/context7-mcp@latest"
246+
],
247+
"disabled": false,
248+
"autoApprove": []
249+
}
250+
}
251+
}
252+
```
253+
234254
### Environment Variables
235255
236256
- `DEFAULT_MINIMUM_TOKENS`: Set the minimum token count for documentation retrieval (default: 10000).

docs/README.zh-CN.md

+20
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,26 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp@latest
209209
- 当前Cursor版本(0.49.5), 请不要使用本方式启动MCP server,详情:[Cursor官方说明](https://docs.cursor.com/context/model-context-protocol#remote-development)
210210
</em>
211211

212+
### 在Windows上安装
213+
在windows上的配置相对于linux或macos来说有些许不同,(*示例使用的`Cline`*), 其它编辑器同理, 参考`command``args`的配置即可
214+
```json
215+
{
216+
"mcpServers": {
217+
"github.com/upstash/context7-mcp": {
218+
"command": "cmd",
219+
"args": [
220+
"/c",
221+
"npx",
222+
"-y",
223+
"@upstash/context7-mcp@latest"
224+
],
225+
"disabled": false,
226+
"autoApprove": []
227+
}
228+
}
229+
}
230+
```
231+
212232
### 可用工具
213233

214234
- `resolve-library-id`: 将通用库名称解析为Context7兼容的库ID。

0 commit comments

Comments
 (0)