1. Conduid
  2. Developer Tools
  3. Persistent Terminal MCP
MCP server · Developer Tools

Persistent Terminal MCP

Unclaimed MIT last commit 9 months ago devtools
61Good

Scored 21 hours ago · breakdown

About Persistent Terminal MCP

Persistent Terminal MCP is an MCP server published by sanshao85 in the Developer Tools category. Conduid read 10 tools from its source: create_terminal, create_terminal_basic, fix_bug_with_codex, get_terminal_stats, kill_terminal, list_terminals and 4 more. It is published to npm as persistent-terminal-mcp and starts with npx.

The repository has 130 stars and 33 forks, is licensed MIT, and its last commit was on 11 Feb 2026. The latest release is v1.0.4 (10 Feb 2026): codex --yolo startup error in PTY sessions by auto-replying common terminal queries (e.g. It is the only release Conduid has on record for this repository. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include devtools.

Install

Claude Code
claude mcp add persistent-terminal-mcp-91fa -- npx -y persistent-terminal-mcp
npx
npx -y persistent-terminal-mcp
From source
git clone https://github.com/sanshao85/persistent-terminal-mcp

Tools (10)

create_terminalCreate a new persistent terminal session
ParameterTypeDescription
cwdstringWorking directory (default: current directory)
envobjectEnvironment variables
shellstringShell to use (default: system default)
create_terminal_basicCreate a new persistent terminal session (shell and cwd only). Useful for clients that cannot send env objects.
ParameterTypeDescription
cwdstringWorking directory (default: current directory)
shellstringShell to use (default: system default)
fix_bug_with_codexUse OpenAI Codex CLI to automatically fix bugs with FULL SYSTEM ACCESS. WARNING CRITICAL: This tool gives Codex COMPLETE control over the codebase! - Sandbox: danger-full-access (no restrictions) - Approval: never (fully automated) YOUR RESPONSIBILITY (AI Assistant): You MUST provide a DETAILED and COMPREHENSIVE bug description to Codex. The quality of the fix depends entirely on how well you describe the problem! IMPORTANT NOTES: 1. ONLY use ENGLISH in the description (no Chinese, no emoji) 2. UTF-8 encoding issues may occur with non-ASCII characters 3. Keep the description clear, structured, and detailed 4. Use plain text formatting (avoid special characters) GOOD DESCRIPTION EXAMPLE (DO THIS): "Username validation bug in auth.js file. PROBLEM: - File: src/auth/login.ts, line 45 - Code: const usernameRegex = /^[a-zA-Z0-9]{3,20}$/ - Symptom: Username 'user_name' is rejected with 'Invalid username' error - Expected: Should accept usernames with underscores and hyphens ROOT CAUSE: - Regex [a-zA-Z0-9] only allows letters and numbers - Missing support for underscore and hyphen characters SUGGESTED FIX: - Change regex to: /^[a-zA-Z0-9_-]{3,20}$/ - This will allow underscores and hyphens in usernames IMPACT: - Affects login() and register() functions - May impact existing user validation logic RELATED FILES: - src/auth/login.ts (main fix) - src/auth/validation.ts (may need update) - tests/auth/login.test.ts (for verification) TEST CASES: - 'user_name' should pass - 'user-name' should pass - 'user@name' should fail VERIFICATION: - Run: npm test - Expected: all tests pass" BAD DESCRIPTION EXAMPLE (DON'T DO THIS): "Login has a bug, please fix it" "Username validation is wrong" "Fix the regex in auth.js" WHAT TO INCLUDE IN YOUR DESCRIPTION: 1. Problem symptoms - specific error behavior 2. Expected behavior - how it should work 3. Problem location - file path, line number, function name 4. Related code - the problematic code snippet 5. Root cause - why this problem occurs (if known) 6. Fix suggestions - how to fix it (if you have ideas) 7. Impact scope - what else might be affected 8. Related files - all relevant file paths 9. Test cases - how to verify the fix works 10. Context information - background that helps understand the problem HOW THIS TOOL WORKS: 1. Your bug description will be saved to: docs/codex-bug-description-TIMESTAMP.md 2. Codex will read this document and analyze the problem 3. Codex will fix the bug in the codebase 4. Codex will generate a fix report in: docs/codex-fix-TIMESTAMP.md 5. Both documents will be preserved in docs/ for reference WORKFLOW AFTER CALLING THIS TOOL: 1. Wait for Codex to complete (up to 10 minutes) 2. YOU MUST read the fix report: docs/codex-fix-TIMESTAMP.md 3. YOU MUST summarize the changes to the user 4. YOU MUST provide testing recommendations 5. Optionally, review the bug description document to see what was sent to Codex WHAT CODEX WILL DO: 1. Read your bug description from docs/codex-bug-description-TIMESTAMP.md 2. Analyze the problem based on your description 3. Fix the bug in the codebase 4. Generate a comprehensive fix report in docs/codex-fix-TIMESTAMP.md 5. The report includes: problem, changes, files modified, testing guide TIMEOUT: Default: 10 minutes (600000ms) Adjust if the fix is complex or involves many files TIP: Before calling this tool, gather as much information as possible: - Read error messages - Check relevant files - Understand the expected behavior - Review recent changes that might have caused the bug
ParameterTypeDescription
cwdstringWorking directory (default: current directory)
description *stringDETAILED bug description for Codex. MUST INCLUDE: - Problem symptoms (what's broken) - Expected behavior (what should happen) - Problem location (file paths, line numbers) - Related code snippets - Root cause (if known) - Fix suggestions (if any) - Impact scope (what else might be affected) - Related files (all relevant file paths) - Test cases (how to verify the fix) - Context (background information) The more detailed, the better the fix!
timeoutnumberTimeout in milliseconds (default: 600000 = 10 minutes)
get_terminal_statsGet detailed statistics about a terminal session including size, tokens, etc.
ParameterTypeDescription
terminalId *stringTerminal session ID
kill_terminalTerminate a terminal session
ParameterTypeDescription
signalstringSignal to send (default: SIGTERM)
terminalId *stringTerminal session ID
list_terminalsList all active terminal sessions
open_terminal_uiOpen a web-based terminal management UI in the browser. This provides a visual interface to manage all terminal sessions.
ParameterTypeDescription
autoOpenbooleanAutomatically open browser (default: true)
portnumberPort for the web server (default: auto-detect from 3002)
read_terminalRead output from a terminal session. For Codex/TUI conversation, use mode="tail" + raw=true + cleanAnsi=true. If tail seems incomplete, retry with mode="head-tail" in raw mode.
ParameterTypeDescription
cleanAnsibooleanWhen raw=true, sanitize ANSI/control sequences into readable text. Default: true
headLinesnumberNumber of lines to show from the beginning when using head or head-tail mode (default: 50)
maxCharsnumberMaximum characters returned in this tool response (default: 12000, hard cap for context safety)
maxLinesnumberMaximum number of lines to read (default: 1000)
modestringReading mode: full, head, tail, head-tail. For recent chat turns, prefer tail. For screen-refresh TUI recovery, use head-tail.
rawbooleanRead raw PTY stream. Strongly recommended for Codex/vim-like TUIs to avoid missing lines caused by cursor redraw.
sincenumberLine number to start reading from (default: 0)
stripSpinnerbooleanWhether to strip spinner/animation frames (uses global setting if not specified)
tailLinesnumberNumber of lines from the end in tail/head-tail mode. For chat checks, 10-30 is a good starting range.
terminalId *stringTerminal session ID
wait_for_outputWait for terminal output to stabilize. Useful after running commands to ensure all output is captured.
ParameterTypeDescription
stableTimenumberTime with no new output to consider stable in milliseconds (default: 500)
terminalId *stringTerminal session ID
timeoutnumberMaximum time to wait in milliseconds (default: 5000)
write_terminalWrite input to a terminal session. For Codex/LLM chat: send message text first, then force Enter with sendEnter=true when the app appears to wait for submission.
ParameterTypeDescription
appendNewlinebooleanWhether to append newline automatically. Default true for normal text. Keep false only for raw key/control sequences.
input *stringInput to send to the terminal. For chat text, send the full sentence/paragraph here.
sendEnterbooleanForce one Enter key (CR). Recommended for Enter-only actions (input="") or when Codex/TUI appears to be waiting for submit.
terminalId *stringTerminal session ID

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.1K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and typescript-sdk-main/package-lock.json.
  • !No dynamic code executionScanned 52 source files and found 1 call to eval or shell execution, in src/web-ui-manager.ts:125. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdio, Streamable HTTP and HTTP with SSEsrc/index.ts:3, typescript-sdk-main/src/server/streamableHttp.ts:147, typescript-sdk-main/src/cli.ts:12
Starts other programs
2 callssrc/web-ui-manager.ts:125, typescript-sdk-main/src/client/stdio.ts:121
Outbound network calls
10 callstypescript-sdk-main/src/client/websocket.ts:29, public/app.js:33, public/app.js:68
Writes or deletes files
2 callssrc/mcp-server.ts:213, src/mcp-server.ts:216
Lockfile
package-lock.json and typescript-sdk-main/package-lock.json

Pattern matches on the source text of 52 files: places to read, not proof of what the code does at run time.

Releases

v1.0.4v1.0.4 · 10 Feb 2026Highlights Fix `codex --yolo` startup error in PTY sessions by auto-replying common terminal queries (e.g. `ESC[6n`). Fix Web UI history replay truncation/loss for Codex and other full-screen TUI apps. Add `raw` mode support to output…

README

The repository's README runs to about 2.1K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Persistent Terminal MCP

How do I install Persistent Terminal MCP?

In Claude Code, run claude mcp add persistent-terminal-mcp-91fa -- npx -y persistent-terminal-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Persistent Terminal MCP safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 52 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (2 calls), makes outbound network calls (10 calls) and writes or deletes files (2 calls). Its dependencies are pinned by package-lock.json and typescript-sdk-main/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Persistent Terminal MCP still maintained?

The last commit was 9 months ago and 7 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Persistent Terminal MCP provide?

Conduid read 10 tools from the source: create_terminal, create_terminal_basic, fix_bug_with_codex, get_terminal_stats, kill_terminal, list_terminals, open_terminal_ui, read_terminal and 2 more. 9 of them publish their parameters, listed under Tools above.

What license is Persistent Terminal MCP released under?

The repository declares the MIT license. That applies to the latest release, v1.0.4, as well.