
Vscode Terminal Mcp
io.github.sirlordt由 GitHub 帳號 sirlordt 發布v0.1.0更新於 Oct 24, 2026
Execute commands in visible VSCode terminal tabs with output capture and session reuse.
發布方自己的服務:Terminal Tax
概覽
一個 MCP 伺服器,在可見的 VS Code 終端機分頁中執行指令,擷取輸出並重複使用工作階段,讓助理執行與監控 shell 指令。
- 可以做什麼
- 在新建或重複使用的可見終端機中執行指令,回傳含結束碼與耗時的乾淨輸出;也可不等待地啟動長時間指令,再用尾端模式增量輪詢輸出。建立、列出、依 agent 標籤篩選並關閉終端機工作階段,包括為平行子代理隔離的終端機。向互動式終端機送出文字,以回應提示、REPL 或確認。分頁讀取緩衝輸出;超出限制的輸出會存成暫存 JSON 檔並回傳其路徑。
- 適用情境
- 適合讓助理執行建置、測試、安裝或部署,並讓使用者在 VS Code 中即時觀看進度;也適合驅動互動式命令列提示,並在多個步驟間維持持久的 shell 工作階段。
- 執行需求
- 透過 npx 從 npm 套件 vscode-terminal-mcp 啟動的本機程序;需要 Node.js 20+ 與 VS Code 1.93+,並安裝搭配的擴充功能,因為指令是經本機 IPC socket 透過 VS Code Shell Integration API 執行。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Vscode Terminal Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
vscode-terminal-mcp
MCP server that executes commands in visible VSCode terminal tabs with full output capture. Unlike inline execution, every command runs in a real terminal you can see, scroll, and interact with.
Key Features
- Visible Terminals: Commands run in real VSCode terminal tabs, not hidden processes. You see everything in real time.
- Session Reuse: The
runtool automatically reuses idle sessions, creating new terminals only when needed. - Long-Running Support: Fire-and-forget execution with
waitForCompletion: false, then poll output incrementally withread. - Subagent Isolation: Tag sessions with
agentIdto keep parallel agent workloads separated.
Requirements
- VS Code 1.93+ (for Shell Integration API)
- Node.js 20+
Getting Started
Claude Code
VS Code / Copilot
Add to your .vscode/mcp.json:
Cursor
Add to your .cursor/mcp.json:
Claude Desktop
Add to your claude_desktop_config.json:
Your First Prompt
After installation, try asking:
Run
ls -lain the terminal
You should see a new terminal tab open in VSCode with the command output.
Screenshots
Running a command with run
Permission dialog for exec
Exec result with clean output
Tools
Quick Execution
Session Management
Usage Patterns
Simple Command
The run tool handles everything — creates a terminal if needed, executes, and returns clean output:
Long-Running Process
For builds, deployments, or any command that takes a while:
The agent will:
- Call
runwithwaitForCompletion: false— returns immediately - Call
readwithoffset: -10to check the last 10 lines - Repeat until the process completes
Interactive Commands
For commands that need user input:
The agent will:
- Call
runwithnpm init - Call
readto see the prompt - Call
inputto send the answer
Parallel Agents
Subagents can work in isolated terminals using agentId:
Each subagent gets its own terminal tagged with its agentId, preventing output from mixing.
Configuration
The extension reads configuration from VSCode settings under terminalMcp.*:
Recommended: Set as Preferred Tool
LLM agents like Claude Code have a built-in Bash tool that executes commands inline within the chat. The output is embedded in the conversation and hard to read, especially for commands with verbose output. We recommend telling the agent to prefer this MCP over its built-in Bash tool.
Add the following to your project's CLAUDE.md (or equivalent instructions file):
Why this matters:
Development: Updating the Extension
VSCode aggressively caches extensions in memory. When developing locally, code --install-extension and even "Developer: Reload Window" may not reload your changes. Use this workflow:
Quick update (no restart needed)
After modifying source files, build and copy directly into the installed extension directory:
Then run "Developer: Reload Window" (Ctrl+Shift+P).
Full reinstall (when quick update doesn't work)
If VSCode still uses old code:
Verify the correct version is loaded
Large Output Handling
When read returns output that exceeds the MCP client's token limit, the system automatically saves the full output to a temporary JSON file and returns the file path in the error message.
To extract the relevant content:
The file format is JSON: [{"type": "text", "text": "..."}]
This commonly happens with commands that produce heavy TUI output (progress bars, ANSI escape codes). Use smaller offset values (e.g., offset: -20 instead of offset: -100) to reduce the captured output size.
How It Works
- The VSCode extension activates and starts an IPC server on a Unix socket
- The MCP entry point (
mcp-entry.js) is spawned by the MCP client and bridges JSON-RPC stdio with the IPC socket - Commands execute in real VSCode terminals using the Shell Integration API for reliable output capture and exit code detection
- Output is stored in circular buffers with pagination support for efficient reading
Latest Changes (0.1.6)
- Screenshots in README for marketplace
- Clean output format for all tools — no more raw JSON
- Fixed
waitForCompletion: falsenot working - Disabled idle reaper — user closes sessions manually
- Unique IPC socket per workspace (multi-instance support)
- Custom terminal tab names with date format
- Large output handling documentation
See CHANGELOG.md for full history.
License
MIT
來源:README.md,提交 60df01d
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Terminal 整合

Terminal Tax
tax.terminal官方發布者
託管式報稅伺服器:讓助理送出美國聯邦 2025 年個人報稅表的事實,由服務計算與檢核,再回傳私人簽署連結。
Terminal
mn.dta官方發布者
面向蒙古宏觀與市場資料檔案的遠端 MCP 伺服器,讓助理搜尋序列、取得面板並驗證帶簽章的觀測資料。
SCRIPTMASTERLABS — Quant Terminal
com.scriptmasterlabs
遠端 MCP 端點,提供以真實資料為基礎的股票代號價位與「squeeze-mirror」預測,用於量化交易分析。

Terminal 7
由 GitHub 帳號 LinkMarine777 發布
Solana 上 stonkfun 幣的訊號、評分和支付資料,供機器人和 AI 代理使用。AI 翻譯
terminal-use
由 GitHub 帳號 computer-agent-labs 發布
讓 AI 助理操作本機真實終端機工作階段:輸入文字、按鍵、點擊、讀取畫面並截圖,包含全螢幕 TUI 程式。