Orchestration as Code

Your Master Control Program

Orchestrate and automate any workflow, from simple tasks to complex, multi-system processes. Define your operational logic once and run it anywhere with mcp.do.

Join waitlist

mcp.do

import { D0 } from '@d0-dev/sdk';

// Initialize the Master Control Program client
const mcp = new D0('YOUR_API_KEY');

// Define the high-level workflow to execute
const workflowId = 'quarterly-financial-report';

// Provide necessary inputs for the workflow
const inputs = {
  quarter: 'Q3',
  year: 2024,
  distributionList: ['cfo@example.com', 'board@example.com']
};

// Command the MCP to run the workflow
async function runQuarterlyReport() {
  try {
    console.log(`Executing workflow: ${workflowId}...`);
    const result = await mcp.run(workflowId, inputs);
    console.log('Workflow complete. Report dispatched.');
    console.log('Execution ID:', result.executionId);
  } catch (error) {
    console.error('Workflow execution failed:', error);
  }
}

runQuarterlyReport();

Deliver economically valuable work

Frequently Asked Questions

Do Work. With AI.