{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_p27kj9b2sgek","handle":"iflow-mcp-mitsuhiko-pexpect-mcp","url":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp","links":{"self":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp/record.json","html":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp","markdown":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp/record.md","api":"https://wellknown.network/api/v1/agents/iflow-mcp-mitsuhiko-pexpect-mcp","status":"https://wellknown.network/api/v1/agents/iflow-mcp-mitsuhiko-pexpect-mcp/status","claim":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp/claim.json","badge":"https://wellknown.network/agents/iflow-mcp-mitsuhiko-pexpect-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/iflow-mcp-mitsuhiko-pexpect-mcp/history","tools":"https://wellknown.network/api/v1/agents/iflow-mcp-mitsuhiko-pexpect-mcp/tools"},"ard":{"identifier":"urn:air::server:iflow-mcp-mitsuhiko-pexpect-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"iflow-mcp_mitsuhiko-pexpect-mcp","summary":"MCP server for remote pexpect session control","description":"# pexpect-mcp\n\nAn [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that\nprovides remote pexpect session control for debugging and process interaction.\n\n## Overview\n\nThis MCP server enables AI assistants to execute Python code with pexpect\nfunctionality, allowing for interactive debugging sessions with tools like\nLLDB, GDB, and other command-line utilities that require programmatic\ninteraction.\n\nIn some sense this is less of a pexpect MCP as one that is just maintaining\na stateful Python session.\n\n## Installation\n\n```bash\nuv tool install git+https://github.com/mitsuhiko/pexpect-mcp\n```\n\n## Usage\n\n### As an MCP Server\n\nAdd to your Claude Code configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"pexpect\": {\n      \"command\": \"pexpect-mcp\"\n    }\n  }\n}\n```\n\n### Tool Usage\n\nThe server provides a single tool: `pexpect_tool`\n\n**Parameters:**\n- `code` (string): Python code to execute with pexpect support\n- `timeout` (optional int): Timeout in seconds (default: 30)\n\n**Example Usage:**\n\n```python\n# Start a debugging session\nchild = pexpect.spawn('lldb ./my-program')\nchild.expect('(lldb)')\n\n# Run the program\nchild.sendline('run')\nchild.expect('(lldb)')\nprint(child.before.decode())\n\n# Get backtrace\nchild.sendline('bt')\nchild.expect('(lldb)')\nprint(child.before.decode())\n```\n\n## Demo\n\nThe repository includes a demo with a buggy C program (`demo-buggy.c`) that can\nbe debugged using LLDB through the pexpect interface. This demonstrates the\nserver's capability for interactive debugging sessions.\n\n```\nThe program `./demo-buggy` crashes when executed. Use LLDB to:\n\n- Start the program under the debugger\n- Identify where and why it crashes\n- Examine variables, memory, and call stack\n- Report the root cause of the crash\n```\n\n## Requirements\n\n- Python ≥ 3.12.1\n- pexpect ≥ 4.9.0\n- mcp ≥ 1.13.0\n\n## License\n\nSee LICENSE file for details.","publisher":null,"homepage":null,"repository":null,"version":"0.1.0","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:iflow-mcp_mitsuhiko-pexpect-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"}},"derived":{"capabilities":[{"slug":"dev.version-control","name":"Version Control","confidence":1,"provenance":"derived"},{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.825,"provenance":"derived"}],"categories":["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":"iflow-mcp_mitsuhiko-pexpect-mcp","registry":"pypi","observedAt":"2026-09-15T19:23:18.255Z","publishedAt":"2026-02-12T21:05:44.518262Z","latestVersion":"0.1.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"iflow-mcp_mitsuhiko-pexpect-mcp","url":"https://pypi.org/project/iflow-mcp_mitsuhiko-pexpect-mcp/","firstSeenAt":"2026-09-09T20:24:15.662Z","fetchedAt":"2026-09-15T19:21:50.865Z","normalizedAt":"2026-09-15T19:21:50.865Z"}]},"firstSeenAt":"2026-09-09T20:24:15.662Z","updatedAt":"2026-09-15T19:23:18.255Z"}