
khanhbkqt/antigravity-sub-agent-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버는 Antigravity IDE의 주요 AI 에이전트 스파드 서브 시약을 할 수 있습니다. 전체 수명주기 관리와 위임 작업: 캐스케이드, 자동 수용 도구 작업, 결과 추출.
개요
MCP 서버는 Antigravity IDE의 주요 AI 에이전트 스파드 서브 시약을 할 수 있습니다. 전체 수명주기 관리와 위임 작업: 캐스케이드, 자동 수용 도구 작업, 결과 추출. 전송을 통해 실행 — mcp config.json의 명령으로 구성, 수동 서버 시작 필요 없음. - Node.js 18+ - 적어도 1개의 workspace 열리는 Antigravity IDE 설정할 때, 서버 자동 감지가 올바른 LS 인스턴스(Workspace Detection을 아래 참조). 작업을 제출하고 taskId를 다시 가져옵니다 (~1s). 하위 시약은 배경에서 실행됩니다. start agent와 같은 params. get agent results를 사용하여 workId를 반환합니다. 여러 제출 된 작업을 대기하고 모든 결과를 한 번에 반환합니다. 1. (primary): 부모 프로세스는 LS입니다 - 읽기 --csrf token 및 --workspace id는 명령 줄 2. (fallback)에서: LS 인스턴스를 실행하는 데 대한 작업 공간 퍼머 일치 3. (마지막 리조트): 사용 가능
개요(AI 번역)
MCP 서버는 Antigravity IDE의 주요 AI 에이전트 스파드 서브 시약을 할 수 있습니다. 전체 수명주기 관리와 위임 작업: 캐스케이드, 자동 수용 도구 작업, 결과 추출.
stdio 수송을 통해 실행 — command]]로 구성 [T1]], 수동 서버 시작 필요 없음.
내용 표
- 어떻게 작동
- 프로젝트 구조
- 설치
- MCP 도구
- 모델 Aliases
- 주요 특징
- 디버깅
- 기여
- Acknowledgments의 특징
- 라이센스
그것이 작동하는 방법
프로젝트 구조
설치
# 필수품
- 노드.js 18+
- 적어도 하나의 작업 공간으로 실행되는 Antigravity IDE
설치
# Antigravity 구성
mcp_config.json에 추가:
환경 변수
| 변수 | 기본 | 설명 |
|—|||||
| [T3] | 자동검출 | 언어서포트 |
| [T4] | 자동검출 | CSRF 토큰 |
| [T5] | true | 사용 TLS |
설정할 때, 서버 자동 감지가 올바른 LS 인스턴스(Workspace Detection을 아래 참조).
MCP 도구
submit_agent - 차단 해제
작업을 제출하고 taskId back ** 즉시 ** (~1s). 하위 시약은 배경에서 실행됩니다.
start_agent와 같음.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Antigravity Sub-Agent MCP Server
An MCP server that lets a main AI agent spawn sub-agents on Antigravity IDE. Delegates tasks with full lifecycle management: creating cascades, auto-accepting tool actions, and extracting results.
Runs via stdio transport — configure as a command in mcp_config.json, no manual server start needed.
Table of Contents
- How It Works
- Project Structure
- Setup
- MCP Tools
- Model Aliases
- Key Features
- Debugging
- Contributing
- Acknowledgments
- License
How It Works
Main Agent (Claude/Gemini/etc)
↓ MCP tool call
↓
index.js (stdio MCP server)
↓ autoDetect(workspace) → finds correct LS instance
↓ startCascade() → sendMessage(SYSTEM_PROMPT + task)
↓
completion-loop.js (polls until done)
├─ RUNNING → keep polling (auto-accept if steps stall)
├─ WAITING_FOR_USER → auto-accept.js handles it
├─ IDLE → treat as completed
├─ Question detected → auto-reply "proceed" (max 3)
└─ COMPLETED → extract final text
↓
Returns result to Main Agent
Project Structure
antigravity-sub-agent-mcp/
├── package.json
├── index.js # stdio MCP server (2 tools)
├── lib/
│ ├── ls-detector.js # LS auto-detection (PPID + process scan + workspace matching)
│ ├── cascade-client.js # HTTP client for LS API (JSON + binary + streaming)
│ ├── completion-loop.js # Smart polling with auto-accept integration
│ ├── auto-accept.js # Interaction payload builder for WAITING steps
│ └── protobuf.js # Binary protobuf encoder/decoder
├── docs/ # Internal architecture documentation
├── LICENSE # MIT License
├── CONTRIBUTING.md # Contribution guide
├── CODE_OF_CONDUCT.md # Contributor Covenant
└── CHANGELOG.md # Release history
Setup
Prerequisites
- Node.js 18+
- Antigravity IDE running with at least one workspace open
Install
cd antigravity-sub-agent-mcp
npm install
Configure Antigravity
Add to your mcp_config.json:
{
"mcpServers": {
"antigravity-sub-agent": {
"command": "node",
"args": ["/absolute/path/to/antigravity-sub-agent-mcp/index.js"]
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
ANTIGRAVITY_PORT |
auto-detect | Language Server port |
ANTIGRAVITY_CSRF |
auto-detect | CSRF token |
ANTIGRAVITY_TLS |
true |
Use TLS |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"antigravity-sub-agent": {
"command": "node",
"args": ["/absolute/path/to/antigravity-sub-agent-mcp/index.js"]
}
}
}