索骥 · SOP 检索智能体(Self-serve MCP server for SOP retrieval. Runs locally, answers with document name, version and section citations.) |元枢体系 YUANSHU

SOP Retrieval — Self-Serve Test Package

M8ven Score

Evaluate SOP retrieval on your own data, locally. Your documents neverleave your machine.

What is inside

  • run_server.py — starts the MCP server (stdio transport)
  • tools/ingest_cli.py — one-command ingestion of your SOP folder
  • sample_sops/ — six sample warehouse SOPs to try immediately
  • sop_mcp/ — server code (PDF/DOCX/text ingestion, pure-Python retrieval)
  • SCOPE.md — what this package does and does not do (read first)

Requirements

  • Python 3.10+
  • pip install -r requirements.txt (installs the mcp package only)

Install from PyPI

pip install sop-retrieval-mcp

This installs the sop-retrieval-mcp MCP server entrypoint (stdio transport). Listed in the official MCP Registry as io.github.tanbopiao/sop-retrieval-mcp. Running from source (below) still works.

Quick start (3 steps)

  1. Ingest your documents

    python tools/ingest_cli.py /path/to/your/sop/folder
    

    Supported file types: .pdf, .docx, .txt, .md, .csv, .json, .log.Re-running is safe — unchanged files are skipped.

  2. Start the MCP server

    python run_server.py
    
  3. Connect from any MCP client (Claude Desktop, Cursor, etc.) withthis configuration:

    Or install from PyPI and use uvx (no local clone needed):

    {
      "mcpServers": {
        "sop-retrieval": {
          "command": "uvx",
          "args": ["sop-retrieval-mcp"]
        }
      }
    }
    

Then ask questions like:

  • "What must be checked before dispatching goods?"
  • "What do I do if the vehicle seal number does not match?"
  • "Where do damaged cartons go during putaway?"

Every answer comes back with its source: document name, version,and section — so an operator can verify before acting.

Tools provided by the server

Tool What it does
ingest_documents(folder_path) Load SOP files into the index
search_procedure(query, top_k) Retrieve the right procedure passage with source
list_documents() Show loaded documents and detected versions
check_versions() Flag multiple versions of the same procedure
trial_status() Show evaluation period status

Version handling

If two versions of the same procedure are loaded (e.g.SOP-WH-003_Picking_v3.0.txt and SOP-WH-003_Picking_v3.1.txt),search_procedure prefers the highest version and flags the conflictvia check_versions().

Evaluation period

Free for 30 days from first run, unlimited documents. For the managedproduction version (integration with your ERP/AI systems, hostedindexing, multi-site support), contact us.

Scope

Read SCOPE.md before evaluating: it lists exactly what this packagedoes, what it does not do, and what is out of scope. Nothing beyondthat scope is promised.

Troubleshooting

  • "unsupported type" when ingesting — the file extension is not inthe supported list. Convert it to PDF, DOCX or plain text.
  • PDF ingests but content looks wrong — the PDF may be a scanwithout a text layer. SCOPE.md covers this limit; use text-basedPDFs or DOCX.
  • Answers cite an old version — run check_versions(); if severalversions of one procedure are loaded, remove the outdated files andre-ingest.
  • MCP client cannot connect — make sure the args path in yourclient config is the absolute path to run_server.py, and thatpython resolves to Python 3.10+.

More from us

This package is one piece of a broader verifiable-agent toolkit. The officialsite — with the full works catalog and background — lives athuodouai.com.

道统映射表(命名即种子)

索骥——按图索骥:规程检索的本质,是沿着版本这条线索找到当下唯一正确的做法。命名即架构,全仓结构由这个名字生长而来:

道统 仓内落位
命名即种子:索骥=按图索骥,按版本线索检索规程 sop_mcp/versions.py 抽取版本/生效日期/替代关系,归并文档族
检索可溯源:每条答案必须带出处,操作员先核验再执行 retrieval.BM25Index.search 返回 doc_id/version/section 出处
防篡改现形:文件改动即指纹失配,重索引不静默覆盖 store.Store 按 sha256[:12] 指纹跳过未变文件,改动即现形
旧版让位:同族多版本并存时,高版本加权靠前并标记冲突 search(version_boost=...) 惩罚旧版,find_conflicts 记冲突
试用有闸:先试后买,期限与状态可查 trial.get_license/check_trial 30 天评估闸
回归铁律:改动后历史用例必须全绿 tests/test_sop_mcp.py 16 例五域回归+tests/regression.md

License

MIT — see LICENSE. The evaluation-period terms in SCOPE.md apply ontop of it for the trial gate; the managed production version is licensedseparately.

Offline diagnostic CLI

Prefer a one-shot health check over running the MCP server? Use thediagnostic CLI — it ingests a folder of SOPs and reports version conflicts,missing metadata, stale documents, coverage gaps and a retrieval self-test,without any document text leaving your machine. SeeDIAGNOSTIC_README.md for the 3-step quick start.

🌐 智能体生态社区

本作品是 huodouai.com 智能体生态社区 的一部分——一个智能体自主登记、认领任务、交付留痕的开放社区。新到的智能体请先读 启动记忆,按 新手村分步指引 五步完成接入。

MCP Server · Populars

MCP Server · New

    atilaahmettaner

    TradingMCP: Market Data & Technical Analysis for AI Assistants

    MCP server for market analysis in AI assistants: screeners, multi-timeframe technical analysis, backtests and sentiment for crypto, stocks, forex and futures. 39 tools. Self-host free, or use the hosted version, TradingMCP.

    Community atilaahmettaner
    lifan-builds

    Faster Mac Use (fmu)

    Background-first, multi-cursor browser and native macOS computer-use engine for AI agents

    Community lifan-builds
    agent360dev

    Agent360 Browser MCP

    The browser tool that can stop and ask you. A 2FA code, a CAPTCHA, a choice only you can make: it asks on your screen, then carries on in the same signed-in Chrome. 41 tools, MCP clients that run local servers, MIT.

    Community agent360dev
    robinAKL

    Agent Room

    Put Claude Code, Cursor, Codex, Gemini & Antigravity in one room — real-time multi-agent AI collaboration over MCP for distributed dev, code review, PR handoff & frontend↔backend integration. Free, self-hostable, MCP-native.

    Community robinAKL
    blen-labs

    Capture MCP

    AI-native Model Context Protocol (MCP) server that integrates SAM.gov, USASpending.gov, and Tango APIs to capture and analyze federal procurement and spending data through natural language queries. Responses include both human-readable text and structured JSON so MCP-compatible clients can consume the data programmatically.

    Community blen-labs