Skip to main content

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

Metadata

Release files for iflow-mcp_mcp-oi-wiki 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_mcp-oi-wiki 0.1.0
File Size Uploaded
iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_mcp-oi-wiki 0.1.0
File Interpreter ABI Platform
iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz

Download URL iflow_mcp_mcp_oi_wiki-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2fa795ac198c521591d20b52cce865bac51822c2f1d1d03a6a48b6e2a36bd133
BLAKE2b-256 checksum
How to use checksums
2cdb16555dffd89eacef651bfde1a8bfc1872cc154707a5c7609d6143ee6924a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release files / iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl

Download URL iflow_mcp_mcp_oi_wiki-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f37caf01396cd440097959fcc498a4e80c3eb4542b62d492ec34901a3e3f369f
BLAKE2b-256 checksum
How to use checksums
79de18074ccf9ed3905482c028d356a9f6205341ba96d373ac064a7f6a587d80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page