Skip to main content

socratic-mcp

把 Socratic sidecar 包成 MCP server:任何支持 MCP 的 agent host(DSH、Claude Desktop、Cursor…)都能直接调用,不需要为每个 host 写插件。

SOCRATIC_SIDECAR_URL=http://127.0.0.1:8765 python -m socratic_mcp.server

工具

工具 作用
kb_search 检索;返回 citation 与页图 URL;可带 book+chapter 收窄到章回
kb_read 按 chunk_id 读取
chapter_lookup 「卷3」「第7回」或标题片段 → 页码范围与页图;给 page 则反查所在章回
review_session 复盘一个教学会话
socratic_state 读教学状态机
socratic_health sidecar 是否可达 + 索引统计

前置:一个符合契约的数据库

sidecar 读的库不属于本仓库,需按 docs/RAG-DB-SCHEMA.md 自行构建(或取得)。没有库时服务仍能启动,/health 返回 {"ok": false, "reason": "no_index"},工具会得到 no_index 而不是崩掉。

配置

环境变量 默认 说明
SOCRATIC_SIDECAR_URL http://127.0.0.1:8765 sidecar 地址
SOCRATIC_TOKEN 空 非空时以 Authorization: Bearer 发送

sidecar 未启动时,工具返回 {"error":"sidecar_unreachable",...} 且 isError: true,连接不断。

挂到 DSH

~/.dsh/dsh-mcp-plus/servers.json 加一条:

{
  "mcpServers": {
    "socratic": {
      "command": "python",
      "args": ["-m", "socratic_mcp.server"],
      "env": { "SOCRATIC_SIDECAR_URL": "http://127.0.0.1:8765" }
    }
  }
}

协议实现范围

initialize、ping、tools/list、tools/call,stdio + newline-delimited JSON-RPC 2.0。没有 SDK 依赖(6 条测试,含一次真实 stdio 往返)。

Metadata

Release files for socratic-mcp 0.2.1

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

Source distribution (sdist)

Source distribution for socratic-mcp 0.2.1
File Size Uploaded Provenance Actions
socratic_mcp-0.2.1.tar.gz 7.1 kB With provenance Details for socratic_mcp-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for socratic-mcp 0.2.1
File Interpreter ABI Platform Actions
socratic_mcp-0.2.1-py3-none-any.whl Python 3 none any Details for socratic_mcp-0.2.1-py3-none-any.whl

Total release size: 14.5 kB

Release files / socratic_mcp-0.2.1.tar.gz

Download URL socratic_mcp-0.2.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2a60b296d868a2ba454ac9bf6a4e11fc12c067ba464cfb857135e20ffd1b18b5
BLAKE2b-256 checksum
How to use checksums
e17d5da20fa8f136f77b6b7beb769ca7173ebc7d735715ddac3095b7a5583de3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / socratic_mcp-0.2.1-py3-none-any.whl

Download URL socratic_mcp-0.2.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
449b9e7d15772bfcba8d8b86ac2b005f86376e61a14074070b20b30190cd919e
BLAKE2b-256 checksum
How to use checksums
5450f27c9239358eec094d87a5064065042c99b0a8881ef11d8f9cbb7eb32df4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for socratic-mcp 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for socratic_mcp-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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