{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_y8eva497zgad","handle":"py4agent-mcp","url":"https://wellknown.network/agents/py4agent-mcp","links":{"self":"https://wellknown.network/agents/py4agent-mcp/record.json","html":"https://wellknown.network/agents/py4agent-mcp","markdown":"https://wellknown.network/agents/py4agent-mcp/record.md","api":"https://wellknown.network/api/v1/agents/py4agent-mcp","status":"https://wellknown.network/api/v1/agents/py4agent-mcp/status","claim":"https://wellknown.network/agents/py4agent-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/py4agent-mcp/claim.json","badge":"https://wellknown.network/agents/py4agent-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/py4agent-mcp/history","tools":"https://wellknown.network/api/v1/agents/py4agent-mcp/tools"},"ard":{"identifier":"urn:air::server:py4agent-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"py4agent-mcp","summary":"MCP (Model Context Protocol) Server for py4agent - Provides code execution capabilities through Jupyter kernels","description":"# py4agent-mcp\n\nMCP (Model Context Protocol) Server for py4agent - Provides code execution capabilities through Jupyter kernels.\n\n## Features\n\n- **Isolated Python Runtimes**: Create and manage independent Python execution environments\n- **MCP Protocol Integration**: Seamless integration with Model Context Protocol\n- **Jupyter Kernel Backend**: Powered by Jupyter Server's kernel management\n- **Multi-modal Output**: Support for text, tables, plots, and images\n- **Background Execution**: Async code execution for long-running operations\n- **Runtime Persistence**: Automatic save/restore of runtime configurations\n\n## Installation\n\nThis project is part of a monorepo. Install dependencies:\n\n```bash\n# Install py4agent (required dependency)\npip install py4agent\n\n# Install py4agent-mcp\ncd py4agent-mcp\npip install -e .\n```\n\nFor development setup, see [INSTALL.md](INSTALL.md).\n\n## Usage\n\n### Start the MCP Server\n\n```bash\n# Start with default settings (127.0.0.1:8889)\npy4agent-mcp\n\n# Custom host and port\npy4agent-mcp --host 0.0.0.0 --port 9000\n\n# Enable debug logging\npy4agent-mcp --debug\n\n# Save logs to file\npy4agent-mcp --log-dir ./logs\n```\n\n### Command Line Options\n\n- `--host`: Host to bind (default: 127.0.0.1)\n- `--port`: Port to bind (default: 8889)\n- `--debug`: Enable debug logging\n- `--workers`: Number of worker processes (must be 1 for MCP)\n- `--log-dir`: Directory to store logs (optional)\n\n### Python API\n\n```python\nfrom py4agent_mcp import create_app, create_mcp_app, main\nfrom py4agent_mcp.mcp_server import JupyterKernelManager\n\n# Create FastAPI app with MCP mounted\napp = create_app()\n\n# Create MCP server app\nmcp_app = create_mcp_app()\n\n# Run the server\nmain()\n```\n\n## MCP Tools\n\nThe server exposes the following MCP tools:\n\n1. **create_runtime**: Create a new isolated Python runtime\n2. **list_runtimes**: List all active runtimes\n3. **delete_runtime**: Delete a runtime and free resources\n4. **restart_runtime**: Restart a runtime (clears state)\n5. **interrupt_runtime**: Int…","publisher":{"name":"LinXueyuanStdio","url":null},"homepage":null,"repository":null,"version":"0.1.1","license":null,"protocols":["mcp"],"tags":["mcp","jupyter","code-interpreter","ai-agent","code-execution","model-context-protocol"],"pricing":null,"endpoints":[{"url":"pypi:py4agent-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"code.execution","name":"Code Execution","confidence":1,"provenance":"declared"},{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.825,"provenance":"derived"}],"categories":["code","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"py4agent-mcp","registry":"pypi","observedAt":"2026-10-28T20:23:09.694Z","publishedAt":"2026-02-01T11:31:39.242765Z","latestVersion":"0.1.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"py4agent-mcp","url":"https://pypi.org/project/py4agent-mcp/","firstSeenAt":"2026-09-10T10:24:28.534Z","fetchedAt":"2026-10-28T20:21:49.733Z","normalizedAt":"2026-10-28T20:21:49.733Z"}]},"firstSeenAt":"2026-09-10T10:24:28.534Z","updatedAt":"2026-10-28T20:23:09.694Z"}