MCP and API access
MCP lets a compatible AI client work with Runstead workflows. REST access is available for scripts and other integrations.
Connect a local client
Section titled “Connect a local client”- Open This device → MCP.
- Create an API key with the access level the client needs: read-only, run, or edit.
- Use the endpoint and connection information shown in Runstead. The default
local MCP endpoint is
http://127.0.0.1:19742/mcp. - Configure the client to send the key as a Bearer credential. The client must support custom Bearer credentials; OAuth sign-in is not included.
Keys are device-wide and can reach every project. Ask the client to list
projects first, then pass the selected projectId with project-specific MCP
calls or REST requests. A device with one project can omit the ID; requests
must name a project when several exist.
Work with imported APIs
Section titled “Work with imported APIs”MCP clients with edit access can import an OpenAPI spec, save an API connection, and build workflows from its operations. Clients can inspect the imported request and response schemas to choose inputs and use results in later steps. Running the workflow requires run or edit access and appears in its run history.
The MCP server exposes three tools: read, change, and execute. Call
read with target: "reference" for the usage guide, then use this flow:
- Preview with
change,type: "preview_api", and eitherspec(JSON or YAML text) orurl. Previewing does not save the connection or execute an API operation. - Save with
change,type: "upsert_api", anid, and anapidefinition. Provideapi.spec, or omit it to fetchapi.sourceUrlonce. Setapi.auth.typetonone,bearer,apiKey, orbasic. For authentication, useapi.auth.secretRefto name an existing project secret. Create or rotate secret values in the local GUI. - Discover with
read:target: "apis"lists connections;target: "api_operations"searches an API byidand optionalquery;target: "api_operation"withidandoperationIdreturns its inputs, responses, and a starting workflow step. - Add
api.requeststeps to a workflow, then validate, save, and run through the usual workflow tools. The returned step is a template: review examples and replace placeholders before running it.
Updating with upsert_api replaces the entire connection. First read
target: "api" with its id and retain the fields you still need.
change, type: "delete_api", with the id removes a connection only when
no saved workflow uses it. See Import an API for supported specs,
authentication, exports, and update behavior.
API imports and connection management are available through the GUI and MCP. The public REST API exposes workflow operations, including running workflows that use saved API connections; it does not expose API catalog management or secret administration.
Permissions
Section titled “Permissions”Start with the least access that supports the task. Read access inspects workflows and history. Run access can trigger work. Edit access can change workflow definitions, including commands that execute as the user running Runstead. Revoke a key in Runstead when it is no longer needed.
Remote clients
Section titled “Remote clients”The listener defaults to loopback. A remote client needs a reachable HTTPS endpoint and a secure network configuration that you operate. Keep the administrative interface on localhost. Do not publish an unprotected HTTP listener to the Internet.
Store client credentials securely and remove them from screenshots or issue reports. Contact support if a client’s authentication options are unclear.