MCP API Reference

March 21, 2026 · View on GitHub

Endpoint

POST https://mcp.cloud.axme.ai/mcp
Content-Type: application/json
Authorization: Bearer <account_session_token>

Protocol: JSON-RPC 2.0 (MCP 2024-11-05)

Authentication

All tools/call requests require a Bearer JWT token obtained via the AXME login flow:

  1. POST /v1/auth/login-intent → receive OTP by email
  2. POST /v1/auth/login-intent/{id}/verify → receive account_session_token (15-min TTL)
  3. POST /v1/auth/refresh → rotate token before expiry

Protocol methods (initialize, tools/list, ping) do not require auth.

Protocol Methods

MethodDescription
initializeMCP handshake — returns server info and capabilities
tools/listList all 48 available tools with input schemas
tools/callExecute a tool (requires auth)
pingHealth check
resources/listReturns empty list (no resources exposed)
prompts/listReturns empty list (no prompts exposed)

Tools (48 total)

Status & Identity (3)

ToolDescription
axme.statusGateway health and connectivity
axme.whoamiCurrent identity, org, workspace
axme.doctorCombined health + context diagnostics

Organizations (3)

ToolDescription
axme.org_listList organizations
axme.org_receive_policy_getGet org receive policy
axme.org_receive_policy_setSet org receive policy (policy_type)

Workspaces (3)

ToolDescription
axme.workspace_listList workspaces
axme.workspace_useSelect active workspace (org_id, workspace_id)
axme.workspace_members_listList workspace members

Members (4)

ToolDescription
axme.member_listList members (org_id)
axme.member_addAdd member (org_id, actor_id, role)
axme.member_updateUpdate member role/status (org_id, member_id)
axme.member_removeRemove member (org_id, member_id)

Agents (9)

ToolDescription
axme.agents_listList registered agents (org_id, workspace_id)
axme.agents_showShow agent details (address)
axme.agents_registerRegister new agent (org_id, workspace_id, name)
axme.agents_deleteDelete agent (service_account_id)
axme.agents_keys_createCreate API key (service_account_id)
axme.agents_keys_revokeRevoke API key (service_account_id, key_id)
axme.agents_policy_getGet agent send policy (address)
axme.agents_policy_setSet agent send policy (address, policy_type)
axme.agents_receive_overrideGet/set receive override (address, action)

Intents (10)

ToolDescription
axme.intents_sendSend intent (to_agent, intent_type, payload)
axme.intents_listList intents (optional status, limit)
axme.intents_getGet intent details (intent_id)
axme.intents_logShow lifecycle events (intent_id)
axme.intents_cancelCancel intent (intent_id, optional reason)
axme.intents_resumeResume waiting intent (intent_id) — resubmits
axme.intents_retryRetry failed intent (intent_id) — resubmits
axme.intents_watchLifecycle snapshot (intent_id)
axme.intents_cleanupCancel zombie intents (older_than_hours, dry_run)
axme.intents_traceConcise timeline — intent summary + events

Tasks (8)

ToolDescription
axme.tasks_listList pending tasks assigned to current user
axme.tasks_getGet task details (intent_id)
axme.tasks_approveApprove task (intent_id, optional comment)
axme.tasks_rejectReject task (intent_id, optional comment)
axme.tasks_confirmConfirm task (intent_id)
axme.tasks_assignAssign task (intent_id, optional data)
axme.tasks_completeComplete manual task (intent_id)
axme.tasks_submitSubmit arbitrary outcome (intent_id, outcome)

Quota (2)

ToolDescription
axme.quota_showShow quota limits and usage (org_id, workspace_id)
axme.quota_upgrade_requestRequest tier upgrade (requester_actor_id, company_name, justification)

Scenarios (4)

ToolDescription
axme.scenarios_list_templatesList available macro templates
axme.scenarios_validateValidate scenario bundle (bundle)
axme.scenarios_applyApply scenario — creates agents, submits intent (bundle)
axme.scenarios_createGuided builder — returns macros and instructions

Sessions (2)

ToolDescription
axme.session_listList account sessions
axme.session_revokeRevoke session (session_id)

Response Format

Success

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "ok": true,
    "tool": "axme.intents_send",
    "data": { "intent_id": "..." },
    "message": "Intent submitted",
    "content": [{"type": "text", "text": "axme.intents_send: Intent submitted"}],
    "structuredContent": { ... }
  }
}

Error

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32602,
    "message": "gateway error 404: intent not found",
    "data": {"ok": false, "error": "gateway_error", "message": "..."}
  }
}

Error Codes

CodeMeaning
-32700Parse error (invalid JSON)
-32600Invalid request
-32601Method not found
-32602Invalid params / tool error
-32001Authentication required (401)
-32004Rate limit exceeded (429)

Quick Start

# 1. Get a bearer token
curl -X POST https://api.cloud.axme.ai/v1/auth/login-intent \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'
# → {"intent_id": "...", "delivery": "email"}

# 2. Verify OTP
curl -X POST https://api.cloud.axme.ai/v1/auth/login-intent/{id}/verify \
  -H "Content-Type: application/json" \
  -d '{"code":"123456"}'
# → {"account_session_token": "eyJ..."}

# 3. Call MCP tools
curl -X POST https://mcp.cloud.axme.ai/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eyJ..." \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"axme.whoami","arguments":{}}}'