Update README.md

This commit is contained in:
AiShell 2025-10-20 21:11:01 +08:00 committed by GitHub
parent 73cdaba3df
commit 77581c56d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,12 +80,13 @@ source venv/bin/activate # Windows 系统: venv\Scripts\activate
python -m mcp_open_client.main python -m mcp_open_client.main
``` ```
应用将启动并显示访问 URL通常为 `http://localhost:8080`)。 应用将启动并显示访问 URL通常为 `http://localhost:8091`)。
### 2. 配置 API 设置 ### 2. 配置 API 设置
在浏览器中打开显示的 URL进入 **配置 → API 设置** 进入 mcp-open-client/mcp_open_client/settings/ 目录:
cp user-settings.json.example user-settings.json
编辑user-settings.json如下修改api_key为你的deepseek api key
```json ```json
{ {
"api_key": "your-api-key-here", "api_key": "your-api-key-here",
@ -105,12 +106,32 @@ python -m mcp_open_client.main
- **LM Studio**: `http://localhost:1234/v1` - **LM Studio**: `http://localhost:1234/v1`
### 3. 设置 MCP 服务器(可选) ### 3. 设置 MCP 服务器(可选)
进入 mcp-open-client/mcp_open_client/settings/ 目录:
进入 **配置 → MCP 服务器** 添加外部工具: cp mcp-config.json.example mcp-config.json
编辑mcp-config.json
增加一个段
"hexstrike-ai": {
"disabled": false,
"command": "python3",
"args": [
"PATH/hexstrike_mcp.py",
"--server",
"http://IP:PORT"
]
},
```json ```json
{ {
"mcpServers": { "mcpServers": {
"hexstrike-ai": {
"disabled": false,
"command": "python3",
"args": [
"PATH/hexstrike_mcp.py",
"--server",
"http://IP:PORT"
]
},
"filesystem": { "filesystem": {
"command": "npx", "command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/workspace"] "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/workspace"]