原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Console Automation

作者:ooples版本 1.0.2i★ –i在你的电脑上运行
注册名称io.github.ooples/mcp-console-automation

安装

概览

作者提供的说明(英文原文)

MCP server for AI-driven console application automation and monitoring

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "console-automation": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-console-automation"
      ],
      "env": {
        "LOG_LEVEL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add console-automation --env LOG_LEVEL=your-value -- npx -y mcp-console-automation

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "console-automation": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-console-automation"
      ],
      "env": {
        "LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "console-automation": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-console-automation"
      ],
      "env": {
        "LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • LOG_LEVEL env
    Logging level for console output (error, warn, info, debug, trace)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ooples 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1396 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1396 个服务器的 1% 更新
  • 基础检查结果等于或优于此分类中其他 1396 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Console Automation 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.2)于13个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Console Automation MCP Server

Model Context Protocol (MCP) server for controlled interaction with local console applications and remote SSH sessions, including output monitoring, error detection, and long-running workflows.

Security status

This server can execute arbitrary commands and open remote SSH sessions. Treat it like a privileged terminal, not a low-risk documentation connector:

  • keep MCP tool approvals enabled for command/session mutations;
  • prefer SSH keys or environment-variable credential references over inline secrets;
  • use a restricted deployment account and a separate production approval step;
  • leave MCP_DEBUG_LOG and MCP_LOG_DIR unset unless diagnostics are explicitly required;
  • leave session persistence disabled unless recovery metadata is explicitly required;
  • install cloud, container, and serial integrations only when needed.

Features

🚀 Core Capabilities
  • Full Terminal Control: Create and manage up to 50 concurrent console sessions
  • Multi-Protocol Support: Local shells (cmd, PowerShell, pwsh, bash, zsh, sh) and remote SSH connections
  • Interactive Input: Send text input and special key sequences (Enter, Tab, Ctrl+C, etc.)
  • Real-time Output Monitoring: Capture, filter, and analyze console output with advanced search
  • Streaming Support: Efficient streaming for long-running processes with pattern matching
  • Automatic Error Detection: Built-in patterns to detect errors, exceptions, and stack traces across languages
  • Cross-platform: Works on Windows, macOS, and Linux without native dependencies
🔐 SSH & Remote Connections
  • Full SSH Support: Password and key-based authentication with passphrase support
  • SSH Options: Custom ports, connection timeouts, keep-alive settings
  • Connection Profiles: Save reusable SSH metadata and environment-variable credential references
  • Cloud Platform Support: Azure, AWS, GCP, Kubernetes connections via saved profiles
  • Container Support: Docker and WSL integration for containerized workflows
✅ Test Automation Framework
  • Automated Test Cases: Built-in assertion tools for console output validation
  • Output Assertions: Verify output contains, matches regex, or equals expected values
  • Exit Code Validation: Assert command exit codes for success/failure detection
  • Error-Free Validation: Automatically check for errors in command output
  • State Snapshots: Save and compare session states before/after operations
  • Test Workflows: Chain assertions for comprehensive testing scenarios
🔄 Background Job Execution
  • Async Command Execution: Run long-running commands in background with full output capture
  • Priority Queue System: Prioritize jobs (1-10 scale) for optimal resource utilization
  • Job Monitoring: Track status, progress, and completion of background jobs
  • Job Control: Cancel, pause, or resume background operations
  • Result Retrieval: Get complete output and exit codes from completed jobs
  • Resource Management: Automatic cleanup of completed jobs with configurable retention
📊 Enterprise Monitoring & Alerts
  • System-Wide Metrics: CPU, memory, disk, and network usage tracking
  • Session Metrics: Per-session performance monitoring and resource consumption
  • Real-time Dashboards: Live monitoring data with customizable views
  • Alert System: Performance, error, security, and anomaly alerts with severity levels
  • Custom Monitoring: Configure monitoring intervals, metrics, and thresholds per session
  • Diagnostics: Built-in error analysis and session health validation
📁 Profile Management
  • Connection Profiles: Save SSH, Docker, WSL, and cloud platform connections
  • Application Profiles: Store common command configurations (Node.js, Python, .NET, Java, Go, Rust)
  • Quick Connect: Instantly connect using saved profiles with override support
  • Environment Variables: Store environment configurations per profile
  • Working Directory Management: Set default directories for each profile
🔍 Advanced Output Processing
  • Regex Filtering: Search output with regular expressions (case-sensitive/insensitive)
  • Multi-Pattern Search: Combine multiple patterns with AND/OR logic
  • Pagination: Get specific line ranges, head, or tail of output
  • Time-based Filtering: Filter output by timestamp (absolute or relative: '5m', '1h', '2d')
  • Output Streaming: Real-time output capture for long-running processes
  • Buffer Management: Clear output buffers to reduce memory usage

Quick Installation

Windows
git clone https://github.com/ooples/mcp-console-automation.git

cd mcp-console-automation .\install.ps1 -Target codex

macOS/Linux
git clone https://github.com/ooples/mcp-console-automation.git

cd mcp-console-automation chmod +x install.sh ./install.sh --target codex

Manual Installation
git clone https://github.com/ooples/mcp-console-automation.git

cd mcp-console-automation npm ci npm run build codex mcp add console-automation --env LOG_LEVEL=warn -- node "$PWD/dist/mcp/server.js"

Configuration

Codex stores MCP configuration in ~/.codex/config.toml. The installers use codex mcp add and safely replace an existing console-automation registration. Restart Codex after installation and use /mcp to verify the connection.

