Start with the CLI when your coding agent sets Akua up for you.
Add this server when you also want your AI tool to read and operate your
Workspace through MCP. It is optional, and the CLI works without it.
Connect a client
The Akua MCP server ishttps://mcp.akua.dev. It speaks the Streamable HTTP transport and signs
you in with OAuth: on first use your tool opens your browser, you sign in to Akua, and the tool
keeps the session.
For a coding agent in your terminal:
- Claude Code
- Codex
- opencode
- Antigravity
- Gemini CLI
- Goose
- Amp
Add the server, then sign in from Claude Code with Add
/mcp or from your shell:--scope user to the first command to use Akua in every project.- VS Code
- Cursor
- Cline
- Devin Desktop
- Zed
In a Copilot chat session, run Chat: Open Customizations, select MCP Servers, then
Add Server. Enter When Copilot offers it, sign in with Authenticate in the server’s actions.
https://mcp.akua.dev and choose Global > Copilot Global.Or add Akua to ~/.copilot/mcp-config.json (every workspace) or to .mcp.json at the root
of your workspace:https://mcp.akua.dev with
the Streamable HTTP transport. Most clients accept this shape:
401 and an OAuth discovery challenge,
and it accepts dynamic client registration, so a client with MCP OAuth support signs you in
by itself. A client without OAuth can send an Akua API token
instead, in the header Authorization: Bearer AKUA_API_TOKEN.
The Claude Code, Codex and Cursor setups are also in the dashboard under Connect. The server treats every request on its own: it keeps no session between requests.
Every request carries Authorization: Bearer <credential>. The server accepts a signed-in user credential or an Akua API token, and it answers 401 with a WWW-Authenticate challenge when the credential is missing or rejected. To work in a specific Workspace, send its id in the Akua-Context header; the server passes it on to every API call a program makes.
Tools
The server exposes exactly two tools. Both take one argument,code: a JavaScript program written as statements (not a function) that ends with return.
search
Discover API operations as typed tools. Each match has the callable path and its TypeScript signature. search is read-only: it cannot call the API.
execute
Call the API. Every operation of the public API is an async function under tools.akua, and its path, query, header and body fields go in one object. Find the tool with search first, then call it. The built-in search is also available inside execute.
Promise.all.
Why two tools
Most MCP servers register one tool per API endpoint, so the tool list grows with the API and fills the model’s context. This server keeps the list at two. The agent writes a short program that finds operations, calls them, chains the results and filters the data, in one tool call. This pattern is called Code Mode or programmatic tool calling.CodeAct
Apple ML research on LLM code generation for tool use
Code Mode
Cloudflare’s introduction of the pattern
Programmatic tool calling
Anthropic’s recommended approach
How it works
The tool catalog is built from the public API description, so a new API operation appears as a tool without a server change. The API checks access on the server for every call, as it does for the dashboard.Security
- No credential access: a program cannot read or set the
Authorizationheader. Each call carries only the connected user’s own credential, added by the server. - Code size: a program may be up to 256 KB.
- Memory: 64 MB per run.
- Time: a run stops after at most 60 seconds.
- Tool calls: at most 50 API calls per run, up to 8 in flight at once.
- Request body: at most 1 MB per API call.
- Output: at most 24 KB of text goes back to the agent. Longer output is cut with a marker.
Related topics
Agent setup
Start with the CLI and add this server when it helps.
CLI
Install, sign in and run generated commands.
Documentation MCP
Search the Akua docs from your agent, without signing in.