Skip to main content
MCP Documentation

SDK & CLI Quickstart

Install the SDK, interact with the orchestrator programmatically, and manage approvals using the command-line interface.

Install packages

Add the SDK to your project or use the CLI for quick experiments.

  • `npm install @mcp/sdk` to integrate with TypeScript projects.
  • `pnpm dlx mcp init` scaffolds a TypeScript tool with schemas pre-filled.
  • `mcp --help` lists CLI commands for tasks, approvals, and diagnostics.

Create and monitor tasks

Programmatically enqueue goals, subscribe to updates, and capture artifacts.

  • `mcp tasks create --goal 'Summarize repo README'` enqueues a constrained run.
  • SDK helpers expose strongly-typed orchestrator responses with plan DAG metadata.
  • Use webhooks or SSE to stream task status into your dashboards.

Handle approvals and policies

Inspect pending approvals and adjust policy profiles per environment.

  • `mcp approvals list` surfaces pending steps with context for reviewers.
  • `mcp config profiles` manages constrained vs. autonomous policy defaults.
  • SDK exposes helpers for attesting evaluation results before approvals auto-advance.