Skip to content

Commit affc03e

Browse files
committed
docs(terminal-pilot): update MCP usage instructions
1 parent f9229b1 commit affc03e

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

packages/terminal-pilot/README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,14 @@ The MCP server holds one in-memory `TerminalPilot` instance and exposes terminal
194194

195195
### Run it
196196

197-
Development:
198-
199197
```sh
200-
npx tsx packages/terminal-pilot/src/mcp-server.ts
198+
npx -y -p terminal-pilot terminal-pilot-mcp
201199
```
202200

203-
Built / installed package:
201+
Development:
204202

205203
```sh
206-
terminal-pilot-mcp
204+
npx tsx packages/terminal-pilot/src/mcp-server.ts
207205
```
208206

209207
Programmatic:
@@ -216,22 +214,14 @@ await main();
216214

217215
### Connect to an MCP client
218216

219-
Install the package globally from a local build:
220-
221-
```sh
222-
cd packages/terminal-pilot
223-
npm pack --pack-destination /tmp && npm install -g /tmp/poe-code-terminal-pilot-*.tgz && rm /tmp/poe-code-terminal-pilot-*.tgz
224-
```
225-
226-
This makes the `terminal-pilot-mcp` bin available globally.
227-
228217
**Claude Code** (`~/.claude.json` or project `.mcp.json`):
229218

230219
```json
231220
{
232221
"mcpServers": {
233222
"terminal-pilot": {
234-
"command": "terminal-pilot-mcp"
223+
"command": "npx",
224+
"args": ["-y", "-p", "terminal-pilot", "terminal-pilot-mcp"]
235225
}
236226
}
237227
}
@@ -243,7 +233,8 @@ This makes the `terminal-pilot-mcp` bin available globally.
243233
{
244234
"mcpServers": {
245235
"terminal-pilot": {
246-
"command": "terminal-pilot-mcp"
236+
"command": "npx",
237+
"args": ["-y", "-p", "terminal-pilot", "terminal-pilot-mcp"]
247238
}
248239
}
249240
}
@@ -255,7 +246,8 @@ This makes the `terminal-pilot-mcp` bin available globally.
255246
{
256247
"mcpServers": {
257248
"terminal-pilot": {
258-
"command": "terminal-pilot-mcp"
249+
"command": "npx",
250+
"args": ["-y", "-p", "terminal-pilot", "terminal-pilot-mcp"]
259251
}
260252
}
261253
}

0 commit comments

Comments
 (0)