Skip to content

Commit 8a40377

Browse files
zsuroybegoniezhao
authored andcommitted
fix python dependency version for mcp
1 parent a1d0cca commit 8a40377

File tree

10 files changed

+130
-14
lines changed

10 files changed

+130
-14
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ git clone https://github.com/Tencent/WeKnora
170170
```
171171

172172
#### 2️⃣ Configure MCP Server
173+
> It is recommended to directly refer to the [MCP Configuration Guide](./mcp-server/MCP_CONFIG.md) for configuration.
174+
173175
Configure the MCP client to connect to the server:
174176
```json
175177
{

README_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ WeKnora 作为[微信对话开放平台](https://chatbot.weixin.qq.com)的核心
167167
git clone https://github.com/Tencent/WeKnora
168168
```
169169
#### 2️⃣配置MCP服务器
170+
> 推荐直接参考 [MCP配置说明](./mcp-server/MCP_CONFIG.md) 进行配置。
171+
170172
mcp客户端配置服务器
171173
```json
172174
{

README_JA.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ WeKnoraは[WeChat対話オープンプラットフォーム](https://chatbot.wei
168168
git clone https://github.com/Tencent/WeKnora
169169
```
170170
#### 2️⃣MCPサーバーの設定
171+
> 設定には直接 [MCP設定説明](./mcp-server/MCP_CONFIG.md) を参照することをお勧めします。
172+
171173
MCPクライアントでサーバーを設定
172174
```json
173175
{

mcp-server/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ WeKnoraMCP/
8888
- 完整的测试覆盖
8989

9090
### 依赖
91-
- Python 3.8+
91+
- Python 3.10+
9292
- mcp >= 1.0.0
9393
- requests >= 2.31.0
9494

9595
### 兼容性
9696
- 支持 Windows、macOS、Linux
97-
- 支持 Python 3.8-3.12
97+
- 支持 Python 3.10-3.12
9898
- 兼容现代 Python 包管理工具

mcp-server/INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ python main.py --check-only
103103
### 1. 导入错误
104104
如果遇到 `ImportError`,请确保:
105105
- 已安装所有依赖:`pip install -r requirements.txt`
106-
- Python 版本兼容(推荐 3.8+)
106+
- Python 版本兼容(推荐 3.10+)
107107
- 没有文件名冲突
108108

109109
### 2. 连接错误

mcp-server/MCP_CONFIG.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# 使用 uv 运行 WeKnora MCP 服务器
2+
3+
> 更推荐使用`uv`来运行基于python的MCP服务。
4+
5+
## 1. 安装 uv
6+
7+
```bash
8+
# macOS/Linux
9+
curl -LsSf https://astral.sh/uv/install.sh | sh
10+
11+
# 或使用 Homebrew (macOS)
12+
brew install uv
13+
14+
# Windows
15+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
16+
```
17+
18+
## 2. MCP 客户端配置
19+
20+
### Claude Desktop 配置
21+
22+
在 Claude Desktop 设置中添加:
23+
24+
```json
25+
{
26+
"mcpServers": {
27+
"weknora": {
28+
"args": [
29+
"--directory",
30+
"/path/WeKnora/mcp-server",
31+
"run",
32+
"run_server.py"
33+
],
34+
"command": "uv",
35+
"env": {
36+
"WEKNORA_API_KEY": "your_api_key_here",
37+
"WEKNORA_BASE_URL": "http://localhost:8080/api/v1"
38+
}
39+
}
40+
}
41+
}
42+
```
43+
44+
### Cursor 配置
45+
46+
在 Cursor 中,编辑 MCP 配置文件 (通常在 `~/.cursor/mcp-config.json`):
47+
48+
```json
49+
{
50+
"mcpServers": {
51+
"weknora": {
52+
"command": "uv",
53+
"args": [
54+
"--directory",
55+
"/path/WeKnora/mcp-server",
56+
"run",
57+
"run_server.py"
58+
],
59+
"env": {
60+
"WEKNORA_API_KEY": "your_api_key_here",
61+
"WEKNORA_BASE_URL": "http://localhost:8080/api/v1"
62+
}
63+
}
64+
}
65+
}
66+
```
67+
68+
### KiloCode 配置
69+
70+
对于 KiloCode 或其他支持 MCP 的编辑器,配置如下:
71+
72+
```json
73+
{
74+
"mcpServers": {
75+
"weknora": {
76+
"command": "uv",
77+
"args": [
78+
"--directory",
79+
"/path/WeKnora/mcp-server",
80+
"run",
81+
"run_server.py"
82+
],
83+
"env": {
84+
"WEKNORA_API_KEY": "your_api_key_here",
85+
"WEKNORA_BASE_URL": "http://localhost:8080/api/v1"
86+
}
87+
}
88+
}
89+
}
90+
```
91+
92+
### 其他 MCP 客户端
93+
94+
对于一般 MCP 客户端配置:
95+
96+
```json
97+
{
98+
"mcpServers": {
99+
"weknora": {
100+
"command": "uv",
101+
"args": [
102+
"--directory",
103+
"/path/WeKnora/mcp-server",
104+
"run",
105+
"run_server.py"
106+
],
107+
"env": {
108+
"WEKNORA_API_KEY": "your_api_key_here",
109+
"WEKNORA_BASE_URL": "http://localhost:8080/api/v1"
110+
}
111+
}
112+
}
113+
}
114+
```

mcp-server/PROJECT_SUMMARY.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,7 @@ WeKnora MCP Server 模组测试
184184
## 🔍 兼容性
185185

186186
### Python 版本
187-
- ✅ Python 3.8+
188-
- ✅ Python 3.9
189-
- ✅ Python 3.10
187+
- ✅ Python 3.10+
190188
- ✅ Python 3.11
191189
- ✅ Python 3.12
192190

@@ -275,5 +273,5 @@ python test_module.py # 运行测试
275273

276274
**项目状态**: ✅ 完成并可投入使用
277275
**项目仓库**: https://github.com/NannaOlympicBroadcast/WeKnoraMCP
278-
**最后更新**: 2024年1月
276+
**最后更新**: 2025年10月
279277
**版本**: 1.0.0

mcp-server/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## 快速开始
66

7+
> 推荐直接参考 [MCP配置说明](./MCP_CONFIG.md),无需进行以下操作。
8+
79
### 1. 安装依赖
810
```bash
911
pip install -r requirements.txt
@@ -133,5 +135,5 @@ python test_module.py
133135

134136
如果遇到导入错误,请确保:
135137
1. 已安装所有必需的依赖包
136-
2. Python 版本兼容(推荐 3.8+)
138+
2. Python 版本兼容(推荐 3.10+)
137139
3. 没有文件名冲突(避免使用 `mcp.py` 作为文件名)

mcp-server/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ classifiers = [
2121
"License :: OSI Approved :: MIT License",
2222
"Operating System :: OS Independent",
2323
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.8",
25-
"Programming Language :: Python :: 3.9",
2624
"Programming Language :: Python :: 3.10",
2725
"Programming Language :: Python :: 3.11",
2826
"Programming Language :: Python :: 3.12",
2927
"Topic :: Software Development :: Libraries :: Python Modules",
3028
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
3129
"Topic :: Scientific/Engineering :: Artificial Intelligence",
3230
]
33-
requires-python = ">=3.8"
31+
requires-python = ">=3.10"
3432
dependencies = [
3533
"mcp>=1.0.0",
3634
"requests>=2.31.0",

mcp-server/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@ def read_requirements():
3838
"License :: OSI Approved :: MIT License",
3939
"Operating System :: OS Independent",
4040
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.8",
42-
"Programming Language :: Python :: 3.9",
4341
"Programming Language :: Python :: 3.10",
4442
"Programming Language :: Python :: 3.11",
4543
"Programming Language :: Python :: 3.12",
4644
"Topic :: Software Development :: Libraries :: Python Modules",
4745
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
4846
"Topic :: Scientific/Engineering :: Artificial Intelligence",
4947
],
50-
python_requires=">=3.8",
48+
python_requires=">=3.10",
5149
install_requires=read_requirements(),
5250
entry_points={
5351
"console_scripts": [

0 commit comments

Comments
 (0)