gemini-agent
by sauravchandra
Overview
Provides a REST API service and Python client for Google's Gemini CLI agentic capabilities, enabling programmatic control over AI agent tasks.
Installation
podman-compose up -d --buildEnvironment Variables
- GEMINI_API_KEY
- GEMINI_MODEL
- GEMINI_TIMEOUT
- REDIS_URL
- CELERY_BROKER_URL
- CELERY_RESULT_BACKEND
Security Notes
The server relies heavily on `subprocess.run` to execute external `gemini` CLI commands. Several endpoints, specifically for MCP server management (add/remove) and session deletion, directly pass user-controlled strings (e.g., MCP server name, URL, arguments, session ID) into these `subprocess.run` calls without explicit input sanitization in the Python code. This introduces a potential for command injection if the underlying `gemini` CLI does not robustly sanitize all its arguments against shell exploits, or if a malicious input could escape its intended interpretation. The main task submission also passes the `prompt` directly.
Similar Servers
gemini-cli
Provides an A2A (Agent-to-Agent) server for the Gemini CLI, enabling external agents to interact with and utilize the CLI's capabilities for executing tasks and accessing tools.
gcloud-mcp
Enables AI assistants to interact with the Google Cloud environment using the gcloud CLI for natural language cloud management and workflow automation.
adk-docs-ext
Provides up-to-date documentation for the Agent Development Kit (ADK) to the Gemini CLI, allowing the Gemini model to answer ADK-related questions accurately.
gemini_mcp_onekey
Provides an MCP server wrapper for Google Gemini API, enabling image generation with various Gemini models.