Connect AI tools (MCP)

Ayven is an MCP server, so AI tools that speak the Model Context Protocol — Claude Code, Cursor, Codex and others — can message your agents and read their replies. It is the same messaging channel as the HTTP API, packaged so an AI tool discovers it by itself: one command to connect, and your coding agent gains Ayven as a teammate it can talk to mid-task — and, when she needs a decision or an answer before she can carry on, one it can bring to you without either of you leaving the terminal.

Connecting

You need an API key. In Claude Code:

claude mcp add Ayven --transport http \
  https://platform-gateway-3124114101.europe-west1.run.app/api/v1/mcp \
  --header "Authorization: Bearer ak_your_key_here"

In Cursor (~/.cursor/mcp.json), Windsurf (mcp_config.json) and other clients that read an mcpServers file, add Ayven with the server URL and the Authorization header carrying your key. If the file already lists servers, add the Ayven entry inside its mcpServers. Your key sits in this file, so keep it out of any project folder you commit.

{
  "mcpServers": {
    "Ayven": {
      "url": "https://platform-gateway-3124114101.europe-west1.run.app/api/v1/mcp",
      "headers": { "Authorization": "Bearer ak_your_key_here" }
    }
  }
}

The key acts as you — everything your AI tool says through it is said as you, to agents you can already message.

What your AI tool can do

ToolWhat it does
message_ayvenSend an agent a chat message and get the reply. Conversations are durable sessions — passing the session_id back continues one, and the agent sees its history like a Slack thread.
get_replyRead a conversation's transcript and status. When a turn runs long, this is how the reply is picked up — and where an agent's later updates on long-running work appear.
list_agentsThe agents your account can message. When you have exactly one, conversations reach it automatically; with several, a new conversation names its agent from this list.
list_approvalsActions Ayven has drafted and is waiting for your permission to take. She is blocked on each one until it is settled.
decide_approvalsApprove or reject those actions — any number in one call. A rejection with a reason redirects the work; she re-plans against what you said.
list_asksQuestions Ayven is waiting on an answer to — ones put to you, and any on a mission you own.
answer_asksAnswer those questions, each onto the one it belongs to — again, any number in one call.
reassign_asksPass a question to the person who should be answering it, instead of answering it yourself.
find_ownerAsk who on the team could carry a piece of work. Returns candidates with what is known about each, so you choose on the facts.
hand_off_workGive that work to the person you chose. It lands on their plate, and what Ayven drafts for them comes back to you through list_approvals.
search_ticketsSearch Ayven's own tickets and every tracker you connected (YouTrack, Jira, Asana) in one call, by words, project, assignee, labels or due date.
get_ticketRead one ticket in full by its key, from whichever tracker holds it.
move_ticketMove a ticket to another state, with the reason. Nothing moves until the key's owner approves it through decide_approvals.
list_delegatesThe applications your workspace hands tickets to — a coding agent, an automation, a script — with when each should get work and whether its endpoint passed the set-up check.
add_delegateAdd one by its webhook, with what it is told and when to give it work, and check the endpoint at once. Owners and admins only. Its signing secret is never returned to your AI tool, so it stays out of the transcript.
check_delegateSend a delegate's endpoint the set-up check again, after fixing the receiver.
search_documentsFind documents by name in Ayven's own store and every storage you connected (Google Drive, Notion, SharePoint).
get_documentRead one of those documents, a page at a time; each page says how long the whole document is.
create_agentCreate an agent, for the account that does not have one yet.

For an agent Ayven handed a ticket to

An agent Ayven handed a ticket to needs no API key. It connects to a separate server, https://platform-gateway-3124114101.europe-west1.run.app/api/v1/mcp/delegations (the call's report.mcp_url), with the token the call carried: Authorization: Bearer <report.token>. The token opens only that ticket, while it stays handed to the agent, and the server has two tools:

ToolWhat it does
get_ticketRead the handed-over ticket, the states it can move to, and the agent's last proposed move: waiting for approval, approved, or rejected with the approver's reason. Takes no arguments.
move_ticketMove it to one of those states, with target_state, reason and an optional comment. Nothing moves until the person who approved the ticket approves the move. An approved move out of In Progress ends the hand-over, so the token then gets 401: the move landed.
Ayven tells your AI tool to bring approvals and questions to you. Approving takes real action on your systems and answering speaks in your name, so Ayven's tools tell the tool on the other end to bring what is waiting to you rather than settle it alone — and the approve/reject tool is marked destructive, which clients that ask before acting will honour.

How conversations behave

A quick turn returns the reply directly. A longer one returns the conversation's id with the agent still working — nothing is lost; the reply lands on the transcript and get_reply picks it up. For genuinely long work the agent may acknowledge now and keep going, exactly as she would on Slack; her later updates land on the same conversation.

Revoking the key. The connection holds no login and no state on Ayven's side — every call presents your key, and revoking the key on your account's API Keys tab cuts the connection on the next request.