Skip to content

API Reference

KCP Harness exposes three interfaces:

  1. CLI — command-line interface for setup, validation, and serving
  2. MCP Tools — governance tools available to agents via the MCP protocol
  3. Programmatic API — TypeScript/JavaScript API for embedding

Quick Reference

CLI Commands

CommandDescription
kcp-harness serveStart the MCP compliance proxy
kcp-harness initCreate a harness.yaml template
kcp-harness checkValidate configuration
kcp-harness integrate <agent>Generate agent integration files

Full CLI reference →

MCP Tools

ToolDescription
kcp_planDeterministic load plan (no content)
kcp_loadPlan + load eligible unit content
kcp_trace13-gate decision trace
harness_statusCurrent governance state
harness_sessionSession info
harness_budgetSession spend tracking
harness_temporal_checkPlan drift detection

Full MCP tools reference →

Compliance Artifacts

ArtifactFormatDescription
Audit logJSONLAppend-only event log
Budget ledgerIn-memory + eventsItemized spend tracking
Temporal driftEventsPlan validity over time

Released under the Apache 2.0 License.