Skip to main content
The Asteroid MCP server lets you manage agents, inspect executions, and update workflows directly from AI-powered coding tools like Claude Code and Cursor. Instead of switching between your editor and the Asteroid platform UI, you can ask your assistant to do it in natural language.

Quick Start

  1. Set up the MCP server in Claude Code or Cursor.
  2. Complete sign-in when your client prompts you (first tool use).
  3. Ask your assistant to call getContext, then agentList for your organization.
  4. Use workflowGet on a version ID from workflowsList to read the graph; workflowCreate and workflowPublish to ship changes.
  5. Run agentExecutePost to test, and executionGet / executionActivitiesGet to debug.
To create an agent from scratch instead of editing an existing one, see Build an agent over MCP. See the Setup guide for detailed installation instructions.

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 to https://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 as workflowId — 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.
Structural rules the API enforces:
  • The start node’s single outgoing transition must be type outcome_success, and must point at a non-output node.
  • Agent (iris) nodes route with iris or selector transitions — never outcome_success — and every agent node needs a failure path to an output node.
  • The final result shape goes in the output node’s schema; a schema on a transition instead defines the data handed to the next node. See Output Node.
These rules correlate a transition with the node it leaves, so no JSON schema can express them and the generated types will not catch them — validation is the only place they surface. Before creating the agent, check any output schema with 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 with agentExecutePost (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.