Quick Start
- Set up the MCP server in Claude Code or Cursor.
- Complete sign-in when your client prompts you (first tool use).
- Ask your assistant to call
getContext, thenagentListfor your organization. - Use
workflowGeton a version ID fromworkflowsListto read the graph;workflowCreateandworkflowPublishto ship changes. - Run
agentExecutePostto test, andexecutionGet/executionActivitiesGetto debug.
What is MCP?
The Model Context Protocol (MCP) is an open standard that connects AI assistants to external tools and data sources. When you add the Asteroid MCP server to your editor, your assistant gains access to Asteroid’s API — it can start executions, read results, update workflows, and more.What You Can Do
Inspect Executions
View execution status, results, and activity logs without leaving your editor.
Manage Workflows
Fetch, modify, and publish agent workflow versions through natural language commands.
Start Executions
Kick off agent runs with custom inputs directly from your terminal.
Debug Failures
Investigate failed executions by examining outcomes, reasoning, and activity traces.
Available Tools
Tool names below are the identifiers MCP clients expose to the model when connected tohttps://mcp.asteroid.ai/mcp.
Context and docs
Agents and profiles
Executions
Workflows (agent versions)
Files and validation
Agent files belong to a workflow version rather than to the agent as a whole, so different versions can carry different files. Every write below derives a new version and returns its id asworkflowId — publish or execute that version for the change to take effect.
Execution context files and staged temp files take multipart bodies that
tools/list cannot represent, so those uploads are not available over MCP — use the TypeScript or Python SDK instead.Build an agent over MCP
The full loop is:agentCreate → agentExecutePost → poll executionGet → executionActivitiesGet to debug. agentCreate publishes the initial workflow as version 1, so no workflowPublish call is needed before the first execution — publishing only comes in when you create later versions with workflowCreate.
Worked example: agentCreate
A minimal runnable agent is four nodes: a start node, one iris (agent) node, and two output nodes for the success and failure ends. Generate a fresh UUID for every node and transition.
- The
startnode’s single outgoing transition must be typeoutcome_success, and must point at a non-output node. - Agent (
iris) nodes route withirisorselectortransitions — neveroutcome_success— and every agent node needs a failure path to an output node. - The final result shape goes in the output node’s
schema; aschemaon a transition instead defines the data handed to the next node. See Output Node.
schemaValidate and the spec itself with workflowSpecValidate. Pass it the same workflow you are about to send: it runs the validator agentCreate runs, so what passes there is accepted here, and it returns every issue at once rather than one per round trip. Each issue carries a severity (error blocks creation, warning is advisory) and a path to the offending field.
For a new version of an agent that already exists, workflowValidate is the same check against that agent.
Execute and poll
Start a run withagentExecutePost (pass agentId and any inputs your instructions reference), then poll executionGet until status is terminal (completed, failed, cancelled). Simple single-node executions typically finish in about 30-60 seconds; multi-node workflows take several minutes. Poll every 5-10 seconds — see Execution Statuses. On failure, read executionActivitiesGet for the step-by-step activity log.
The MCP server authenticates with OAuth (browser sign-in to your Asteroid account). Your client receives a bearer token valid for the API; permissions match the platform and REST API for your user. For HTTP access to Asteroid without MCP, use an API key and the API tab — that is separate from MCP auth.

