mirror of
https://github.com/SunZhimin2021/AIPentest.git
synced 2025-11-05 02:42:52 +00:00
Update README.md
This commit is contained in:
parent
73cdaba3df
commit
77581c56d6
@ -80,12 +80,13 @@ source venv/bin/activate # Windows 系统: venv\Scripts\activate
|
||||
python -m mcp_open_client.main
|
||||
```
|
||||
|
||||
应用将启动并显示访问 URL(通常为 `http://localhost:8080`)。
|
||||
应用将启动并显示访问 URL(通常为 `http://localhost:8091`)。
|
||||
|
||||
### 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
|
||||
{
|
||||
"api_key": "your-api-key-here",
|
||||
@ -105,12 +106,32 @@ python -m mcp_open_client.main
|
||||
- **LM Studio**: `http://localhost:1234/v1`
|
||||
|
||||
### 3. 设置 MCP 服务器(可选)
|
||||
|
||||
进入 **配置 → MCP 服务器** 添加外部工具:
|
||||
进入 mcp-open-client/mcp_open_client/settings/ 目录:
|
||||
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
|
||||
{
|
||||
"mcpServers": {
|
||||
"hexstrike-ai": {
|
||||
"disabled": false,
|
||||
"command": "python3",
|
||||
"args": [
|
||||
"PATH/hexstrike_mcp.py",
|
||||
"--server",
|
||||
"http://IP:PORT"
|
||||
]
|
||||
},
|
||||
"filesystem": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/workspace"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user