For another MCP client, generate a new JSON configuration without overwriting an existing file:

.\install.ps1 -Target custom -CustomPath C:\path\to\new-mcp-config.json

The npm package has not been published, so npx console-automation-mcp and @mcp/console-automation are not valid installation paths.

Saved SSH credentials

console_save_profile rejects inline passwords, private-key material, and passphrases. Use passwordEnvVar, privateKeyEnvVar or privateKeyPath, and passphraseEnvVar. Profile-list responses never return credential values, and configuration files are created with owner-only permissions where the operating system supports POSIX modes.

Session persistence

Session persistence is disabled by default because session recovery data can include commands, paths, and environment values. To opt in, set MCP_SESSION_PERSISTENCE=true. The default file is ~/.console-automation-mcp/sessions.json; override it with MCP_SESSION_PERSISTENCE_PATH. Persisted command/environment recovery data remains disabled unless enabled through the programmatic SessionManager configuration.

The production installers remove development and optional protocol packages. Local consoles and SSH remain available. Install only the peer packages required for Docker, cloud, Kubernetes, serial, or other optional adapters.

Available Tools (40 Total)

This MCP server provides 40 comprehensive tools organized into 6 categories:

📚 Complete Documentation
  • [Complete Tools Reference](docs/TOOLS.md) - Detailed documentation for all 40 tools
  • [Practical Examples](docs/EXAMPLES.md) - Real-world usage examples and patterns
  • [Publishing Guide](PUBLISHING.md) - How to list this server in registries
Tool Categories
🖥️ Session Management (9 tools)
  • console_create_session - Create local or SSH console sessions
  • console_send_input - Send text input to sessions
  • console_send_key - Send special keys (Enter, Ctrl+C, etc.)
  • console_get_output - Get filtered/paginated output with advanced search
  • console_get_stream - Stream output from long-running processes
  • console_wait_for_output - Wait for specific patterns
  • console_stop_session - Stop sessions
  • console_list_sessions - List all active sessions
  • console_cleanup_sessions - Clean up inactive sessions
⚡ Command Execution (6 tools)
  • console_execute_command - Execute commands with output capture
  • console_detect_errors - Analyze output for errors
  • console_get_resource_usage - Get system resource stats
  • console_clear_output - Clear output buffers
  • console_get_session_state - Get session execution state
  • console_get_command_history - View command history
📊 Monitoring & Alerts (6 tools)
  • console_get_system_metrics - Comprehensive system metrics
  • console_get_session_metrics - Session-specific metrics
  • console_get_alerts - Active monitoring alerts
  • console_get_monitoring_dashboard - Real-time dashboard data
  • console_start_monitoring - Start custom monitoring
  • console_stop_monitoring - Stop monitoring
📁 Profile Management (4 tools)
  • console_save_profile - Save SSH/app connection profiles
  • console_list_profiles - List saved profiles
  • console_remove_profile - Remove profiles
  • console_use_profile - Quick connect with saved profiles
🔄 Background Jobs (9 tools)
  • console_execute_async - Execute commands asynchronously
  • console_get_job_status - Check job status
  • console_get_job_output - Get job output
  • console_cancel_job - Cancel running jobs
  • console_list_jobs - List all background jobs
  • console_get_job_progress - Monitor job progress
  • console_get_job_result - Get complete job results
  • console_get_job_metrics - Job execution statistics
  • console_cleanup_jobs - Clean up completed jobs
✅ Test Automation (6 tools)
  • console_assert_output - Assert output matches criteria
  • console_assert_exit_code - Assert exit codes
  • console_assert_no_errors - Verify no errors occurred
  • console_save_snapshot - Save session state snapshots
  • console_compare_snapshots - Compare state differences
  • console_assert_state - Assert session state
Quick Start Examples
Create a Local Session
const session = await console_create_session({

command: "npm", args: ["run", "dev"], detectErrors: true });

Connect via SSH
const session = await console_create_session({

command: "bash", consoleType: "ssh", sshOptions: { host: "example.com", username: "user", privateKeyPath: "~/.ssh/id_rsa" } });

Run Tests with Assertions
const session = await console_create_session({

command: "npm", args: ["test"] });

await console_assert_output({ sessionId: session.sessionId, assertionType: "contains", expected: "All tests passed" });

Background Job Execution
const job = await console_execute_async({

sessionId: session.sessionId, command: "npm run build", priority: 8 });

const status = await console_get_job_status({ jobId: job.jobId });

For more examples, see docs/EXAMPLES.md

Use Cases

1. Running and monitoring a development server
// Create a session for the dev server

const session = await console_create_session({ command: "npm", args: ["run", "dev"], detectErrors: true });

// Wait for server to start await console_wait_for_output({ sessionId: session.sessionId, pattern: "Server running on", timeout: 10000 });

// Monitor for errors const errors = await console_detect_errors({ sessionId: session.sessionId });

2. Interactive debugging session
// Start a Python debugging session

const session = await console_create_session({ command: "python", args: ["-m", "pdb", "script.py"] });

// Set a breakpoint await console_send_input({ sessionId: session.sessionId, input: "b main\n" });

// Continue execution await console_send_input({ sessionId: session.sessionId, input: "c\n" });

// Step through code await console_send_key({ sessionId: session.sessionId, key: "n" });

3. Automated testing with error detection
// Run tests

const result = await console_e

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx