Skip to main content
Glama

Gemini ↔ AGY Bridge (gemini-agy-bridge)

Gemini(웹/데스크톱 앱 Ultra·Pro 구독)에서 추론·탐색·설계를 처리하고, 로컬 Antigravity CLI(agy)에는 실제 코드 제작·실행만 위임해 agy 토큰을 크게 절약하는 Streamable HTTP MCP 브릿지입니다.

Benchmark Preview

🎬 모션그래픽 소개 영상 (16:9 · 1080p 60fps): media/gemini-agy-bridge-launch.mp4 📱 릴스 / 쇼츠 세로 영상 (9:16 · 1080×1920 60fps): media/gemini-agy-bridge-reels.mp4

  • 탐색·설계(pack_context, repo_tree, read_file, search_code, git_status_diff): agy 토큰 0 소비

  • 제작·실행(agy_exec, agy_resume): 확정된 패치 명세만 로컬 agy에 단발 위임

  • 크로스 플랫폼: Windows / macOS / Linux 자동 감지 (agy 경로 탐지 + cloudflared 자동 다운로드)


빠른 시작 (AI에게 바로 설치 맡기기)

직접 명령어를 치지 않고, 사용 중인 코딩 AI(agy, Claude Code, Codex, Cursor 등)에게 아래 문장만 보내면 됩니다:

https://github.com/xodn-sell/gemini-agy-bridge 이 저장소 클론하고 내 PC에 설치·설정해 줘.

직접 설치 (3단계)

사전 준비

1단계: 설치 및 초기 설정

git clone https://github.com/xodn-sell/gemini-agy-bridge.git
cd gemini-agy-bridge
npm install
npm run setup
  • agy 경로를 자동 탐색하고, OS에 맞는 cloudflared를 bin/에 자동 설치합니다.

  • 작업할 프로젝트 폴더를 추가하려면:

npm run setup -- --add-workspace "/path/to/your/project"

2단계: 브릿지 실행 (HTTPS MCP URL 자동 발급)

npm run bridge
# 또는 Windows PowerShell: .\start-bridge.ps1
# 또는 macOS/Linux: ./start-bridge.sh

실행 시 터미널에 아래와 같은 전용 HTTPS MCP URL이 출력됩니다:

https://<random>.trycloudflare.com/mcp/<secretToken>

고정 도메인 사용(선택): 매번 바뀌는 무료 Quick Tunnel 대신 Cloudflare Named Tunnel을 쓰려면:

npm run bridge -- --tunnel-token <YOUR_CLOUDFLARE_TUNNEL_TOKEN>

3단계: Gemini 커넥터 등록 & 규칙 적용

  1. gemini.google.com/customize/connectors 접속 → 맞춤 앱 만들기 클릭

  2. 2단계에서 발급된 https://.../mcp/<secretToken> URL 붙여넣기 → 다음 → 동의 체크 → 연결 → 연결(저장)

  3. GEMINI_RULES.md의 시스템 지침을 Gemini Gems 또는 Gemini 요청 사항에 붙여넣기

  4. Gemini 웹 또는 데스크톱 앱(Alt+G)에서 @Gemini Agy Bridge를 호출해 사용


Related MCP server: antigravity

제공되는 MCP 도구 (8종)

도구

AGY 토큰

역할

pack_context

0

(권장 첫 호출) 트리 + 핵심 소스 파일(줄번호 포함) + git status/diff를 한 번에 묶어 반환

repo_tree

0

폴더 트리 조회

read_file

0

특정 파일/줄 범위 읽기

search_code

0

텍스트/정규식 검색

git_status_diff

0

git status 및 git diff 확인

agy_exec

소비

확정된 패치 명세를 로컬 agy --print로 실행 (토큰 사용량·conversation_id 반환)

agy_resume

소비

이전 conversation_id를 이어서 빠른 후속 수정

bridge_stats

0

누적 0토큰 읽기 횟수 vs agy 호출 횟수·토큰 통계 확인


성능 검증 및 오픈소스 벤치마크 (promptfoo + End-to-End 실측)

직접 벤치마크를 재현하려면:

npm test                                  # 로컬 MCP 서버 & pack_context 자가 테스트
node bench/run-honest-e2e.mjs             # 추론+제작 총 시간 포함 End-to-End 실측
npm run bench                             # promptfoo 기반 단독 agy vs 브릿지 비교

5개 실전 태스크(총 47개 자동 테스트, 실제 2단계 핸드오프) End-to-End 실측 요약:

과제 (테스트 수)

정확도 (단독 / 브릿지)

AGY 출력 사용량 (단독 → 브릿지)

총 작업 시간 (단독 → 추론+제작 합산)

가격·쿠폰 버그 수정 (8)

8/8 · 8/8

4,142 → 2,752 (-33.6%)

146.1s → 128.1s (추론 38.9s + 제작 89.2s)

TTL-LRU 캐시 구현 (10)

10/10 · 10/10

10,271 → 3,164 (-69.2%)

186.6s → 150.5s (추론 67.7s + 제작 82.8s)

3파일 로그 분석기 (9)

9/9 · 9/9

4,790 → 2,938 (-38.7%)

176.9s → 129.5s (추론 45.1s + 제작 84.4s)

5필드 Cron 파서 (10)

10/10 · 10/10

9,465 → 3,735 (-60.5%)

140.2s → 212.1s (추론 68.4s + 제작 143.7s)

2파일 상태 스토어 (10)

10/10 · 10/10

7,633 → 3,438 (-55.0%)

146.0s → 159.0s (추론 71.8s + 제작 87.1s)

합계 (47개 테스트)

47/47 · 47/47 (100%)

36,301 → 16,027 (-55.9%)

13분 16초 → 12분 59초 (-2.1%)

  • 결론: 추론 시간과 제작 시간을 전부 합쳐도 총 소요시간 손해 없이(-2.1%, 거의 동일), 정확도 **100%(47/47)**를 유지하면서 **AGY 출력 사용량을 55.9% 절감(복잡한 구현 최대 -69.2%)**했습니다.

  • 상세 운영 규칙과 주의사항은 GEMINI_RULES.md를 참고하세요.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP-compatible AI clients like Claude Code, Cursor, and Codex to invoke Google Antigravity's Gemini coding agent for repository-aware file operations, command execution, code review, test generation, and quota checks, while also providing a standalone dual-mode CLI.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Gemini CLI and ChatGPT to inspect, modify, and run commands in local code projects through MCP, including Git operations and multi-project session binding with secure remote access.
      125 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Google Gemini on web or mobile to connect to a local Antigravity IDE/CLI workstation, letting users browse and manage coding sessions, inspect paused approvals, search and read repository files, audit git changes, send handoffs that resume the right project chat, and view ASCII usage telemetry or a live web dashboard.
      10
      AGPL 3.0