MCP
Furnace runs a remote Model Context Protocol server at https://api.falcata.io/mcp. It serves the same operations as the REST API: both are built from one registry of API modules, so a tool and its REST route share validation, permission checks, errors and audit. To connect a client step by step, see Connect an agent over MCP.
One MCP tool call: 7 nodes and 7 connections at L2 Containers.
- MCP client (actor)
- POST /mcp (service)
- Dispatcher (service)
- v1 domain tools (service)
- App operation tools (service)
- Platform capability tools (service)
- Same dispatch as REST (service)
- MCP client connects to POST /mcp (sync, HTTPS)
- POST /mcp connects to Dispatcher (sync)
- Dispatcher connects to v1 domain tools (sync, tools/call)
- Dispatcher connects to App operation tools (sync, tools/call)
- Dispatcher connects to Platform capability tools (sync, tools/call)
- App operation tools connects to Same dispatch as REST (sync)
- Platform capability tools connects to Same dispatch as REST (sync)
Endpoint and transport
| Endpoint | https://api.falcata.io/mcp |
| Transport | Streamable HTTP, without a stream: each POST carries one JSON-RPC message and gets one JSON answer. A notification gets 202 with no body. GET and DELETE answer 405. |
| Protocol versions | 2025-11-25 (default), 2025-06-18, 2025-03-26. An unsupported MCP-Protocol-Version header answers 400. |
| Methods | initialize, ping, tools/list, tools/call, resources/list, resources/read, notifications/initialized, notifications/cancelled, and server/discover |
| Server card | https://api.falcata.io/.well-known/mcp/server-card.json: name, description, endpoint, transport and every tool's name and description |
The server also accepts the 2026-07-28 protocol revision, which a client signals with a protocol version in the request's _meta. Those requests must also send matching MCP-Protocol-Version, Mcp-Method and (for tools/call and resources/read) Mcp-Name headers, or they answer 400.
The server advertises the MCP Apps extension (io.modelcontextprotocol/ui). A tool with a widget links to its HTML resource in _meta.ui, and its result carries structuredContent for the widget; the model still sees only the text content. The widget resources are static, contain no user data, and can be listed and read without signing in.
Authentication
initialize, server/discover, ping, the notifications, tools/list, resources/list and resources/read work without a token, so a client can see the tool list before signing in. tools/call needs a bearer token:
Authorization: Bearer <token>
The token is either an OAuth access token the client obtained through OAuth 2.1 with PKCE or a personal access token. A Falcata ID browser session is not accepted here. A request without a usable token answers 401 with { "error": "invalid_token" } and a WWW-Authenticate header whose resource_metadata points at /.well-known/oauth-protected-resource, which is how an MCP client discovers where to sign in.
Each tool is a read, a write, or (for whoami) neither. Before a tool runs, the caller must have read or write API access to match, as on REST; a refusal comes back as a tool result with isError: true. The operation then checks its own permission, and a token's scope can only narrow what its owner may do (Permissions).
Calls draw on the same per-caller request budget as REST. Over budget, /mcp answers 429 with Retry-After and the RateLimit headers described on the REST API page.
Tool names
Tools are named by app or domain slug, so related tools sort together:
| Source | Name | Example |
|---|---|---|
| App operations (the generated v2 surface) | <app>_<operation> | kvark_list_automation_tasks |
| Platform capabilities | The capability name in snake case, dot as underscore, unless its contract gives a toolName | htmlApp.shareByEmail is served as html_app_share |
| Hand-written v1 domain tools | <domain>_*, for example content_*, ledger_* | |
| Cross-cutting | whoami |
When a hand-written v1 tool already owns a name, it keeps it and the generated tool of the same name is skipped until the v1 tool is removed. A v1 tool whose module has a v2 successor says so at the end of its description; prefer the successor.
tools/list marks every read tool with readOnlyHint: true and every write tool with readOnlyHint: false.
Relation to the REST API
Every MCP tool and REST route comes from the same module registry, and each exposed operation appears on both doors:
| Operation | MCP tool | REST route |
|---|---|---|
| App operation | <app>_<operation> | POST /api/v2/<app>/<read|write>/<operation> |
| Platform capability | snake-case name or toolName | POST /api/v2/platform/<read|write|action|page>/<capability> |
The tool's inputSchema is the same JSON Schema as the route's request body, and both dispatch to the same code. The answers differ only in wrapping: REST puts the result under data, while a tool returns it as JSON text in content (and as structuredContent when it is an object). The API reference documents the inputs and outputs.
A contract declares whether REST and MCP serve it; a capability that stays in the UI records why. So a new exposed capability becomes a tool and a route together, and neither surface gets a path the other lacks.
Errors
| Failure | Answer |
|---|---|
| Invalid tool input, or a failure the operation reports to callers | A tool result with isError: true and { "error": ..., "code": ... } as its text |
| API access refused | A tool result with isError: true and { "error": ... } |
tools/call without a token | JSON-RPC error -32001, Authentication required |
Unknown tool, or missing name | JSON-RPC error -32602 |
| Anything unexpected | JSON-RPC error -32603, Tool error: <message>, with the message redacted |
| Unknown method | JSON-RPC error -32601 |
The CLI also runs a local MCP server over stdio with its own smaller tool set; see CLI and Connect an agent.