MACH1_MCP_URL=https://build.aioncx.com/api/mcp and MACH1_API_KEY to a personal scoped ingest key from Build Developers. Keep a separate key for each customer. For a key that grants multiple workspaces, append ?workspace_id=<workspace-id> to the MCP URL.
Install
Use Node.js 22.17 or later. In a new directory:Connect
Save this asclient.ts. It uses the supported protocol, bounded timeouts, and output-schema validation. The key stays in the HTTP authorization header.
client.ts
smoke.ts to check the connection without generating an agent response or submitting a conversation:
smoke.ts
MACH1_MCP_URL and MACH1_API_KEY in your local environment, then run:
Ask an agent about a conversation
Save this asagent.ts. Set MASTRA_MODEL to your enabled provider/model and configure that provider’s API credential in your local environment. Set MACH1_INTERACTION_ID to an admitted conversation.
agent.ts
MACH1_IDEMPOTENCY_KEY before invoking the agent. Reuse the same key and payload after an uncertain result. Keep credentials outside source control.
Contributors with repository access can also run the full schema-check and evaluation harness.
Pass text/turns or an already admitted interaction ID. A local filename alone does not give a remote agent file access; upload or read the file in the application first. MCP submission and results use the same authorized owners as REST. The conversation mach1_* tools include submission, Definition discovery, interaction listing, status, transcript, results and recording. Use the Mach-1 MCP guide for credential boundaries.
Definition discovery returns compact metadata, including the version ID, service, starter marker and output-schema digest. The full schema is available at each output_schema_url; resolve that relative URL against your Mach-1 origin and send the same Bearer key. The REST URL selects the exact published version and rechecks workspace access. This keeps large schemas out of the 64 KiB MCP response while preserving the full schema for applications that need it.
This endpoint performs processing and can incur configured charges. Mintlify’s separate Documentation MCP searches these public docs at the published docs site’s /mcp; it does not submit inputs or charge the Mach-1 ledger.
Forecasting with the same client
A key with forecast permissions also exposesmach1_list_forecast_sources, mach1_submit_forecast, and mach1_get_forecast. The tool inventory follows the key’s current grants. Use forecasting for the request and the agent quickstart for discovery, submission, polling, and pagination.