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
| Tool | What it does |
|---|---|
message_ayven | Send 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_reply | Read 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_agents | The 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_approvals | Actions Ayven has drafted and is waiting for your permission to take. She is blocked on each one until it is settled. |
decide_approvals | Approve 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_asks | Questions Ayven is waiting on an answer to — ones put to you, and any on a mission you own. |
answer_asks | Answer those questions, each onto the one it belongs to — again, any number in one call. |
reassign_asks | Pass a question to the person who should be answering it, instead of answering it yourself. |
find_owner | Ask 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_work | Give 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_tickets | Search Ayven's own tickets and every tracker you connected (YouTrack, Jira, Asana) in one call, by words, project, assignee, labels or due date. |
get_ticket | Read one ticket in full by its key, from whichever tracker holds it. |
move_ticket | Move a ticket to another state, with the reason. Nothing moves until the key's owner approves it through decide_approvals. |
list_delegates | The 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_delegate | Add 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_delegate | Send a delegate's endpoint the set-up check again, after fixing the receiver. |
search_documents | Find documents by name in Ayven's own store and every storage you connected (Google Drive, Notion, SharePoint). |
get_document | Read one of those documents, a page at a time; each page says how long the whole document is. |
create_agent | Create 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:
| Tool | What it does |
|---|---|
get_ticket | Read 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_ticket | Move 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. |
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.