IBExWalletAPI
Integration

MCP Server Integration

MCP Server Integration

The Model Context Protocol (MCP) connects AI assistants (Cursor, Claude, ChatGPT, Windsurf) to three documentation layers:

LayerMCP toolContent
Onboardingget_integration_guideYour tenant step-by-step guide (essential APIs, copy-paste curls, IBEX test proofs)
JWT referenceget_api_reference type=jwtOfficial IBEXFIAPI_ENDPOINTS_v1.2.md — personalized (your rpId, Origin, API host, x-api-key in examples)
Admin referenceget_api_reference type=adminOfficial IBEXFIAPI_ENDPOINTS_ADMIN_v1.2.md (tenant x-api-key) when enabled — personalized

Authentication (required):

FieldValue
Loginyour tenant rpId
Passwordyour domain x-api-key

Changelog (all tenants): subscribe to https://passkeys-productionv2.ibex.fi/docs/changelog.rss (Slack/email RSS bridge).

Language: All MCP tool responses (get_integration_guide prose is already English; analyze_integration_issue, errors, and analyst summaries) are English only — even if your team asks questions in French.


URL: https://passkeys-productionv2.ibex.fi/mcp/sse (Streamable HTTP — POST, same host path Cursor probes)

Canonical alternate: https://passkeys-productionv2.ibex.fi/mcp

Use HTTP Basic Auth: username = rpId, password = x-api-key.

Cursor / Claude (Streamable HTTP)

{
  "mcpServers": {
    "ibex-api-docs": {
      "url": "https://passkeys-testnet.ibex.fi/mcp/sse",
      "headers": {
        "Authorization": "Basic BASE64(rpId:apiKey)"
      }
    }
  }
}

Claude Code CLI:

claude mcp add --transport http ibex-api-docs https://passkeys-testnet.ibex.fi/mcp/sse \
  --header "Authorization: Basic BASE64(rpId:apiKey)"

Replace passkeys-testnet.ibex.fi with your environment host (passkeys-prat1.ibex.fi, passkeys-productionv2.ibex.fi, …).

Legacy SSE (still supported)

URL: https://passkeys-productionv2.ibex.fi/mcp/sse with GET (long-lived SSE stream + POST /mcp/message).

Use when your IDE only supports --transport sse.

ChatGPT (custom GPT + MCP)

  1. Explore GPTs → Create → Configure → Add action → MCP
  2. URL: https://passkeys-productionv2.ibex.fi/mcp/sse (Streamable HTTP) or legacy SSE GET if required by the client
  3. Authentication: Basic — username = your rpId, password = your x-api-key

Alternative — public OpenAPI index (no tenant onboarding)

For generic OpenAPI exploration only (no personalized onboarding), you can still use:

npx -y @chr33s/mcpdoc https://passkeys-productionv2.ibex.fi/docs/llms.txt

This does not include tenant onboarding guides or injected credentials.


MCP tools reference

ToolDescription
get_integration_guideStart here — tenant onboarding with your rpId/apiKey in curl examples
list_my_endpointsEssential routes for your integration + available doc layers
get_changelogRecent client API changelog entries (limit optional)
get_api_referenceOfficial JWT or ADMIN markdown — personalized for your tenant (type, section optional)
list_doc_sourcesIndex of available layers for your tenant
fetch_docsFetch allowed public URLs (openapi.json, llms.txt, …)
open_integration_ticketOpen a support ticket with an integrator goal (expected vs actual behaviour)
get_integration_ticketRead ticket status, attached evidence ids, last analysis, and expert response when published
list_integration_logsPersisted tenant error logs (≥ 400, redacted)
get_integration_logOne log entry by UUID
submit_test_evidenceAttach curl/response proof — use with ticketId while collecting evidence
analyze_integration_issueAI-assisted analysis on a ticketId, error logId, or raw evidence

Tools available per tenant depend on doc layer flags in your MCP settings (onboarding / jwt / admin).


