Automium MCP Server

Status

Drafted from plan interview on April 14, 2026.

Summary

Add an Automium MCP server as the first coding-agent integration layer over the existing local contract/domain surfaces. The MCP server exposes Automium's owned benchmark corpus, journey compilation, run-submission modeling, replay summaries, artifact manifests, and planner comparison reports to coding agents through the Model Context Protocol.

v1 is intentionally local, stdio-only, and contract-safe. It must not claim live browser execution, remote service operation, credential access, or production artifact retrieval. The server adapts current Automium package exports into MCP tools, resources, and prompts so coding agents can understand and use the platform without reading arbitrary repository files.

Product Context

Automium currently proves the QA platform through TypeScript contracts, domain models, route manifests, deterministic owned fixtures, policy checks, replay and artifact metadata, and benchmark-runner logic. It is not yet a deployed production browser service.

The MCP server should therefore make the local contract-level value accessible to coding agents:

  1. Discover supported owned benchmark apps and fixtures.
  2. Draft and validate journeys against the owned corpus.
  3. Compile supported journeys into Automium graph nodes.
  4. Model run submissions without executing a browser.
  5. Inspect replay and artifact schema outputs.
  6. Compare planner backends using deterministic benchmark reports.

Goals

Non-Goals

Primary User

The primary v1 user is a coding agent operating inside this repository. The agent needs structured access to Automium's contracts and benchmark corpus while implementing, debugging, or planning related code.

QA operator workflows are deferred until Automium has real run storage, replay access control, browser execution, and production artifact handling.

Transport

v1 uses stdio transport only.

Rationale:

Remote Streamable HTTP or SSE transport is deferred until production persistence, authentication, artifact access control, and audit logging exist.

Package Boundary

Create a future packages/mcp-server/ package that owns only the MCP boundary:

The package must import and reuse existing Automium modules rather than copying domain logic.

Expected source ownership:

The exact implementation file list may change during planning, but the spec-level boundary is fixed: MCP adapts existing Automium capabilities; it does not become a second control plane.

SDK

Use the official TypeScript MCP SDK for v1.

The server should use the SDK's supported server, stdio transport, tool, resource, and prompt abstractions. If SDK APIs evolve, the implementation should isolate SDK-specific calls inside packages/mcp-server/ so Automium domain packages remain independent of MCP.

Tools

automium_list_apps

Returns the authorized benchmark apps from the owned corpus.

Input:

Output:

Constraints:

automium_list_fixtures

Returns benchmark fixtures, optionally filtered by app ID.

Input:

Output:

Validation:

Constraints:

automium_compile_journey

Validates and compiles a journey using the current control-plane domain functions.

Input:

Output:

Validation:

Constraints:

automium_create_run_submission

Creates a modeled run submission from an already defined journey and planner reference.

Input:

Output:

Validation:

Constraints:

automium_get_replay_summary

Builds a contract-shaped replay summary from caller-provided run metadata.

Input:

Output:

Constraints:

automium_get_artifact_manifest

Builds a contract-shaped artifact manifest from caller-provided entries.

Input:

Output:

Validation:

Constraints:

automium_compare_planners

Creates a benchmark comparison report using the existing benchmark-runner logic.

Input:

Output:

Validation:

Constraints:

Resources

automium://apps

Read-only resource returning the authorized benchmark apps and supported capabilities.

automium://fixtures

Read-only resource returning benchmark fixtures and environment profiles.

automium://contracts/planner-adapter-v1

Read-only resource returning or summarizing the planner adapter contract.

automium://contracts/replay-event-v1

Read-only resource returning or summarizing the replay event contract.

automium://contracts/semantic-snapshot-v1

Read-only resource returning or summarizing the semantic snapshot contract.

Resources must not expose arbitrary file reads. The resource set is fixed in v1.

Prompts

draft_journey

Guides a coding agent to draft a valid Automium journey for a selected app and fixture.

Expected inputs:

Expected guidance:

debug_failed_run

Guides a coding agent through replay and artifact interpretation.

Expected inputs:

Expected guidance:

compare_planner_backends

Guides a coding agent to compare planner backends against the owned corpus.

Expected inputs:

Expected guidance:

Data And Validation Rules

Safety And Security

v1 MCP tools must be local and non-mutating.

Hard boundaries:

The server may read checked-in Automium data through imported package exports or fixed contract resources. It must not expose general-purpose file access.

Error Handling

The MCP boundary should convert domain errors into clear tool errors:

For operations that users might confuse with live execution, responses must explicitly say when the output is modeled and not executed.

Developer Experience

A coding agent should be able to:

  1. Inspect automium://apps.
  2. Inspect automium://fixtures.
  3. Use draft_journey to form a journey.
  4. Call automium_compile_journey.
  5. Call automium_create_run_submission.
  6. Call automium_get_replay_summary.
  7. Call automium_get_artifact_manifest.
  8. Call automium_compare_planners.

The happy path should work without external services, model credentials, browser dependencies, queues, object storage, or a database.

Acceptance Criteria

Deferred Scope

Open Questions For Future Planning