agymcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agymcp用一句话介绍Antigravity"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agymcp
将 Antigravity CLI (agy) 包装为 MCP Server,供 Claude Code 等支持 MCP 协议的客户端调用。
前置条件
Antigravity CLI 已安装并完成登录(
agy命令在 PATH 中可用)uv 已安装(用于 uvx 拉取运行)
Related MCP server: antigravity-cli-mcp
安装
在 ~/.claude.json 的 mcpServers 中添加:
{
"mcpServers": {
"agy": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/leologoli/agymcp.git",
"agymcp"
],
"env": {},
"type": "stdio"
}
}
}重启 Claude Code 后生效,首次启动会自动拉取安装依赖。
工具说明
agy
调用 Antigravity CLI 执行 AI 任务,返回模型回复文本和会话 ID。
参数:
参数 | 类型 | 必填 | 说明 |
| string | ✅ | 发送给 Antigravity 的任务指令 |
| path | ✅ | 执行任务时的工作目录(workspace root) |
| string | ❌ | 续话会话 ID,为空时开启新会话 |
| bool | ❌ | 是否启用沙箱模式,默认 false |
| string | ❌ | 指定模型,留空使用默认模型 |
返回:
字段 | 说明 |
| 是否成功 |
| 会话 UUID,传入下次调用可续话 |
| 模型回复文本 |
| 失败时的错误描述 |
示例:
// 新建会话
{
"PROMPT": "用一句话介绍你自己",
"cd": "/path/to/project"
}
// 续话
{
"PROMPT": "我上一条问你什么了?",
"cd": "/path/to/project",
"SESSION_ID": "56540478-7163-4d90-a476-f2487c81aa6a"
}实现原理
以
--print模式运行agy,通过--log-file将日志写入临时文件从日志中正则提取
conversation UUID作为SESSION_ID续话时通过
--conversation <SESSION_ID>参数恢复上下文基于 FastMCP 实现 stdio 传输
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables calling Google's Antigravity CLI (agy) headlessly through MCP, providing tools like agy_ask and agy_research for agents like Claude Code.214MIT
- Alicense-qualityBmaintenanceMCP server wrapping the agy CLI, enabling querying, web search, and file writing through tools like ask-agy, search-web, and write-file.151MIT
- AlicenseAqualityCmaintenanceA Claude Code MCP server and skill that enables delegation of prompts to agy (Antigravity/Gemini) CLI for model queries, conversation management, authentication, and image generation.41MIT
- Flicense-qualityCmaintenanceAn MCP server that lets Claude Code call the Google Antigravity CLI (agy) headlessly for a second opinion from a different model family, or to have agy read project files on Claude's behalf so large files never enter Claude's context window.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/leologoli/agymcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server