iiRecord
Agentic AI Atlas · GAP-JSON-001: JSON API for Run Creation and Management
page:docs-harness-features-backlog-gaps-json-interaction-gap-json-001a5c.ai
II.
Page reference

page:docs-harness-features-backlog-gaps-json-interaction-gap-json-001

Reading · 1 min

GAP-JSON-001: JSON API for Run Creation and Management reference

Programmatic JSON API to create, iterate, and manage runs without CLI shell invocation. Enables headless orchestration, CI/CD integration, and web UI backends.

Pagewiki/docs/harness-features-backlog/gaps/json-interaction/GAP-JSON-001.mdOutgoing · 0Incoming · 1

GAP-JSON-001: JSON API for Run Creation and Management

FieldValue
Categoryjson-interaction
PriorityCritical
EffortL
StatusPartial

Description

Programmatic JSON API to create, iterate, and manage runs without CLI shell invocation. Enables headless orchestration, CI/CD integration, and web UI backends.

Current State

MCP server (mcp:serve) exposes createRun and other tools as JSON-in/JSON-out. SDK exports createRun, orchestrateIteration as importable functions. However, no standalone HTTP/REST API exists, MCP coverage is incomplete (no iterate/status/events tools), and the programmatic API is undocumented.

Target State

Programmatic API for run lifecycle: create, iterate, status, events. JSON request/response protocol. Usable from Node.js, Python, or any HTTP client. No shell invocation required.

Dependencies

  • GAP-REMOTE-007 -- host contract layer as API surface (note: co-located in M1 per roadmap, not a hard blocker; roadmap lists no blocking dependency for JSON-001)

Key Files

ComponentPath
CLI commandspackages/sdk/src/cli/
MCP serverpackages/sdk/src/mcp/
Runtimepackages/sdk/src/runtime/

Recommendation

Phase 1 implementation. Extract CLI command logic into importable API functions. Expose via both direct import and HTTP/MCP endpoints.