iTerm MCP Server

ISC License
251
  • Apple

Integrations

  • Allows AI assistants to create and manage iTerm2 terminal sessions, execute commands, read terminal output, list active terminals, and close terminals.

  • Provides terminal integration capabilities specifically for macOS systems through iTerm2 terminal application.

ITerm MCP 服务器

用于 iTerm2 终端集成的模型上下文协议 (MCP) 服务器实现。该服务器允许 AI 助手通过模型上下文协议与 iTerm2 终端进行交互。

特征

  • 创建和管理 iTerm2 终端会话
  • 在终端中执行命令
  • 读取终端输出
  • 列出活动终端
  • 关闭终端

要求

  • Node.js >= 14.x
  • iTerm2
  • macOS(因为 iTerm2 仅适用于 macOS)

配置

标准配置

该服务器使用标准 MCP 配置选项。无需额外配置。

游标配置

要将此服务器与 Cursor 一起使用,请将以下配置添加到您的~/.cursor/mcp.json文件中:

{ "mcpServers": { "terminal": { "command": "npx", "args": ["iterm_mcp_server"] } } }

工具

  • open_terminal :打开一个新的终端实例
  • execute_command :在特定终端中执行命令
  • read_output :从特定终端读取输出
  • close_terminal :关闭特定终端
  • list_terminals :列出所有活动终端及其信息

安全注意事项

  • 服务器使用 Zod 模式验证所有输入
  • 命令在隔离的终端会话中执行
  • 实施适当的错误处理和输入清理

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

国际学习中心

作者

里沙布·库尔

-
security - not tested
A
license - permissive license
-
quality - not tested

模型上下文协议服务器,使 AI 助手能够与 iTerm2 终端交互,允许创建和管理终端会话、执行命令以及读取终端输出。

  1. Features
    1. Requirements
      1. Configuration
        1. Standard Configuration
        2. Cursor Configuration
      2. Tools
        1. Security Considerations
          1. Contributing
            1. License
              1. Author
                ID: hs9yuysxwl