My AI Couldn’t See My Files — I Built a Zero-Dependency MCP Server
Towards Data Science3679 字 (约 15 分钟)
87
作者实现了一个零依赖的 MCP 服务器,使用 Python 标准库仅一文件即可运行,支持 stdio 与 HTTP/SSE 两种传输,5 个并发客户端在 Windows 11 上 50ms 内完成请求,并通过严格路径检查保障安全。
入选理由:MCP 只需要 sys.stdin、sys.stdout、http.server、threading、queue、pathlib、json 等标准库,无需 pip 安装。
精选文章#MCP#JSON-RPC#Python#Zero-dependency#Concurrency中文
