debug-test-harness

Trace x402 integration test requests through client, middleware, and facilitator.

71|22|Updated Apr 6, 2020
One-click install
npx skills add https://github.com/nirholas/agenti --skill debug-test-harness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-test-harness
Source: https://github.com/nirholas/agenti/tree/main/packages/protocols/x402-faremeter/skills/debug-test-harness
Command: npx skills add https://github.com/nirholas/agenti --skill debug-test-harness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug x402 integration test failures by tracing requests through the client, middleware, and facilitator using test-harness interceptors.

Core Features & Use Cases

  • Inspect end-to-end request flows across the MCP stack (client, middleware, facilitator) to locate where a failure originates.
  • Capture and log request/response events, enabling deterministic debugging of HTTP status codes and protocol validation errors.
  • Enable targeted debugging with event collectors, interceptors, and optional capture tools to observe and diagnose issues quickly.

Quick Start

Run the debug test with pnpm tap path/to/debug.test.ts to observe the captured events.

Frequently Asked Questions about debug-test-harness

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace x402 integration test failures through the client-middleware-facilitator chain?

Trace x402 integration test failures by configuring event collectors and interceptor tooling from the test-harness to observe, capture, and inspect requests and responses throughout the client-middleware-facilitator flow.

Why do my x402 integration tests produce unexpected HTTP statuses and protocol validation errors?

Unexpected x402 HTTP statuses and protocol validation errors occur when requests fail across the MCP stack, requiring interceptor tooling to inspect end-to-end request flows and locate where the failure originates.

What's the best way to debug x402 protocol validation errors across the MCP stack?

The best way to debug x402 protocol validation errors is using test-harness interceptors and event collectors to capture and log request and response events, enabling deterministic root-cause analysis of the client-middleware-facilitator chain.

How do I capture and log x402 request and response events for deterministic debugging?

Capture and log x402 request and response events by configuring event collectors and optional capture tools from the test-harness, then run the debug test with pnpm tap to observe the captured events.

Does the x402 test-harness require event collectors to diagnose MCP stack failures?

Yes, diagnosing MCP stack failures requires configuring event collectors and interceptor tooling from the test-harness to observe, capture, and inspect requests and responses throughout the end-to-end x402 request flow.

Can I inspect end-to-end request flows across the MCP stack to locate where an x402 failure originates?

Yes, you can inspect end-to-end request flows across the MCP stack using test-harness interceptors to observe the client, middleware, and facilitator, precisely locating where an x402 failure originates.