Mirakash is a verified Tech Provider on Meta's WhatsApp Business Platform. Connect your own number in minutes.
Developers · MCP server

Mirakash, as tools.For any MCP client.

Every operation in the Mirakash API is also a tool on a Model Context Protocol server, so an AI client can list your agents, read a conversation, search your knowledge or talk to an agent — with the same API key, the same scopes and the same answers as the REST API.

Connection

One endpoint.One header.

A workspace admin creates the key in Settings → API keys in the console. Choose read-only to explore; read and write to act.

Endpoint
https://app.mirakash.com/api/mcp
Transport
Streamable HTTP. POST a JSON-RPC message, get one JSON response back.
Protocol versions
2025-06-18, 2025-03-26, 2024-11-05 — the server answers with the version you ask for when it supports it, otherwise the newest.
Authentication
The API key, on every request: Authorization: Bearer mk_live_…
Tool names
The operation name with _ for . — agents.list is agents_list.
Read-only keys
Are shown the read tools only.
Sessions
None. The server is stateless and keeps no session id.
Connect a client

Copy one block.Keep the key out of the repository.

Claude Code

Reads the key from your shell, so it is never written into a file.

terminal
claude mcp add --transport http mirakash https://app.mirakash.com/api/mcp \
  --header "Authorization: Bearer $MIRAKASH_API_KEY"

VS Code

Prompts for the key once and stores it outside the file.

.vscode/mcp.json
{
  "inputs": [
    { "type": "promptString", "id": "mirakash-key", "description": "Mirakash API key", "password": true }
  ],
  "servers": {
    "mirakash": {
      "type": "http",
      "url": "https://app.mirakash.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:mirakash-key}" }
    }
  }
}

Cursor

Use the global file in your home directory, not a project one that gets committed.

~/.cursor/mcp.json
{
  "mcpServers": {
    "mirakash": {
      "url": "https://app.mirakash.com/api/mcp",
      "headers": { "Authorization": "Bearer mk_live_…" }
    }
  }
}

Any client, by hand

The whole protocol is a POST. This lists the tools your key can use.

terminal
curl -X POST https://app.mirakash.com/api/mcp \
  -H "Authorization: Bearer $MIRAKASH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Calling a tool

Data twice.Errors to the model.

A result carries the data as JSON text for clients that only read text, and as structuredContent for those that read JSON. Text is the full data, not a summary — some tools put a one-line summary above it.

request
curl -X POST https://app.mirakash.com/api/mcp \
  -H "Authorization: Bearer $MIRAKASH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
       "params":{"name":"agents_reply",
                 "arguments":{"agentId":"AGENT_ID","message":"Do you open on Sundays?"}}}'
result
{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "content": [{ "type": "text", "text": "{\n  \"reply\": \"Yes — 10:00 to 16:00 on Sundays.\", … }" }],
    "structuredContent": { "reply": "Yes — 10:00 to 16:00 on Sundays.", "escalated": false, … }
  }
}

When the data is a list rather than an object, structuredContent wraps it as { "result": [ … ] }.

When something fails

Three kinds of failure.Each where a client expects it.

A tool fails
A normal result with isError: true and the text code: message, using the same codes as the REST API — invalid_request, forbidden, not_found, conflict… The model reads it and can try something else.
The request is wrong
A JSON-RPC error: -32700 the body is not JSON (with HTTP 400), -32600 not JSON-RPC 2.0, -32601 unknown method or tool, -32602 tools/call without a name.
The key is wrong
HTTP 401 with WWW-Authenticate: Bearer — missing, unknown, revoked or expired. A client takes that as a reason to reconnect with credentials, not as a broken tool.
a tool that failed
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "isError": true,
    "content": [{ "type": "text", "text": "not_found: No agent with that id in this workspace." }]
  }
}

Also: a notification (no id) gets 202 with no body, GET gets 405, and resources/list and prompts/list answer with empty lists — the server offers tools only. A batch — an array of messages, which the older protocol versions allow — is answered message by message.

Before a model acts

Some tools ring phones.They say so.

Every tool carries MCP annotations: readOnlyHint on the read tools, destructiveHint on the ones that place real calls, send real messages or change what live callers hear, idempotentHint on reads. A client uses them to decide when to ask you before running a tool — set yours to always ask for destructive ones. The API reference lists them all in its Operations with real-world effects table.

Hints are not the lock. The server checks the key's scope on every call, so a read-only key cannot run a write tool however it is asked to. Each change made through the server is recorded in the workspace's audit trail against the key that made it.

Credentials stored in the console — a tool's request headers, a webhook signing secret — come back as [redacted], so they never land in a model's context. Conversation data does include callers' numbers and what they said; treat a model's context that has read it as personal data.

Questions we get.

Can I add Mirakash as a connector in claude.ai or ChatGPT?
Not yet. Those apps add remote servers through an OAuth sign-in, and this server accepts API keys only. Use a client that lets you set a request header — Claude Code, Cursor, VS Code — or a platform API that accepts a bearer token for a remote MCP server.
Which tools will my client see?
Every operation in the API reference is a tool, named after the operation with an underscore for each dot: agents.list is agents_list. A read-only key is shown only the read tools; a read-and-write key sees all of them. The API reference names the tool on every operation.
Is the MCP server a different API from the REST one?
No. Both are generated from one operation registry and run through the same code path, so a tool takes the same inputs, is held to the same scope, returns the same data and fails with the same error codes as its REST endpoint.
Will a model be able to place calls on its own?
Only with a read-and-write key, and only if your client lets it. Tools that place real calls, send messages or change what live callers hear are marked destructive, which is how a client knows to ask you first. Give an exploring model a read-only key and those tools are not listed at all.
Does the server keep a session or stream events?
No. It is stateless — there is no session id, and any instance can answer any request — and it does not stream: every response is a single JSON body, and a GET on the endpoint answers 405.