Implementation:1mcp app Agent foundationRun
| Knowledge Sources | |
|---|---|
| Domains | Testing, MCP_Protocol |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete conformance matrix runner that orchestrates the full protocol regression suite including gateway startup, official client bridging, retained revision probes, and transport profile proofs.
Description
The foundationRun module provides the top-level orchestration for the conformance foundation. It starts the official gateway, runs the matrix of era combinations, bridges the official MCP conformance client to the gateway, runs retained revision probes for backward compatibility, and collects results. It coordinates loopback port allocation, evidence output directory management, and reference fixture loading.
Usage
Import this module when you need to:
- Run the full conformance foundation suite
- Start the official gateway for testing
- Bridge the official MCP conformance client to the gateway
- Run retained revision probes for backward compatibility
Code Reference
Source Location
- Repository: 1MCP Agent
- File: test/conformance/foundation/foundationRun.ts (L118-402)
Signature
export async function startOfficialGateway(
options: { root: string; outputDirectory: string },
): Promise<void>;
export async function runMatrix(root: string): Promise<void>;
export async function runRetainedRevisionProbes(
root: string,
outputDirectory: string,
): Promise<void>;
Import
import { startOfficialGateway, runMatrix } from './foundationRun.js';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| root | string | Yes | Repository root path |
| outputDirectory | string | Yes | Evidence output directory |
Outputs
| Name | Type | Description |
|---|---|---|
| Matrix results | evidence files | Per-cell pass/fail with sanitized wire evidence |
Usage Examples
Run Full Conformance Suite
import { runMatrix } from './foundationRun.js';
await runMatrix('/path/to/repo');
// Evidence written to output directory