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スキーマを使用してすべての入力を検証します
  • コマンドは分離されたターミナルセッションで実行される
  • 適切なエラー処理と入力サニタイズが実装されている

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

ISC

著者

リシャブ・クール

-
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