You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,40 @@
1
-

2
-
3
1
# iterm-mcp
4
2
A Model Context Protocol server that provides access to your iTerm session.
5
3
4
+

5
+
6
6
### Features
7
7
8
-
-**Efficient Token Use**: Only the visible content of the terminal is passed to the model. The model can retrieve content that's not visible if necessary.
9
-
-**Supports Long-Running Processes**: iterm-mcp knows when the terminal is waiting for user input. Long-running processes are handled gracefully.
10
-
-**Interrupt When Needed**: Send control characters to the terminal to interrupt processes.
11
-
-**Inspect Terminal Activity**: Gives the model visibility into the current terminal content.
8
+
**Efficient Token Use:** iterm-mcp gives the model the ability to inspect only the output that the model is interested in. The model typically only wants to see the last few lines of output even for long running commands.
9
+
10
+
**Natural Integration:** You share iTerm with the model. You can ask questions about what's on the screen, or delegate a task to the model and watch as it performs each step.
11
+
12
+
**Full Terminal Control and REPL support:** The model can start and interact with REPL's as well as send control characters like ctrl-c, ctrl-z, etc.
13
+
14
+
**Easy on the Dependencies:** iterm-mcp is built with minimal dependencies and is runnable via npx. It's designed to be easy to add to Claude Desktop and other MCP clients. It should just work.
15
+
12
16
13
17
<ahref="https://glama.ai/mcp/servers/h89lr05ty6"><imgwidth="380"height="200"src="https://glama.ai/mcp/servers/h89lr05ty6/badge"alt="iTerm Server MCP server" /></a>
14
18
19
+
## Safety Considerations
20
+
21
+
* The user is responsible for using the tool safely.
22
+
* No built-in restrictions: iterm-mcp makes no attempt to evaluate the safety of commands that are executed.
23
+
* Models can behave in unexpected ways. The user is expected to monitor activity and abort when appropriate.
24
+
* For multi-step tasks, you may need to interrupt the model if it goes off track. Start with smaller, focused tasks until you're familiar with how the model behaves.
25
+
15
26
### Tools
16
-
-`write_to_terminal` - Writes to the active iTerm terminal, often used to run a command.
17
-
-`read_terminal_output` - Reads the output from the active iTerm terminal.
27
+
-`write_to_terminal` - Writes to the active iTerm terminal, often used to run a command. Returns the number of lines of output produced by the command.
28
+
-`read_terminal_output` - Reads the requested number of lines from the active iTerm terminal.
18
29
-`send_control_character` - Sends a control character to the active iTerm terminal.
19
30
20
-
## Installation
21
-
22
31
### Requirements
23
32
24
-
- Node.js 18 or higher
33
+
* iTerm2 must be running
34
+
* Node version 18 or greater
35
+
36
+
37
+
## Installation
25
38
26
39
To use with Claude Desktop, add the server config:
27
40
@@ -74,7 +87,7 @@ Since MCP servers communicate over stdio, debugging can be challenging. We recom
74
87
75
88
```bash
76
89
yarn run inspector
77
-
yarn debug
90
+
yarn debug <command>
78
91
```
79
92
80
93
The Inspector will provide a URL to access debugging tools in your browser.
0 commit comments