GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Execute commands in visible VSCode terminal tabs with output capture and session reuse.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"vscode-terminal": {
"command": "npx",
"args": [
"-y",
"vscode-terminal-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add vscode-terminal -- npx -y vscode-terminal-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"vscode-terminal": {
"command": "npx",
"args": [
"-y",
"vscode-terminal-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"vscode-terminal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"vscode-terminal-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 9 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub sirlordt ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.0) เข้า registry 8 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
run tool automatically reuses idle sessions, creating new terminals only when needed.waitForCompletion: false, then poll output incrementally with read.agentId to keep parallel agent workloads separated.claude mcp add BashTerm -- npx vscode-terminal-mcp@latest
Add to your .vscode/mcp.json:
{
"servers": { "BashTerm": { "type": "stdio", "command": "npx", "args": ["vscode-terminal-mcp@latest"] } } }
Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": { "BashTerm": { "command": "npx", "args": ["-y", "vscode-terminal-mcp@latest"] } } }
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": { "BashTerm": { "command": "npx", "args": ["-y", "vscode-terminal-mcp@latest"] } } }
After installation, try asking:
Run
ls -lain the terminal
You should see a new terminal tab open in VSCode with the command output.
runexec| Tool | Description |
|---|---|
run | Create (or reuse) a terminal and execute a command in one step. Returns clean output with exit code. |
| Tool | Description |
|---|---|
create | Create a new visible terminal session. Returns a sessionId. |
exec | Execute a command in an existing session and capture output. |
read | Read output from a session with pagination. Supports incremental reads and tail mode (offset: -N). |
input | Send text to an interactive terminal (prompts, REPLs, confirmations). |
list | List active sessions. Optionally filter by agentId. |
close | Close a terminal session and its VSCode tab. |
The run tool handles everything — creates a terminal if needed, executes, and returns clean output:
> Run npm test
$ npm test
PASS src/utils.test.ts (3 tests) PASS src/index.test.ts (5 tests)
[exit: 0 | 1243ms | session-abc123]
For builds, deployments, or any command that takes a while:
> Start `npm run build` without waiting, then check progress
The agent will:
run with waitForCompletion: false — returns immediatelyread with offset: -10 to check the last 10 linesFor commands that need user input:
> Run npm init and answer the prompts
The agent will:
run with npm initread to see the promptinput to send the answerSubagents can work in isolated terminals using agentId:
> Have one agent run tests while another runs the linter
Each subagent gets its own terminal tagged with its agentId, preventing output from mixing.
The extension reads configuration from VSCode settings under terminalMcp.*:
| Setting | Type | Default | Description |
|---|---|---|---|
terminalMcp.maxSessions | number | 10 | Maximum concurrent terminal sessions |
terminalMcp.commandTimeout | number | 30000 | Default command timeout in ms |
terminalMcp.maxOutputLines | number | 5000 | Max lines kept in output buffer per session |
terminalMcp.idleTimeout | number | 1800000 | Close idle sessions after this many ms (0 = disabled) |
terminalMcp.blockedCommands | string[] | ["rm -rf /"] | Commands that will be rejected |
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):
## Terminal Execution
Prefer the BashTerm MCP tools (run, exec, read, etc.) over the built-in Bash tool for executing commands. BashTerm runs commands in visible VSCode terminal tabs where the user can see output in real time. Only fall back to the built-in Bash tool for simple, non-interactive operations like reading environment variables.
For commands that may take longer than 30 seconds or produce large amounts of output (builds, test suites, deployments, installs), use the pull mode pattern:
run with waitForCompletion: false to launch the command without blocking.read with offset: -10 to check the last 10 lines of output.This prevents conversation timeouts and lets the user watch progress in the terminal in real time.
Why this matters:
| Built-in Bash | BashTerm MCP | |
|---|---|---|
| Output visibility | Embedded in chat, hard to scroll | Visible in VSCode terminal tab |
| Real-time feedback | User sees nothing until command finishes | User watches output live |
| Long-running commands | Blocks the conversation until timeout | Fire-and-forget + polling |
| Session state | Each command is isolated | Persistent sessions with history |
| Interactive commands | Not supported | Send input to prompts/REPLs |
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:
After modifying source files, build and copy directly into the installed extension directory:
cd /path/to/vscode-terminal-mcp
npm run build cp dist/extension.js ~/.vscode/extensions/sirlordt.vscode-terminal-mcp- /dist/extension.js
Then run "Developer: Reload Window" (Ctrl+Shift+P).
If VSCode still uses old code:
# 1. Uninstall and remove all copies
code --uninstall-extension sirlordt.vscode-terminal-mcp rm -rf ~/.vscode/extensions/sirlordt.vscode-terminal-mcp-*
npm run build npx vsce package --allow-missing-repository code --install-extension vscode-terminal-mcp- .vsix --force
# Check which extension directories exist
ls ~/.vscode/extensions/ | grep terminal
grep "YOUR_UNIQUE_STRING" ~/.vscode/extensions/sirlordt.vscode-terminal-mcp-*/dist/extension.js
md5sum dist/extension.js ~/.vscode/extensions/sirlordt.vscode-terminal-mcp-*/dist/extension.js
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:
# Get the last 50 lines (most relevant for status)
tail -50 /path/to/saved/file.txt
python3 -c "import json; data=json.load(open('/path/to/file.txt')); print(data0[-2000:])"
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.
mcp-entry.js) is spawned by the MCP client and bridges JSON-RPC stdio with the IPC socketwaitForCompletion: false not workingSee CHANGELOG.md for full history.
MIT