Sponsored by Deepsite.site

mcp-oi-wiki

创建者
ShwStone2 years ago
🌟 Wiki of OI / ICPC for LLMs. (面向大模型的某大型游戏线上攻略,内含炫酷算术魔法)
内容

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

推荐的 MCP Client
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
ZedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
EXPLYT
DeepChatYour AI Partner on Desktop
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
ChatWiseThe second fastest AI chatbot™
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
Cline – #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
y-cli 🚀A Tiny Terminal Chat App for AI Models with MCP Client Support
WindsurfThe new purpose-built IDE to harness magic
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
Cherry Studio🍒 Cherry Studio is a desktop client that supports for multiple LLM providers.
MCP PlaygroundCall MCP Server Tools Online
Continue⏩ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
LutraLutra is the first MCP compatible client built for everyone