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 是否可达 + 索引统计 |
配置
| 环境变量 | 默认 | 说明 |
|---|---|---|
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.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| socratic_mcp-0.1.1.tar.gz | 6.8 kB | Without provenance | Details for socratic_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| socratic_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for socratic_mcp-0.1.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / socratic_mcp-0.1.1.tar.gz
| Download URL | socratic_mcp-0.1.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
375613bd7e0e8d3968f698c29c922e03e30a927d34c306786eb7a4a0d7ea0593
|
|
BLAKE2b-256 checksum How to use checksums |
19e13884945552d5c97b06ec35ba10163b0a67999d3408bc87d515fefaeb0273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / socratic_mcp-0.1.1-py3-none-any.whl
| Download URL | socratic_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
048b3277c2f7acf33c1443a0ad976311d18a505f1948fbfa3ed2be3771704933
|
|
BLAKE2b-256 checksum How to use checksums |
27b17d8b7d34b6fee863ab2ae9355e795041d5518da2fd46b69255f5e78f1549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for socratic-mcp 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.