simple-alloy-agent

simple-alloy-agent is a lightweight agent developed in Python that automates various tasks through a simple API. It is particularly useful for streamlining data collection and processing. Users can easily configure it and extend its functionalities as needed.

GitHub Stars

0

User Rating

Not Rated

Favorites

0

Views

34

Forks

0

Issues

0

README
AlloyDB MCP ADK Example

This example demonstrates how to interact with an AlloyDB database using AI Agents with the Model Context Protocol (MCP) Database Toolbox and Google Agent Development Kit (ADK).

Agent Chat Example

Prerequisites
Setup
  1. Synchronize dependencies using uv:

    uv sync
    
  2. Create the environment files:

    cp .env.example .env
    cp alloydb_agent/.env.example alloydb_agent/.env
    
  3. Edit the .env files and fill in your credentials:

    • In the root .env file:
      • Fill in AlloyDB connection details (ALLOYDB_PROJECT, ALLOYDB_REGION, etc.)
    • In the alloydb_agent/.env file:
      • For Google AI API (default):
        • Set GOOGLE_API_KEY with your Gemini API key
      • OR for Vertex AI:
  4. Source the environment variables:

    source .env
    
  5. Download the MCP Toolbox for Databases

    export OS="linux/amd64" # one of linux/amd64, darwin/arm64, darwin/amd64, or windows/amd64
    curl -O https://storage.googleapis.com/genai-toolbox/v0.6.0/$OS/toolbox
    chmod +x toolbox
    
  6. Start the MCP Toolbox with the provided tools configuration:

    ./toolbox --tools-file "alloy-tools.yaml"
    
  7. In a separate terminal, activate the virtual environment and start the ADK server:

    source .venv/bin/activate
    adk web
    

    The ADK web interface should now be available at http://localhost:8000, where you can interact with your AlloyDB database using natural language.

Disclaimer

This is example/demo code and may not be actively maintained or ready for production deployment. Use at your own risk.