Method API and MCP
The dashboard, CLI, and MCP use the same API handlers for saved Methods, versions, and run records. The API checks the signed-in organization, validates documents, and rejects conflicting writes.Saved files and runs
Requests require a Method access token or a valid dashboard session. MCP forwards the caller’s OAuth token. Keep tokens out of Method files and logs.
New Methods use
format: method/3.4. Saved method/3.1 to method/3.3 documents remain accepted. A saved version has not necessarily passed a run. Each run names the exact saved version it used.
Production runs
Apps start and read production runs with a service key (Authorization: Bearer mk_live_…): POST /v1/runs, GET /v1/runs/:id, POST /v1/runs/:id/answer, and POST /v1/runs/:id/cancel. Workers use /v1/worker/*. See Production runs.
MCP 7.0
Connect tohttps://mcp.withmethod.ai/mcp with Streamable HTTP and OAuth with PKCE.
Method lookup tools take
method_id. API response fields remain workflow, workflows, and workflow_id. Version 6 changes the response shapes of list_methods, get_method, rename_method, and get_method_source. Update clients that parsed the old summary fields. MCP now preserves API fields instead of replacing them with a build-status summary.
Execution and retries
The remote MCP server does not execute local steps or cancel local processes. Callget_method_run_instructions, then run its prompt with an agent that has a local terminal. This uses Method CLI and the same executor as a dashboard-initiated local run. Use the CLI for helper-file transfers, local tool setup, and run-file uploads. MCP is not a replacement for every dashboard screen or local CLI command.
create_method and save_method_version accept a complete document as YAML/JSON text or an object. They save it through the API; they do not run it. A save is safe to retry: the same content is the same version.
sync_method_run accepts actual executor records. Reuse the run ID and sequence when retrying the same upload. Do not repeat the business steps or invent a successful result to recover from an upload failure. Method CLI handles file transfer and progress upload automatically.
Preserve exact source text when checking sha256. A source hash identifies a file; it does not prove a successful run.