1. Connect
  2. Integrations

An integration is a set of tools that reach a service outside your workflow. You declare it on the step and connect an account once; the credentials stay with Avalanche and never appear in your code or in a prompt.

@ava.agent_step(Answer, integrations=[crm])
async def answer(question: str, *, agent: ava.Agent) -> str:
    return (await agent(question=question)).outputs.answer
Rendering diagram…
KindDeclared withFor
ConnectorA subclass of ava.ConnectorYour own HTTP API
MCP serverava.MCP(...)Any MCP server

The agent sees each tool as <integration>__<tool>, for example acme_crm__find_customer.

​
Connector

A connector wraps your own API. Each method marked @ava.tool becomes a tool.

class AcmeCrm(ava.Connector):
    name = "acme-crm"
    base_url = "https://api.acme.com"
    auth = ava.ApiKey(header="X-Api-Key")

    @ava.tool
    def find_customer(self, email: str) -> dict:
        """Find the customer with this email address."""
        response = self.client.get("/customers", params={"email": email})
        response.raise_for_status()
        return response.json()


crm = AcmeCrm()
PartMeaning
nameThe integration’s name, and the prefix of its tools
base_urlThe only address self.client may call
authava.ApiKey(header=...), ava.OAuth2(...) or None
self.clientAn HTTP client that adds the account’s credentials to each request

A connector works in both kinds of step:

@ava.step(integrations=[crm])                    # Python step: call the method
def lookup(email: str) -> dict:
    return crm.find_customer(email)


@ava.agent_step(Answer, integrations=[crm])      # agent step: the agent calls acme_crm__find_customer
async def answer(question: str, *, agent: ava.Agent) -> str: ...

​
MCP server

kb = ava.MCP("kb", url="https://kb.example.com/mcp", allow=["search"])
local_kb = ava.MCP("local-kb", command=["python", "server.py"])


@ava.agent_step(Research, integrations=[kb, local_kb])
async def research(topic: str, *, agent: ava.Agent) -> list[str]: ...
ArgumentMeaning
urlA remote MCP server
commandA local MCP server, started as a process. Not available on Avalanche Cloud.
allowThe tools the agent may use. Default: all of them.

MCP servers are for agent steps.

​
Connect an account

An integration needs an account. You connect it once, outside your code.

  • Local operator

  • Avalanche Cloud

ava connect              # list the integrations your workflows declare
ava connect acme-crm     # asks for the API key, or opens the browser to sign in

Or open Integrations at the bottom of the UI’s sidebar and choose Connect.

A step whose integration has no account fails before its code runs, with a message naming the integration.