Skip to main content
The Akua MCP server lets your AI tool, such as Claude Code, Codex, Cursor or VS Code, use your Akua Workspace. It reaches the same public API the dashboard and the CLI use, with your own access and nothing more.
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 is https://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:
Add the server, then sign in from Claude Code with /mcp or from your shell:
Add --scope user to the first command to use Akua in every project.
For an editor or IDE extension:
In a Copilot chat session, run Chat: Open Customizations, select MCP Servers, then Add Server. Enter 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:
When Copilot offers it, sign in with Authenticate in the server’s actions.
Any other MCP client. If your tool isn’t listed, connect it to https://mcp.akua.dev with the Streamable HTTP transport. Most clients accept this shape:
The server answers an unauthenticated request with 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. 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.
A failed API call throws an error that names the HTTP status. Independent calls can run together with 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

Programs run in an isolated sandbox with a memory limit and a time limit. They have no filesystem and no network, apart from the Akua API tools.
  • No credential access: a program cannot read or set the Authorization header. 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.

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.