gemini-cli
Verified Safeby google-gemini
Overview
The A2A (Agent-to-Agent) server implementation for the Gemini CLI, exposing tools and resources via the Model Context Protocol (MCP) to extend Gemini CLI capabilities.
Installation
CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-serverEnvironment Variables
- CODER_AGENT_PORT
- GCS_BUCKET_NAME
- MCP_DEBUG
- VERBOSE
- GOOGLE_APPLICATION_CREDENTIALS
Security Notes
The server uses Node.js with Express and incorporates `@a2a-js/sdk`. It handles persistence via Google Cloud Storage (GCS), which is a critical area for secure file operations. Path sanitization (`isTaskIdValid` in `gcs.ts`) is explicitly implemented, which is a good security practice against path traversal. The core Gemini CLI, which would consume this server, has a robust policy engine for tool execution (e.g., `run_shell_command`), reducing direct exposure to arbitrary command execution by the AI. The `private: true` in `package.json` indicates it's intended as a sub-package. Reliance on environment variables for sensitive configurations (like GCS bucket name) is also a good practice. No direct `eval` or obvious hardcoded secrets are present in the provided truncated code for the server itself, outside of build/utility scripts.
Similar Servers
gemini-mcp-tool
A Model Context Protocol (MCP) server that enables AI assistants to interact with the Google Gemini CLI for comprehensive code and file analysis, structured edit suggestions, and creative brainstorming.
gemini-mcp-server
An MCP server providing a suite of 7 AI-powered tools (Image Gen/Edit, Chat, Audio Transcribe, Code Execute, Video/Image Analysis) powered by Google Gemini, featuring a self-learning "Smart Tool Intelligence" system for prompt enhancement and user preference adaptation.
gemini-mcp-rs
Provides a Model Context Protocol (MCP) server for Claude Code and other MCP clients to interact with the Gemini CLI for AI-driven tasks.
GeminiMCP
Integrate Google's Gemini API for AI-powered tasks and search with Model Control Protocol (MCP) clients, focusing on developer-centric features like code analysis and context handling.