antigravity-terminal-mcp
Windows-focused MCP server for terminal automation with persistent PowerShell sessions, live session logs, and VS Code integrated terminal bridge.
README
Antigravity Terminal MCP
Windows-focused MCP server for terminal automation with persistent sessions and live session logs. Created by AATHI.
Features
- Persistent PowerShell sessions (
session_id, default:default) - Incremental
stdout/stderrpolling - Send follow-up input into running sessions
- Live log file path returned for each session
- Configurable monitor mode via
ANTIGRAVITY_MONITOR_MODE - VS Code integrated terminal metadata returned for each session
- MCP standard methods (
tools/list,tools/call) with legacy aliases
MCP Tools
run_commandcommand_statussend_inputlist_sessionssession_visual_infokill_command
Publish-Ready One-Command Usage (From GitHub)
After pushing this project to your GitHub, users can seamlessly install and attach it to Claude using uvx (or the more robust python -m uv variant for Windows):
# Standard uvx (if in PATH)
claude mcp add antigravity-terminal-mcp uvx --from git+https://github.com/aathishwar-13/antigravity-terminal-mcp.git antigravity-terminal-mcp
# More robust Windows version (if uvx is not in PATH)
claude mcp add antigravity-terminal-mcp python -m uv tool run --from git+https://github.com/aathishwar-13/antigravity-terminal-mcp.git antigravity-terminal-mcp
(Note: If the code is nested in a subdirectory, simply append #subdirectory=folder_name to the git URL).
Local Run
uvx --from . antigravity-terminal-mcp
or
python server.py
Monitor Modes
By default, the server does not open an external monitor window (ANTIGRAVITY_MONITOR_MODE=none).
This keeps monitoring in VS Code when you use the integrated terminal bridge.
If you explicitly want a separate PowerShell window for each session monitor, enable external mode:
$env:ANTIGRAVITY_MONITOR_MODE = "external"
python server.py
To force no external monitor window:
$env:ANTIGRAVITY_MONITOR_MODE = "none"
python server.py
When run_command or session_visual_info is called, the response now includes:
log_pathwatch_commandmonitor_modevscode_terminalmonitor_open(quick-open metadata for clickable/open actions)
monitor_open includes:
command_uri(VS Code command URI forantigravityTerminal.openMonitor)markdown_link(prebuilt markdown clickable link for chat UIs)integrated_terminal_command(copy/paste command to open live monitor in integrated terminal)open_terminal_uri(opens a VS Code integrated terminal)open_terminal_with_cwd_uri(opens integrated terminal in session cwd)run_in_active_terminal_uri(runs monitor command in active integrated terminal)
The vscode_terminal object is designed for a VS Code extension to open the same session monitor inside an integrated terminal.
VS Code Integrated Terminal Bridge
A lightweight extension scaffold lives in vscode-integration/.
What it does
- Opens an integrated PowerShell terminal in the current VS Code window
- Runs the returned
watch_command/vscode_terminal.command - Lets you paste either the full
session_visual_infoJSON or just thelog_path - Shows a status-bar button:
MCP Monitor(bottom-right) to pick and open any existing session monitor - Auto-detects
session_logs/*.logcreate/change activity and shows anOpen Monitorpopup action
How to try it locally
- Open
antigravity_mcp/vscode-integrationin VS Code. - Press
F5to launch the extension host. - Run
Antigravity: Open Monitor From Session Info JSONfrom the Command Palette. - Paste the JSON returned by
session_visual_infoorrun_command.
Where to click
- Bottom-right VS Code status bar: click
MCP Monitorand choose a session - On new session creation: click
Open Monitorin the popup notification
This uses the VS Code extension API, which is the correct way to open an integrated terminal in the current editor window. A plain Python process cannot directly create a terminal tab inside VS Code by itself.
Quick Integrated Monitor Command (No Copy/Paste)
Use the helper script from a VS Code integrated terminal:
Set-Location d:\Projects\Client_projects\Velyx_Chatbot\antigravity_mcp
.\open-monitor.ps1 -SessionId live-agent
Optional short alias for the current terminal session:
Set-Alias agmwatch .\open-monitor.ps1
agmwatch -SessionId live-agent
This keeps monitoring inside VS Code and does not open an external terminal window.
Example MCP Config
{
"mcpServers": {
"antigravity-terminal-mcp": {
"command": "python",
"args": [
"-m",
"uv",
"tool",
"run",
"--from",
"git+https://github.com/aathishwar-13/antigravity-terminal-mcp.git",
"antigravity-terminal-mcp"
]
}
}
}
Or
{
"mcpServers": {
"antigravity-terminal-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/AATHI/antigravity-terminal-mcp.git",
"antigravity-terminal-mcp"
]
}
}
}
👨💻 About the Author
AATHI is a developer focused on building high-performance, developer-centric automation tools for the next generation of AI agents. With a specialization in bridging the gap between headless LLM execution and rich user-facing terminal interactions, AATHI created this tool to provide a portable, professional terminal experience beyond the standard VS Code integration limits.
Feel free to reach out for feedback or technical support via this repository!
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。