> ## 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.

# Hugging Face

> Doconda como herramientas de un agente de smolagents.

```bash theme={null}
pip install "smolagents[mcp]" "mcp<2"
```

<Note>Fija `mcp<2`: la versión 2 de `mcp` aún no es compatible con la integración MCP de smolagents.</Note>

```python theme={null}
import os
from smolagents import CodeAgent, InferenceClientModel, MCPClient

doconda = {
    "url": "https://api.eu.doconda.com/mcp",
    "transport": "streamable-http",
    "headers": {"Authorization": f"Bearer {os.environ['DOCONDA_API_KEY']}"},
}

with MCPClient(doconda, structured_output=True) as tools:
    agent = CodeAgent(tools=tools, model=InferenceClientModel())
    agent.run("Crea una presentación sobre el cambio climático para un colegio")
```

Para usarlo en local:

```python theme={null}
from mcp import StdioServerParameters

doconda = StdioServerParameters(command="npx", args=["-y", "@doconda/mcp"], env={"DOCONDA_API_KEY": os.environ["DOCONDA_API_KEY"], **os.environ})
```


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