Skip to content

Overview

Inbound Model Context Protocol (MCP) server at /mcp, using the MCP Streamable HTTP transport. Clients call Mindflow tools with a bearer token.

Authentication

Send Authorization: Bearer <token>. Two kinds of token work:

  • A service MCP bearer JWT issued for MCP.
  • A user access token from OAuth 2.1 authorization code + PKCE (POST /oauth/token), after the user approved environments and flows. That access token is opaque. It cannot exceed the approval. The token must be issued for this /mcp URL (RFC 8707 resource); a sign-in that starts on this host gets one automatically. Tokens issued for the Platform REST API are refused here.

Tool calls run as that caller. When a tool needs a stored credential, the credential already saved for that caller is used. This route does not accept raw secrets.

Requests

POST /mcp sends one JSON-RPC 2.0 message (tools/list, tools/call, and the other MCP methods) and gets one JSON response. The endpoint keeps no sessions and opens no streams. It serves MCP revision 2026-07-28 (no initialize; each request carries its own protocol version and client capabilities) and the 2025 revisions (initialize first) on the same URL.

GET /mcp shows a sign-in help page to a browser and otherwise returns 405. DELETE /mcp returns 405. OPTIONS /mcp is the browser CORS preflight and returns 204.

Audit

Tool calls are written to audit logs with category mcp. invocation_completed is a call that succeeded. invocation_failed is a call that returned an error. Read them from GET /audit-logs?category=mcp.

Information

Bearer token for API authentication. The token must be provided in the Authorization header as ‘Bearer ’.

Security scheme type: http