Pexpect

72

Provides remote process control and debugging capabilities through Python's pexpect library, enabling spawning, interaction with, and control of command-line programs, debuggers, and interactive shells with session persistence and timeout handling.

Category Libraries
Added Mar 28, 2026
Views 38

About

This MCP server provides remote process control and debugging capabilities through Python's pexpect library, enabling AI assistants to spawn, interact with, and control command-line programs, debuggers, and interactive shells. Built by Mitsuhiko using FastMCP with timeout handling and session persistence, it executes Python code that can launch processes like lldb, gdb, or any terminal application, then send commands and capture output through expect patterns. The implementation maintains global session state across tool calls and includes a demo buggy C program for testing debugging workflows, making it valuable for automated debugging sessions, system administration tasks, and scenarios where AI assistants need to interact with command-line tools that require real-time input/output control.

Is this your project?

Claim this listing to manage your page, access analytics, and unlock upgrades. Verification takes 60 seconds.

Log In to Claim

Share This Project

Embed Badge

Add this badge to your README:

[![Listed on AiList](https://hifriendbot.com/ai-list/badge/pexpect.svg)](https://hifriendbot.com/ai-list/pexpect/)
Listed on AiList

List Your Project

Join the directory Ai agents read. Free forever.

Submit Your Project