Back to Home
google-gemini icon

gemini-cli

Verified Safe

by 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

Run Command
CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-server

Environment 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

Stats

Interest Score100
Security Score8
Cost ClassLow
Stars91303
Forks10631
Last Update2026-01-17

Tags

Gemini CLIA2AMCPToolingAgentServerNode.jsGoogle Cloud