Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:1mcp app Agent foundationRun

From Leeroopedia
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

Related Pages

Implements Principle

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment