-
securityA
license-
qualityA Model Context Protocol server that extracts and analyzes Python code structures, focusing on import/export relationships between files to help LLMs understand code context.
Last updated -
4
Python
MIT License
一个用于模型上下文协议 (MCP) 的 Pyodide 服务器实现。该服务器支持大型语言模型 (LLM) 通过 MCP 接口执行 Python 代码。
以 stdio 模式启动(默认):
以 SSE 模式启动:
在 SSE 模式下运行时,服务器提供以下端点:
http://localhost:3020/sse
http://localhost:3020/messages
客户端连接示例:
@modelcontextprotocol/sdk
: MCP SDK (^1.4.0)pyodide
:Python 运行环境(^0.27.1)arktype
:类型验证库(^2.0.1)express
:支持 SSE 的 Web 框架cors
:用于 SSE 支持的 CORS 中间件npm run build
:编译 TypeScript 并设置执行权限npm start
:以 stdio 模式运行服务器npm run start:sse
:以 SSE 模式运行服务器PYODIDE_CACHE_DIR
:Pyodide 缓存目录(默认值:“./cache”)PYODIDE_DATA_DIR
:挂载数据的目录(默认值:“./data”)PORT
:SSE 服务器的端口(默认值:3020)麻省理工学院
git checkout -b feature/amazing-feature
)git commit -am 'Add some amazing feature'
)git push origin feature/amazing-feature
)请使用问题跟踪器来查找问题和疑问。
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
一个 Pyodide 服务器,用于通过模型上下文协议 (MCP) 由大型语言模型 (LLM) 执行 Python 代码。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yonaka15/mcp-pyodide'
If you have feedback or need assistance with the MCP directory API, please join our Discord server