Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

docs(matrix): the custom-harness judge reads omp's MCP dispatch; the dsh columns on 0.1.2rc1 (#138)

github-actions[bot]2e7e5dc9a524
diff --git a/docs/harness-verification.md b/docs/harness-verification.md
index ba3dd481..fa59a17e 100644
--- a/docs/harness-verification.md
+++ b/docs/harness-verification.md
@@ -70,15 +70,26 @@ A row passes only if all five hold, each read from what the server stored:
| The bundle reached the agent | the answer carries a token that exists ONLY inside the script |
| The script actually ran | the file the script writes is among the turn's produced files |
| The tool policy took effect | no disabled tool appears among the turn's tool calls |
+| The MCP server was stored, and called | it comes back on a read, and a second turn's tool calls name it. A call is named by its tool name, except omp, which dispatches MCP as a `write` to `xd://mcp__<server>_<tool>`: there the call's arguments name it |
The token is generated per run and never appears in `SKILL.md` or the prompt, so an answer carrying
it came from the bundle rather than from the model's imagination, and the written file separates a
script that ran from one that was merely read.
-Not yet covered: an MCP server as a harness tool. A self-contained instance hosts only the database
-and media servers, one needing a database and the other costing real money per call, so a fair test
-needs a reachable MCP endpoint this suite does not yet stand up. The gap is named here rather than
-papered over.
+A harness's other kind of tool is an MCP server, and the same harness declares one. A self-contained
+instance hosts only the database and media servers, one needing a database and the other costing
+real money per call, so this half points at a public MCP server that needs no key and no account,
+and a second turn in the same session must call it.
+
+It is judged on the CALL, not on the answer: a public server's prose is not ours to pin, but a tool
+call is a fact in the turn record. Backends name those calls differently, some recording the server
+and tool (`deepwiki.read_wiki_structure`) and some only that an MCP tool was used (`mcp`), and since
+the harness declares exactly one server either shape identifies it.
+
+The third party is a dependency, so it is treated as one. The server is probed once before the run;
+if it is unreachable the MCP half is skipped and the row says so, because a public service being
+down is not evidence about this product. `MCP_URL=off` skips it outright, for an instance with no
+egress, and any other URL overrides the default.
## Rules for the run itself
diff --git a/docs/support-matrix-notes.md b/docs/support-matrix-notes.md
index 93ea0555..1bbbef63 100644
--- a/docs/support-matrix-notes.md
+++ b/docs/support-matrix-notes.md
@@ -193,3 +193,16 @@ process resumed a session and recalled its codeword, and a bash call carried its
The sdk profile also offers more tools than rc7 did (glob, grep, str_replace_editor, web_search,
web_fetch, skill, subagent_fork, workflow); the catalog lists them. Every dsh column before this date
was judged on rc7.
+
+### dsh columns on 0.15.6-rc.3 (2026-09-08)
+
+The full dsh column on the 0.1.2rc1 runtime with the final composition (no sandboxing executor):
+Vercel 189/189 (two one-off misses passed on retest), TokenRouter 169/169, Anthropic 40/40, OpenAI 44/44,
+Azure OpenAI E2 44/44, Google 55/55. OpenRouter is a partial: the shared account ran dry that morning, so only
+the first cheap pairs were measured (deepseek-v4-pro, deepseek-v4-flash, gpt-5.6-sol, gpt-5.6-terra, all five
+scenarios) and gpt-6-astra was refused 402 before anything ran; the column is not a finding and reruns after a
+top-up. Two earlier candidates on the same runtime were rejected by their own columns: rc.1's profile sandbox
+refused every bash command on the container (no bubblewrap, no Landlock), and rc.2's still-mounted sandboxing
+executor advertised `sandbox_permissions` and `justification` on every file tool, which GPT models filled on
+every write and the runtime then refused (five artifact misses on the Vercel column). The custom-harness
+dimension on the same candidate: ten of ten bases, MCP called on each.
diff --git a/docs/support-matrix.md b/docs/support-matrix.md
index 1bb2bfad..586a5456 100644
--- a/docs/support-matrix.md
+++ b/docs/support-matrix.md
@@ -183,6 +183,171 @@ Scenarios: first turn, follow-up in the same session, switch model mid-session,
55 pairs, 267 of 271 scenario runs passed.
+## Provider: dsh-anthropic
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | claude-fable-5 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-fable-5-1 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-haiku-4.5 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-opus-4.7 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-opus-4.8 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-opus-5 | pass | pass | pass (claude-fable-5) | pass | pass | Anthropic | |
+| dsh | claude-sonnet-4.6 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+| dsh | claude-sonnet-5 | pass | pass | pass (claude-opus-5) | pass | pass | Anthropic | |
+
+8 pairs, 40 of 40 scenario runs passed.
+
+## Provider: dsh-azure-e2
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | gpt-5.2 | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.3-codex | pass | pass | n/a | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.4 | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.4-mini | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.5 | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.6-luna | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.6-sol | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-5.6-terra | pass | pass | pass (gpt-6-astra) | pass | pass | Azure OpenAI E2 | |
+| dsh | gpt-6-astra | pass | pass | pass (gpt-5.6-sol) | pass | pass | Azure OpenAI E2 | |
+
+9 pairs, 44 of 44 scenario runs passed.
+
+## Provider: dsh-google
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | gemini-2.5-flash | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-2.5-flash-lite | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-2.5-pro | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3-flash-preview | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.1-flash-lite | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.1-pro-preview | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.5-flash | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.5-flash-lite | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.6-flash | pass | pass | pass (gemini-3.8-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.7-flash | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+| dsh | gemini-3.8-flash | pass | pass | pass (gemini-3.6-flash) | pass | pass | Google AI Studio | |
+
+11 pairs, 55 of 55 scenario runs passed.
+
+## Provider: dsh-openai
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | gpt-5.2 | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.3-codex | pass | pass | n/a | pass | pass | OpenAI | |
+| dsh | gpt-5.4 | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.4-mini | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.5 | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.6-luna | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.6-sol | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-5.6-terra | pass | pass | pass (gpt-6-astra) | pass | pass | OpenAI | |
+| dsh | gpt-6-astra | pass | pass | pass (gpt-5.6-sol) | pass | pass | OpenAI | |
+
+9 pairs, 44 of 44 scenario runs passed.
+
+## Provider: dsh-openrouter
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | deepseek-v4-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | OpenRouter | |
+| dsh | deepseek-v4-pro | pass | pass | pass (deepseek-v4-flash) | pass | pass | OpenRouter | |
+| dsh | gpt-5.5 | FAIL | n/a | n/a | n/a | n/a | OpenRouter | first: [{"connection": "integration:OpenRouter", "status": "failed", "error": "OpenAI API error (402): {\"message\":\"This request requires more cr |
+| dsh | gpt-5.6-luna | pass | pass | pass (deepseek-v4-pro) | pass | pass | OpenRouter | |
+| dsh | gpt-5.6-sol | pass | pass | pass (deepseek-v4-pro) | pass | pass | OpenRouter | |
+| dsh | gpt-5.6-terra | pass | pass | pass (deepseek-v4-pro) | pass | pass | OpenRouter | |
+| dsh | gpt-6-astra | FAIL | n/a | n/a | n/a | n/a | OpenRouter | first: [{"connection": "integration:OpenRouter", "status": "failed", "error": "OpenAI API error (402): {\"message\":\"This request requires more cr |
+
+7 pairs, 25 of 27 scenario runs passed.
+
+## Provider: dsh-tokenrouter
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | claude-fable-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-fable-5-1 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-haiku-4.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-opus-4.7 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-opus-4.8 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-opus-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-sonnet-4.6 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | claude-sonnet-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | deepseek-v4-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | deepseek-v4-pro | pass | pass | pass (deepseek-v4-flash) | pass | pass | My TokenRouter | |
+| dsh | gemini-3-flash-preview | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.1-pro-preview | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.5-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.5-flash-lite | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.6-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.7-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gemini-3.8-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | glm-5.3 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | glm-5.3-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.2 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.3-codex | pass | pass | n/a | pass | pass | My TokenRouter | |
+| dsh | gpt-5.4 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.4-mini | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.6-luna | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.6-sol | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-5.6-terra | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | gpt-6-astra | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | kimi-k2.7-code | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | kimi-k3 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | mistral-medium-3.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | qwen3.7-max | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | qwen3.8-max | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+| dsh | step-3.7-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | My TokenRouter | |
+
+34 pairs, 169 of 169 scenario runs passed.
+
+## Provider: dsh-vercel
+
+| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
+|---|---|---|---|---|---|---|---|---|
+| dsh | claude-fable-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-fable-5-1 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-haiku-4.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-opus-4.7 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-opus-4.8 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-opus-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-sonnet-4.6 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | claude-sonnet-5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | deepseek-v4-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | deepseek-v4-pro | pass | pass | pass (deepseek-v4-flash) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-2.5-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-2.5-flash-lite | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-2.5-pro | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3-flash-preview | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.1-flash-lite | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.1-pro-preview | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.5-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.5-flash-lite | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.6-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.7-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gemini-3.8-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | glm-5.3 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | glm-5.3-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.2 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.3-codex | pass | pass | n/a | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.4 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.4-mini | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.6-luna | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.6-sol | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-5.6-terra | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | gpt-6-astra | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | kimi-k2.7-code | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | kimi-k3 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | mistral-medium-3.5 | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | qwen3.7-max | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | qwen3.8-max | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+| dsh | step-3.7-flash | pass | pass | pass (deepseek-v4-pro) | pass | pass | Vercel AI Gateway | |
+
+38 pairs, 189 of 189 scenario runs passed.
+
## Provider: gemini-cli
| Harness | Model | First | Follow-up | Switch | Artifact | Recycle | Served by | Notes |
diff --git a/scripts/support-matrix/custom-harness.mjs b/scripts/support-matrix/custom-harness.mjs
index 6292084e..f6a5d316 100644
--- a/scripts/support-matrix/custom-harness.mjs
+++ b/scripts/support-matrix/custom-harness.mjs
@@ -14,8 +14,29 @@ import { chromium } from 'playwright';
import crypto from 'node:crypto';
const BASE = process.env.BASE;
-const BASES = (process.env.BASES || 'codex,claude-code,hermes,pi,dsh,opencode,omp').split(',');
+const BASES = (process.env.BASES || 'codex,claude-code,hermes,pi,dsh,opencode,qwen,gemini,cline,omp').split(','); // every built-in harness, all ten
const RESULTS = process.env.RESULTS || 'results-custom.json';
+// A harness's other kind of tool is an MCP server. A self-contained instance hosts only the
+// database and media servers, one needing a database and the other costing real money per call, so
+// this half uses a public one: no key, no account, stable tool names. MCP_URL=off skips it (an
+// instance with no egress is not a failing harness), and any other URL overrides it.
+const MCP_URL = process.env.MCP_URL || 'https://mcp.deepwiki.com/mcp';
+const MCP_NAME = process.env.MCP_NAME || 'deepwiki';
+// What a call to it looks like in the record. Backends name MCP calls differently: some record the
+// server and tool ("deepwiki.read_wiki_structure"), others only that an MCP tool was used ("mcp").
+// The harness declares exactly ONE server, so either shape identifies it.
+// What a tool call is named for the judge. omp dispatches MCP tools through its virtual
+// filesystem: the model `write`s JSON to xd://mcp__<server>_<tool> and the result comes back as
+// the write's result (measured 2026-09-08 on omp 18.1.13: two writes to
+// xd://mcp__deepwiki_read_wiki_structure answered the wiki structure). A judge that reads only
+// the name sees `write` and calls a served MCP turn a miss, so the call's arguments are read too.
+const toolLabel = (t) => {
+ const name = String((t && t.name) || '');
+ const args = typeof (t && t.arguments) === 'string' ? t.arguments : JSON.stringify((t && t.arguments) || '');
+ const xd = /xd:\/\/(mcp__[A-Za-z0-9_]+)/.exec(args || '');
+ return name === 'write' && xd ? xd[0] : name;
+};
+const MCP_TOOL = new RegExp(`(^|[^a-z])mcp([^a-z]|$)|${MCP_NAME}|read_wiki_structure|read_wiki_contents|ask_question`, 'i');
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const TERMINAL = new Set(['done', 'completed', 'failed', 'incomplete', 'cancelled']);
const log = (s) => console.log(`${new Date().toISOString()} ${s}`);
@@ -71,6 +92,21 @@ try {
}
await sleep(1500);
+ // Probe the public server once. If it is down, its rows are skipped and say so: a third party
+ // being unreachable is not evidence about this product.
+ let mcpUp = false;
+ if (MCP_URL !== 'off') {
+ const probe = await page.evaluate(async (u) => {
+ try {
+ const r = await fetch(u, { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json, text/event-stream' },
+ body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'initialize', params: { protocolVersion: '2025-06-18', capabilities: {}, clientInfo: { name: 'matrix', version: '1' } } }) });
+ return { ok: r.ok, status: r.status };
+ } catch (e) { return { ok: false, status: String(e).slice(0, 80) }; }
+ }, MCP_URL).catch(() => ({ ok: false, status: 'unreachable' }));
+ mcpUp = !!probe.ok;
+ log(`MCP ${MCP_URL} reachable=${mcpUp} (${probe.status})`);
+ }
+
for (const base of BASES) {
const rec = { base, at: new Date().toISOString() };
let hid = null;
@@ -84,6 +120,7 @@ try {
system_prompt: 'You follow your skills exactly.',
skills: [SKILL('matrix-stamp')],
disabled_tools: ['WebSearch'],
+ mcp_servers: MCP_URL === 'off' ? [] : [{ name: MCP_NAME, url: MCP_URL, transport: 'http' }],
}),
});
rec.created = created.status;
@@ -95,6 +132,8 @@ try {
const h = back.json || {};
rec.skill_stored = ((h.skills || []).some((s) => (s.name || s.id) === 'matrix-stamp'));
rec.tool_disabled_stored = (h.disabledTools || h.disabled_tools || []).includes('WebSearch');
+ rec.mcp_stored = MCP_URL === 'off' ? null
+ : (h.mcpServers || h.mcp_servers || []).some((m) => String(m.name || '') === MCP_NAME);
const t0 = Date.now();
const turn = await api('/api/harness/v1/responses', {
@@ -126,7 +165,7 @@ try {
rec.status = last && last.status;
const answer = String((last && last.assistant) || '');
const files = ((last && last.files) || []).map((f) => f.filename || f.name || '');
- const tools = ((last && last.tools) || []).map((t) => String(t.name || ''));
+ const tools = ((last && last.tools) || []).map(toolLabel);
rec.files = files; rec.tools = tools;
// a failed turn has to say why, or the row teaches nothing
rec.error = String((last && (last.error || last.incomplete_reason)) || '').slice(0, 300);
@@ -134,7 +173,36 @@ try {
rec.skill_reached = answer.includes(token); // the bundle got to the agent
rec.script_ran = files.some((f) => f.includes('stamp.txt')); // its script actually executed
rec.disabled_tool_unused = !tools.some((t) => /websearch/i.test(t));
- rec.ok = !!(rec.skill_stored && rec.tool_disabled_stored && rec.skill_reached && rec.script_ran && rec.disabled_tool_unused);
+ // The MCP half, in the same harness and the same session: a second turn that can only be
+ // answered by calling the declared server. Judged on the CALL, not on what it returned: a
+ // public server's prose is not ours to pin, but a tool call is a fact in the record.
+ if (MCP_URL !== 'off' && mcpUp && rec.skill_reached) {
+ const m0 = Date.now();
+ await api('/api/harness/v1/responses', {
+ method: 'POST', headers: { 'content-type': 'application/json' },
+ body: JSON.stringify({ input: `Use your ${MCP_NAME} tool to read the wiki structure of the repository modelcontextprotocol/servers, then reply with one topic it lists. Use the tool; do not answer from memory.`,
+ stream: false, store: true, metadata: { harness_id: hid, session_id: sid } }),
+ });
+ let mlast = null;
+ for (let i = 0; i < 100; i++) {
+ await sleep(3000);
+ const feed = await api(`/api/harness/v1/sessions/${sid}/turns`);
+ const turns = (feed.json && feed.json.turns) || [];
+ const t = turns[turns.length - 1];
+ if (turns.length > 1 && t && TERMINAL.has(String(t.status)) && (t.assistant || t.error)) { mlast = t; break; }
+ }
+ const mtools = ((mlast && mlast.tools) || []).map(toolLabel);
+ rec.mcp_s = Math.round((Date.now() - m0) / 1000);
+ rec.mcp_status = mlast && mlast.status;
+ rec.mcp_tools = mtools;
+ rec.mcp_called = mtools.some((t) => MCP_TOOL.test(t));
+ rec.mcp_error = String((mlast && (mlast.error || mlast.incomplete_reason)) || '').slice(0, 200);
+ } else if (MCP_URL !== 'off' && !mcpUp) {
+ rec.mcp_called = null; rec.mcp_error = 'skipped: the public MCP server was unreachable';
+ }
+ // the MCP half only counts against a row when it actually ran
+ const mcpOk = MCP_URL === 'off' || rec.mcp_called === null || (rec.mcp_stored && rec.mcp_called);
+ rec.ok = !!(rec.skill_stored && rec.tool_disabled_stored && rec.skill_reached && rec.script_ran && rec.disabled_tool_unused && mcpOk);
rec.why = rec.ok ? '' : [
rec.skill_stored ? '' : 'the skill was not stored on the harness',
rec.tool_disabled_stored ? '' : 'the disabled tool was not stored',
@@ -142,8 +210,11 @@ try {
rec.script_ran ? '' : `the skill's script left no file (files: ${files.join(',') || 'none'})`,
rec.disabled_tool_unused ? '' : `a disabled tool was called: ${tools.join(',')}`,
rec.error ? `the turn ended: ${rec.error}` : '',
+ (MCP_URL !== 'off' && rec.mcp_called === false && !rec.mcp_stored) ? 'the MCP server was not stored on the harness' : '',
+ (MCP_URL !== 'off' && rec.mcp_called === false && rec.mcp_stored)
+ ? `the declared MCP server was never called (tools: ${(rec.mcp_tools || []).join(',') || 'none'})${rec.mcp_error ? '; ' + rec.mcp_error : ''}` : '',
].filter(Boolean).join('; ');
- log(`CUSTOM ${base} ${rec.ok ? 'ok' : 'FAIL'} ${rec.s}s ${rec.why}`);
+ log(`CUSTOM ${base} ${rec.ok ? 'ok' : 'FAIL'} ${rec.s}s mcp=${rec.mcp_called === null ? 'skipped' : rec.mcp_called} ${rec.why}`);
if (sid) await api(`/api/harness/v1/sessions/${sid}`, { method: 'DELETE' });
} catch (e) {
rec.error = String(e).slice(0, 300); log(`CUSTOM ${base} ERROR ${rec.error}`);