Skip to main content

Add your description here

Project description

MseeP.ai Security Assessment Badge Verified on MseeP

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2fa795ac198c521591d20b52cce865bac51822c2f1d1d03a6a48b6e2a36bd133
MD5 dfc28d698821d8e6b0731978786aa3cc
BLAKE2b-256 2cdb16555dffd89eacef651bfde1a8bfc1872cc154707a5c7609d6143ee6924a

See more details on using hashes here.

File details

Details for the file iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f37caf01396cd440097959fcc498a4e80c3eb4542b62d492ec34901a3e3f369f
MD5 bb2b96c5ea9fdb5c18fd9903b5075336
BLAKE2b-256 79de18074ccf9ed3905482c028d356a9f6205341ba96d373ac064a7f6a587d80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page