Workflow for integrators

  1. Connect MCP with rpId + x-api-key.
  2. Call get_integration_guide and implement step-by-step.
  3. Deep-dive a route → get_api_reference with section=GET /v1.2/....
  4. Watch /docs/changelog.rss for API updates after IBEX deploys.
  5. Debug integration issues → use the ticket workflow below (preferred) or the legacy log workflow.

Your tenant-specific onboarding guide (e.g. IBEx Wallet on your registered rpId) is provisioned by IBEX ops in the integration registry — contact IBEX if 403 No integration guide registered for rpId.


Integration support ticket workflow (preferred for debugging)

Use this when you get HTTP 200 responses that are still wrong (business-logic mismatch), or when several API calls must be read together.

StepToolPurpose
1open_integration_ticketOpen a case; state the goal in English
2submit_test_evidence × NAttach each curl/response proof to the ticket (analyze: false)
3analyze_integration_issueRun AI analysis on the whole ticket (goal + all evidence)
4IBEX expert replyWhen IBEX_BUG_SUSPECTED, poll get_integration_ticket until hasExpertResponse is true

Step 1 — Open a ticket

{
  "goal": "After KY state 5, POST banking/scenario creates 2 IBANs but GET /v1.2/users/me/ibans returns count 0 for the same user.",
  "externalUserId": "273d99a5-9e66-4db0-941c-3bb292902062"
}

Save the returned id as ticketId for all following steps.

Step 2 — Attach evidence (repeat)

Always pass ticketId. Use analyze: false while collecting proofs (default when ticketId is set).

{
  "ticketId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "method": "POST",
  "endpoint": "/api/admin/devtools/banking/scenario",
  "responseCode": 200,
  "externalUserId": "273d99a5-9e66-4db0-941c-3bb292902062",
  "requestBody": { "ky": { "newStateId": 5, "journeyId": 113 }, "ibans": { "count": 2, "linkWallets": true } },
  "responseBody": { "success": true, "data": { "ibans": [ { "iban": "FR76…", "status": "active" }, { "iban": "FR76…", "status": "active" } ] } },
  "notes": "DevTools banking scenario — 2 IBANs created",
  "analyze": false
}
{
  "ticketId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "method": "GET",
  "endpoint": "/v1.2/users/me/ibans",
  "responseCode": 200,
  "externalUserId": "273d99a5-9e66-4db0-941c-3bb292902062",
  "responseBody": { "count": 0, "ibans": [] },
  "notes": "JWT user listing — empty despite scenario above",
  "analyze": false
}

Optional: call get_integration_ticket to list attached evidence ids before analyzing.

Step 3 — Analyze the ticket

{
  "ticketId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

The analyst loads the ticket goal and all attached evidence. Example classification: IBEX_BUG_SUSPECTED, NEEDS_MORE_INFO, or INTEGRATOR_ISSUE.

When classification is IBEX_BUG_SUSPECTED, the ticket is queued for IBEX expert review (pendingExpert: true).

Step 4 — Poll for IBEX expert response

After IBEX_BUG_SUSPECTED, poll the same ticketId with get_integration_ticket (or GET /v1.2/domain/integration/tickets/:id).

While awaiting expert: pendingExpert: true, hasExpertResponse: false.

After IBEX publishes a response: status: "answered", hasExpertResponse: true, and expertResponse.bodyMarkdown contains the answer.

Legacy workflow (no ticket)

Still supported for quick checks:

  • list_integration_logs → logId → analyze_integration_issue
  • submit_test_evidence without ticketId (auto-analyze; may correlate by externalUserId within 48 h)

Prefer the ticket workflow when you explain a multi-step goal or submit several HTTP 200 proofs.

AI agent checklist

  1. Always write ticket goal and tool responses in English.
  2. Open one ticket per integration issue — do not reuse ticket ids across unrelated bugs.
  3. Attach every relevant call (request + response bodies, redacted secrets).
  4. Run analyze_integration_issue(ticketId) only after all evidence is attached.
  5. If NEEDS_MORE_INFO, attach missing proofs and analyze again (same ticketId).
  6. If IBEX_BUG_SUSPECTED, poll get_integration_ticket(ticketId) until hasExpertResponse is true.