MCP.so
登录

MCP Interactive Terminal Server

@danielp370-msft

基本信息

分类

开发工具

许可证

MIT license

传输方式

stdio

作者

danielp370-msft

关于 MCP Interactive Terminal Server

MCP server for interacting with a terminal or process based command over stdio.

MCP Interactive Terminal Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp_interactive_terminal": {
      "command": "uv",
      "args": [
        "run",
        "python",
        "-m",
        "interactive.server"
      ]
    }
  }
}

MCP Interactive Terminal Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Interactive Terminal Server?

The MCP Interactive Terminal Server allows an AI agent to interact with command-line driven prompts, such as gdb, a UART console, or any REPL-based tool. Built with FastMCP, it provides tools for managing interactive terminal sessions and supports stdio, sse, and streamable-http transports.

How to use MCP Interactive Terminal Server?

Clone the repository, ensure Python 3.12+ and optionally UV Astral are installed, then run the server via the command line (e.g., uv run python -m interactive.server) or configure it in VS Code’s .vscode/mcp.json and start it through the MCP interface.

Key features of MCP Interactive Terminal Server

  • Start and manage interactive terminal sessions.
  • Wait for specific output or prompts with timeouts.
  • Send commands to active sessions.
  • Terminate sessions on demand.
  • Retrieve a list of all active sessions.

Use cases of MCP Interactive Terminal Server

  • Automating debugging sessions with gdb.
  • Interacting with UART console output.
  • Managing any REPL-based tool programmatically.
  • Running interactive Python sessions from an agent.

常见问题

1

What are the runtime prerequisites for MCP Interactive Terminal Server?

Python 3.12 or later is required. The UV Astral package manager is optional but recommended for handling dependencies.

2

What transport options does the server support?

The server supports stdio (default), sse, and streamable-http transports, selectable via command-line arguments.

3

Can I log the output of an interactive session?

Yes, the start_session tool accepts an optional `log_file` parameter to write all session output to a specified file.

4

How do I start a new interactive session?

Use the start_session tool with a command string and optional arguments list, e.g., `start_session("python", ["-i"])` starts a Python REPL.

5

How do I retrieve active sessions?

Use the get_active_sessions tool to obtain a dictionary mapping session IDs to their current status.

评论

开发工具 分类下的更多 MCP 服务器