Merge pull request '验证更新VS Code Copilot 配置DevStar MCP Server' (#13) from mengning-patch-1 into main
Some checks failed
CI/CD Pipeline for mengning.com.cn / build (push) Failing after 3m6s
Some checks failed
CI/CD Pipeline for mengning.com.cn / build (push) Failing after 3m6s
Reviewed-on: #13
This commit is contained in:
@@ -103,12 +103,13 @@ DevStar MCP Server 提供开箱即用的体验,通过 DevStar VS Code 插件
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"devstar": {
|
||||
"url": "https://devstar.cn/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
"devstar": {
|
||||
"type": "http",
|
||||
"url": "http://<YOUR_DEVSTAR_HOST>/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -122,33 +123,32 @@ DevStar MCP Server 提供开箱即用的体验,通过 DevStar VS Code 插件
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"devstar": {
|
||||
"url": "https://devstar.cn/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
"devstar": {
|
||||
"type": "http",
|
||||
"url": "http://<YOUR_DEVSTAR_HOST>/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**VS Code Copilot**
|
||||
|
||||
配置文件位置:
|
||||
- macOS/Linux: `~/.vscode/mcp.json`
|
||||
- Windows: `%USERPROFILE%\.vscode\mcp.json`
|
||||
- 手工配置:Ctrl + Shift + P 输入 workbench.mcp.openUserMcpJson 命令执行,然后在弹出的mcp.json配置文件中添加devstar如下:
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"devstar": {
|
||||
"type": "http",
|
||||
"url": "https://devstar.cn/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
}
|
||||
"servers": {
|
||||
"devstar": {
|
||||
"type": "http",
|
||||
"url": "http://<YOUR_DEVSTAR_HOST>/api/mcp",
|
||||
"headers": {
|
||||
"Authorization": "Bearer <YOUR_TOKEN>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user