Antigravity GLM MCP Server

A bridge between Gemini and GLM-4.5 models for automating complex tasks.

README.md

πŸš€ Antigravity GLM MCP

Gemini (Antigravity) ⟷ GLM-4.5 λͺ¨λΈ λΈŒλ¦Ώμ§€ MCP μ„œλ²„

λ³΅μž‘ν•œ μ½”λ”© μž‘μ—…μ„ GLM AIμ—κ²Œ μœ„μž„ν•˜κ³ , 25κ°€μ§€ κ°•λ ₯ν•œ λ„κ΅¬λ‘œ μžλ™ν™”ν•˜μ„Έμš”.

πŸ“– λ¬Έμ„œ Β· ⚑ λΉ λ₯Έ μ‹œμž‘ Β· πŸ› οΈ 도ꡬ Β· πŸ›‘οΈ λ³΄μ•ˆ


✨ μ™œ 이 ν”„λ‘œμ νŠΈμΈκ°€μš”?

문제점 ν•΄κ²°μ±…
🐳 λ³΅μž‘ν•œ Docker μ„€μ • βœ… Zero-Docker: HTTPS 직접 호좜둜 μ¦‰μ‹œ μ‹œμž‘
πŸ” API ν‚€ 유좜 우렀 βœ… λ³΄μ•ˆ κ°•ν™”: ν™˜κ²½λ³€μˆ˜ 필터링, μƒŒλ“œλ°•μŠ€ 적용
πŸ“ 파일 μ‹€μˆ˜ 볡ꡬ λΆˆκ°€ βœ… μžλ™ λ°±μ—…: μˆ˜μ •/μ‚­μ œ μ „ 버전 관리
🧠 μ„Έμ…˜ κ°„ 정보 손싀 βœ… 영ꡬ λ©”λͺ¨λ¦¬: JSON 기반 μž₯κΈ° κΈ°μ–΅ μ €μž₯μ†Œ
⚠️ μœ„ν—˜ν•œ μ‰˜ λͺ…λ Ή μ‹€ν–‰ βœ… ν™”μ΄νŠΈλ¦¬μŠ€νŠΈ: 승인된 λͺ…λ Ήλ§Œ ν—ˆμš©

πŸ—οΈ μ•„ν‚€ν…μ²˜

flowchart LR
    subgraph "πŸ–₯️ Gemini Desktop"
        A[Antigravity Agent]
    end
    
    subgraph "πŸ”§ MCP Server"
        B[antigravity_glm_mcp]
        C[25 Tools]
        D[Security Layer]
    end
    
    subgraph "☁️ Cloud APIs"
        E[GLM-4.5 API]
        F[Web Search]
    end
    
    subgraph "πŸ’Ύ Local Storage"
        G[Files & Git]
        H[Memory DB]
        I[Backups]
    end

    A <--> |MCP Protocol| B
    B --> C
    C --> D
    D --> E
    D --> F
    D --> G
    D --> H
    D --> I

πŸ“– λ¬Έμ„œ

πŸ“„ λ¬Έμ„œ πŸ” μ„€λͺ…
πŸ›οΈ μ•„ν‚€ν…μ²˜ μ‹œμŠ€ν…œ 섀계, λ³΄μ•ˆ 계측, 톡신 흐름 상세
πŸ“š 도ꡬ 레퍼런슀 25개 도ꡬ νŒŒλΌλ―Έν„° 및 응닡 λͺ…μ„Έ
⚑ ν€΅μŠ€νƒ€νŠΈ 5λΆ„ μ„€μΉ˜ κ°€μ΄λ“œ 및 첫 μ‚¬μš© 예제

⚑ λΉ λ₯Έ μ‹œμž‘ (5λΆ„)

πŸ“‹ 사전 μš”κ΅¬μ‚¬ν•­

  • Python 3.11+ (κ°€μƒν™˜κ²½ ꢌμž₯)
  • Zhipu AI API ν‚€ λ˜λŠ” ν˜Έν™˜ μ—”λ“œν¬μΈνŠΈ

πŸš€ μ„€μΉ˜ 방법

# 1. μ €μž₯μ†Œ 클둠
git clone https://github.com/coreline-ai/antigravity_glm_mcp.git
cd antigravity_glm_mcp

# 2. κ°€μƒν™˜κ²½ 생성 및 ν™œμ„±ν™”
python3.11 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# 3. μžλ™ μ„€μΉ˜ (ꢌμž₯)
python scripts/install.py
πŸ“ μˆ˜λ™ μ„€μΉ˜ (λŒ€μ•ˆ)
# μ˜μ‘΄μ„± μ„€μΉ˜
pip install -r requirements.txt

# MCP μ„€μ • νŒŒμΌμ— μΆ”κ°€ (~/.gemini/settings.json λ“±)
{
  "mcpServers": {
    "antigravity_glm_mcp": {
      "command": "/path/to/.venv/bin/python",
      "args": ["/path/to/antigravity_glm_mcp/src/server.py"],
      "env": {
        "PROJECT_ROOT": "/your/workspace",
        "ZHIPU_API_KEY": "your-api-key",
        "GLM_MODEL": "GLM-4.5",
        "GLM_BASE_URL": "https://api.z.ai/api/coding/paas/v4",
        "PYTHONPATH": "/path/to/antigravity_glm_mcp"
      }
    }
  }
}

