> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doconda.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google ADK

> Genera Word, PowerPoint, Excel y PDF desde un agente del Agent Development Kit (ADK) de Google.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
pip install "google-adk[mcp]"
```

El ADK conecta las herramientas de Doconda con `McpToolset`. En `documentos/agent.py`:

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
import os

from google.adk.agents import Agent
from google.adk.tools.mcp_tool import McpToolset, StreamableHTTPConnectionParams

root_agent = Agent(
    name="documentos",
    model="gemini-3.5-flash",
    instruction="Crea los documentos que te pida el usuario y devuelve sus enlaces.",
    tools=[
        McpToolset(
            connection_params=StreamableHTTPConnectionParams(
                url="https://api.eu.doconda.com/mcp",
                headers={"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
            ),
        ),
    ],
)
```

Con un `documentos/__init__.py` que diga `from . import agent`, pruébalo con `adk web` (o `adk run documentos`) y
pídele, por ejemplo, «hazme un Excel con el presupuesto del evento». Gemini lee `GOOGLE_API_KEY`, o Vertex AI con
`GOOGLE_GENAI_USE_VERTEXAI=TRUE`.

Para usarlo en local, en vez del remoto:

```python theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
from google.adk.tools.mcp_tool import McpToolset, StdioConnectionParams
from mcp import StdioServerParameters

McpToolset(
    connection_params=StdioConnectionParams(
        server_params=StdioServerParameters(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": "ak_eu_…"}),
        timeout=300,
    ),
)
```

`timeout=300`: en local es también la espera por llamada (5 s por defecto), y un documento tarda más en estar listo.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.