使用说明
mcp示例
实现mcp服务器以在沙盒环境中运行python代码。 https://ai.pydantic.dev/mcp/run-python/
安装
# Install the client
uv sync
# Install the server
curl -fsSL https://deno.land/install.sh | sh
运行代码
# Start the mcp server
uv run python mcp_studio_run_python.py
在沙盒环境中运行Python代码的服务,适用于安全执行不受信任的代码。
实现mcp服务器以在沙盒环境中运行python代码。 https://ai.pydantic.dev/mcp/run-python/
# Install the client
uv sync
# Install the server
curl -fsSL https://deno.land/install.sh | sh
# Start the mcp server
uv run python mcp_studio_run_python.py