Add your description here
Project description
mcp-oi-wiki
让大模型拥有 OI-Wiki 的加成!
How does it work?
使用 Deepseek-V3 对 OI-wiki 当前的 462 个页面做摘要,将摘要嵌入为语义向量,建立向量数据库。
查询时,找到数据库中最接近的向量,返回对应的 wiki markdown。
Usage
确保你拥有 uv。
首先,下载本仓库:
cd <path of MCP servers>
git clone --recurse-submodules https://github.com/ShwStone/mcp-oi-wiki.git
然后打开你的 MCP 配置文件(mcpo 或 claude):
{
"mcpServers": {
"oi-wiki": {
"command": "uv",
"args": [
"--directory",
"<path of MCP servers>/mcp-oi-wiki",
"run",
"python",
"main.py"
]
}
}
}
Update
可以生成自己的 db/oi-wiki.db。
将 Silicon flow API key 放在 api.key 文件中。
然后运行:
uv run script/request.py
在批量推理页面下载摘要结果到 result.jsonl。
最后运行:
uv run script/gendb.py
生成新的 db/oi-wiki.db。
Thanks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa795ac198c521591d20b52cce865bac51822c2f1d1d03a6a48b6e2a36bd133
|
|
| MD5 |
dfc28d698821d8e6b0731978786aa3cc
|
|
| BLAKE2b-256 |
2cdb16555dffd89eacef651bfde1a8bfc1872cc154707a5c7609d6143ee6924a
|
File details
Details for the file iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37caf01396cd440097959fcc498a4e80c3eb4542b62d492ec34901a3e3f369f
|
|
| MD5 |
bb2b96c5ea9fdb5c18fd9903b5075336
|
|
| BLAKE2b-256 |
79de18074ccf9ed3905482c028d356a9f6205341ba96d373ac064a7f6a587d80
|