πŸ› οΈ 전체 도ꡬ λͺ©λ‘ (25개)

🧠 μ§€λŠ₯ μœ„μž„ (Intelligence Delegation)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_cmd GLM에 λ³΅μž‘ν•œ μž‘μ—… μœ„μž„ task_description, context
glm_bypass μ›μ‹œ ν”„λ‘¬ν”„νŠΈ 직접 전솑 prompt
glm_image_analyze 이미지 뢄석 (Vision) image_path, prompt

πŸ“ 파일 μ‹œμŠ€ν…œ (File System)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_file_read 파일 λ‚΄μš© 읽기 path, encoding
glm_file_create μƒˆ 파일 생성 path, content, overwrite
glm_file_edit λ¬Έμžμ—΄ μΉ˜ν™˜ μˆ˜μ • path, old_string, new_string
glm_file_delete 파일 μ‚­μ œ (λ°±μ—… 보관) path
glm_file_rollback 이전 버전 볡원 path, version
glm_dir_list 디렉토리 λͺ©λ‘ path, recursive
glm_grep μ •κ·œμ‹ 파일 검색 pattern, path, case_sensitive

πŸ’» μ½”λ“œ μ‹€ν–‰ (Code Execution)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_code_run Python μƒŒλ“œλ°•μŠ€ μ‹€ν–‰ code, timeout
glm_shell_exec ν™”μ΄νŠΈλ¦¬μŠ€νŠΈ μ‰˜ μ‹€ν–‰ command, cwd

🌿 Git ν˜‘μ—… (Git Collaboration)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_git_status μ €μž₯μ†Œ μƒνƒœ 쑰회 repo_path
glm_git_commit 변경사항 컀밋 message, add_all
glm_git_log 컀밋 이λ ₯ 쑰회 n, oneline
glm_git_diff 변경사항 비ꡐ stat_only, commit

🌐 λ„€νŠΈμ›Œν¬ (Network)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_http_request HTTP μš”μ²­ (SSRF λ°©μ§€) url, method, body
glm_web_search DuckDuckGo μ›Ή 검색 query, max_results

🧠 λ©”λͺ¨λ¦¬ & 데이터 (Memory & Data)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_memory_save μž₯κΈ° λ©”λͺ¨λ¦¬ μ €μž₯ key, value, category
glm_memory_get λ©”λͺ¨λ¦¬ 쑰회 key
glm_memory_list 전체 λ©”λͺ¨λ¦¬ λͺ©λ‘ category, limit
glm_memory_delete λ©”λͺ¨λ¦¬ μ‚­μ œ key
glm_db_query SQLite 쿼리 μ‹€ν–‰ query, db_path, read_only

πŸ“Š 관리 & λ‘œκΉ… (Management)

도ꡬ μ„€λͺ… μ£Όμš” νŒŒλΌλ―Έν„°
glm_schedule_task μž‘μ—… μ˜ˆμ•½ (Cron) action, cron, command
glm_action_log μ—μ΄μ „νŠΈ ν™œλ™ 둜그 limit, `

Tools 8

glm_cmdDelegate complex tasks to GLM
glm_file_readRead file content
glm_file_createCreate a new file
glm_file_editEdit file using string replacement
glm_code_runExecute code in a Python sandbox
glm_shell_execExecute whitelisted shell commands
glm_web_searchPerform a DuckDuckGo web search
glm_memory_saveSave data to long-term memory

Environment Variables

ZHIPU_API_KEYrequiredAPI key for Zhipu AI
PROJECT_ROOTrequiredRoot directory for file operations
GLM_MODELThe GLM model version to use
GLM_BASE_URLBase URL for the GLM API

Try it

β†’Analyze the current directory and summarize the project structure.
β†’Search for the latest documentation on Python's asyncio and save the key points to my memory.
β†’Create a new Python script that calculates Fibonacci numbers and run it in the sandbox.
β†’Find all occurrences of 'TODO' in the project files and list them.
β†’Commit the recent changes to the repository with a descriptive message.

Frequently Asked Questions

What are the key features of Antigravity GLM MCP?

Zero-Docker architecture for direct HTTPS execution. Security-hardened environment with command whitelisting and sandboxing. Automatic file versioning and backup system. Persistent JSON-based long-term memory storage. Integrated Git collaboration and code execution tools.

What can I use Antigravity GLM MCP for?

Automating complex coding tasks by delegating to GLM-4.5. Managing local project files with built-in safety and rollback features. Performing secure web research and integrating findings into project memory. Executing and testing code snippets in a controlled Python sandbox.

How do I install Antigravity GLM MCP?

Install Antigravity GLM MCP by running: git clone https://github.com/coreline-ai/antigravity_glm_mcp.git && cd antigravity_glm_mcp && python3.11 -m venv .venv && source .venv/bin/activate && python scripts/install.py

What MCP clients work with Antigravity GLM MCP?

Antigravity GLM MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Antigravity GLM MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare