The knowledge base is fully open. Semantic search, entity lookup and solution generation are exposed as standard APIs — any client supporting OpenAPI, MCP (Model Context Protocol) or plain REST HTTP can integrate with zero friction: Claude, ChatGPT, Cursor, Trae, WorkBuddy, and anything else that speaks one of the three. Both Chinese and English queries are supported natively.
| Endpoint | What it does |
|---|---|
POST /api/consult | Solution Consult — intent decomposition + LLM technical-chain assembly |
GET|POST /api/lookup | Entity Lookup — direct CAP_ capability / AST_ asset profiles |
POST /api/evidence/search | Evidence Search (RAG) — research evidence, engineering notes & benchmarks |
POST /api/search | Hybrid Search — multi-channel vector + BM25 retrieval |
Evidence / RAG search:
POST https://xiangshang.ngrok.app/api/evidence/search
Content-Type: application/json
{
"query": "robot obstacle avoidance algorithms",
"top_k": 5,
"mode": "hybrid",
"rerank": true
}
Solution consult (slow — set request timeout ≥ 180s):
curl -X POST "https://xiangshang.ngrok.app/api/consult" \
-H "Content-Type: application/json" --max-time 180 \
-d '{"question":"how to build a robot obstacle avoidance system","top_k":30,"rerank":true}'
OpenAPI Schema URL:
https://xiangshang.ngrok.app/openapi.json
Setup: in the Custom GPT editor → Configure → Actions → click Import from URL, paste the link above, set Authentication to None.
Option A (recommended · OpenAPI import): WorkBuddy settings
→ Custom Tools / Plugin → "Import from OpenAPI URL", enter
https://xiangshang.ngrok.app/openapi.json. This auto-registers the
Consult, Lookup, Evidence and Search tools.
Option B (MCP mode): download the MCP server and register it as a local MCP command. The consult tool already uses a 180s internal timeout.
pip install mcp curl -o ontology_mcp_server.py https://xiangshang.ngrok.app/mcp/ontology_mcp_server.py
{
"mcpServers": {
"entropy-box": {
"command": "python",
"args": ["/absolute/path/to/ontology_mcp_server.py"],
"env": { "ONTOLOGY_API_BASE": "https://xiangshang.ngrok.app" }
}
}
}
Trae, Cursor and Claude Desktop all support MCP servers natively. Step 1 — download the all-in-one MCP script:
pip install mcp curl -o ontology_mcp_server.py https://xiangshang.ngrok.app/mcp/ontology_mcp_server.py
Step 2 — add to the MCP config file (Trae: Settings → MCP
Servers; Claude: claude_desktop_config.json):
{
"mcpServers": {
"entropy-box": {
"command": "python",
"args": ["/absolute/path/to/ontology_mcp_server.py"],
"env": { "ONTOLOGY_API_BASE": "https://xiangshang.ngrok.app" }
}
}
}
The API auto-detects the query language. Chinese queries (e.g. “双足机器人上楼梯的步态规划”) and English queries (e.g. “robot obstacle avoidance algorithms”) are passed through directly and return equally relevant results. No translation flag is required — just send the query in either language.
The Evidence endpoint (POST /api/evidence/search)
is a RAG over the curated evidence knowledge base — it retrieves de-identified fragments
of engineering patterns, open-source selection rationale, algorithm-comparison notes and
benchmark data (documented in the OpenAPI spec as
“调研证据与开源选型依据检索 / Evidence Search”). It is ideal for questions
like “why X is not used over Y” or “known defects of
library Z in real deployment”.
If you would rather not depend on a live service, the published data files cover a good deal on their own: bilingual capability and asset indices, the three-level taxonomy, the 126-query retrieval golden set, the adjudicated duplicate ledger, and nine topics reproduced in full with their task-chain diagrams. All under CC BY 4.0.