Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/mcp-worker-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# MCP Worker contract tests — verifies production parity (27 tools, 6
# resources, 5 prompts) and Upsilon identity on every push/PR touching the
# Worker source or contract test.
name: MCP Worker Contract

on:
push:
branches: [main]
paths:
- "mcp-worker/**"
- "tests/mcp-worker-contract.test.mjs"
- ".github/workflows/mcp-worker-contract.yml"
pull_request:
paths:
- "mcp-worker/**"
- "tests/mcp-worker-contract.test.mjs"
- ".github/workflows/mcp-worker-contract.yml"

jobs:
contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"

- name: Run contract tests
run: node --test tests/mcp-worker-contract.test.mjs

- name: Wrangler deploy dry-run
uses: cloudflare/wrangler-action@v3
with:
workingDirectory: mcp-worker
command: deploy --dry-run
apiToken: dummy
726 changes: 726 additions & 0 deletions mcp-worker/src/catalog.mjs

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions mcp-worker/src/cohort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cohort_id": "acme_50",
"tenant_id": "acme",
"name": "Acme 50",
"window_start": "2026-07-01",
"window_end": "2026-07-30",
"operator_ids": [
"op_001",
"op_002",
"op_003",
"op_004",
"op_005",
"op_006",
"op_007",
"op_008",
"op_009",
"op_010",
"op_011",
"op_012",
"op_013",
"op_014",
"op_015",
"op_016",
"op_017",
"op_018",
"op_019",
"op_020",
"op_021",
"op_022",
"op_023",
"op_024",
"op_025",
"op_026",
"op_027",
"op_028",
"op_029",
"op_030",
"op_031",
"op_032",
"op_033",
"op_034",
"op_035",
"op_036",
"op_037",
"op_038",
"op_039",
"op_040",
"op_041",
"op_042",
"op_043",
"op_044",
"op_045",
"op_046",
"op_047",
"op_048",
"op_049",
"op_050"
],
"operators": 50,
"synthetic": true,
"median_leverage": 12.177,
"median_yield": 6.0072,
"median_token_snr": 0.3417,
"median_construction": 1.7338,
"metric_registry_version": "0.2"
}
1 change: 0 additions & 1 deletion mcp-worker/src/demo_data.json

This file was deleted.

Loading
Loading