@strixgov/mcp-proxy 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/examples/github-reference/README.md +34 -0
- package/examples/github-reference/acceptance.mjs +668 -0
- package/examples/github-reference/claims-matrix.md +34 -0
- package/examples/github-reference/demo-script.md +17 -0
- package/examples/github-reference/package-lock.json +1326 -0
- package/examples/github-reference/package.json +23 -0
- package/examples/github-reference/reuse-inventory.md +24 -0
- package/package.json +4 -4
- package/test/package-contract.test.mjs +12 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@strixgov/github-mcp-reference-demo",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Offline GitHub-shaped MCP acceptance demo; never contacts GitHub.",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "node acceptance.mjs",
|
|
12
|
+
"demo": "node acceptance.mjs"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
16
|
+
"@strixgov/capabilities-mcp-common": "0.1.2",
|
|
17
|
+
"@strixgov/guard": "0.1.4",
|
|
18
|
+
"@strixgov/mcp-adapter": "0.1.4",
|
|
19
|
+
"@strixgov/mcp-proxy": "0.2.3",
|
|
20
|
+
"@strixgov/tool-gateway": "0.5.2",
|
|
21
|
+
"@strixgov/verifier": "1.24.1"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Reuse inventory
|
|
2
|
+
|
|
3
|
+
## Published components exercised
|
|
4
|
+
|
|
5
|
+
| Existing component | Reused contract | Demo use |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `@strixgov/guard@0.1.4` | `packForServer`, `buildProxyConfig`, `createApproverKey`, `approveSigned` | Selects the existing GitHub capability pack; writes exact approval requests; signs synthetic reviewer decisions over exact request bytes. |
|
|
8
|
+
| `@strixgov/capabilities-mcp-common@0.1.2` | Existing GitHub classifications | Classifies the read and merge tools; the fixture's unclassified `delete_repository` is denied by default. |
|
|
9
|
+
| `@strixgov/mcp-proxy@0.2.3` | Existing MCP interception and transport path | Intercepts calls over the supported in-memory test transport; no second proxy is added. |
|
|
10
|
+
| `@strixgov/mcp-adapter@0.1.4` | Capability resolution, policy evaluation, approval handling, receipt and outcome production | Used transitively by the published proxy. Its tarball's own `npm test` script fails because the tarball omits `scripts/preflight.mjs`; see the test logs. |
|
|
11
|
+
| `@strixgov/tool-gateway@0.5.2` | Existing policy, approval, storage, receipt, and signing primitives | Supplies the gateway and persisted logs; the harness adds no competing authority or signer. |
|
|
12
|
+
| `@strixgov/verifier@1.24.1` | Published receipt-chain and execution-outcome verification | Verifies signed receipts, receipt-linked outcomes, and tampering. Repository candidate 1.24.2 is unpublished and is not substituted. |
|
|
13
|
+
|
|
14
|
+
## Existing source examined but not claimed as a published integration
|
|
15
|
+
|
|
16
|
+
The `docs/strategy/specs/execution-plane-phase-a-reference/github-merge-pep.mjs` and its tests implement a reference PEP with exact subject hashing, full head-SHA precondition, and injected single-use authority/revocation/evidence dependencies. It is source-reference-only, has no production callers, and returns unsigned results. Its source tests are not evidence that the published MCP stack or GitHub API executes a merge.
|
|
17
|
+
|
|
18
|
+
The production authority model remains the one to reuse: the first-party `github.pr.merge` capability is currently pending lifecycle and non-executable. `docs/architecture/mcp-mode-3-enforcement-v1.md` describes future signed execution authorization and atomic downstream nonce redemption; the published MCP proxy does not wire that Mode-3 path. The official GitHub MCP `merge_pull_request` shape also lacks the provider-side full-head-SHA precondition required by the PEP.
|
|
19
|
+
|
|
20
|
+
The adapter's `examples/github.mjs` can auto-approve a stub flow and can reach live GitHub when supplied a PAT; it was not run. `scripts/mcp-bundle-smoke.mjs` contains GitHub-related policy but exercises filesystem and `claude.read`, not a GitHub-specific end-to-end flow.
|
|
21
|
+
|
|
22
|
+
## Integration gap
|
|
23
|
+
|
|
24
|
+
The published Mode-2 signed file approval is exact-request-bound, but it is not equivalent to a durable, atomic, payload-bound Mode-3 execution grant. This demo intentionally does not approve or dispatch a merge, and does not claim the proxy covers direct credentials or alternative routes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strixgov/mcp-proxy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Strix MCP Proxy — the distribution wedge for governed agent tool execution. Point your MCP client at the proxy instead of the underlying server; every callTool is intercepted, evaluated against policy, and emits a signed Ed25519 receipt. Designed so Mode 3 (capability-enforced) is the v0.2.0 upgrade path, not a rewrite.",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
19
|
-
"@strixgov/capabilities-mcp-common": "
|
|
20
|
-
"@strixgov/
|
|
21
|
-
"@strixgov/
|
|
19
|
+
"@strixgov/capabilities-mcp-common": "0.1.2",
|
|
20
|
+
"@strixgov/tool-gateway": "0.5.2",
|
|
21
|
+
"@strixgov/mcp-adapter": "0.1.5"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"zod": "^3.25.76"
|
|
@@ -18,3 +18,15 @@ test("every script file the `test` script runs ships in the tarball", () => {
|
|
|
18
18
|
assert.ok(covered(rel), `${rel} is used by \`npm test\` but excluded by package.json "files"`);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
test("Strix dependencies are pinned exactly, so Guard's pinned proxy version fixes the whole Strix stack", () => {
|
|
23
|
+
// In this repository they are `workspace:*`, which pnpm publishes as the exact
|
|
24
|
+
// current version; in an installed copy they must already be exact versions.
|
|
25
|
+
// A range here means a new tool-gateway release changes what an existing Guard
|
|
26
|
+
// install runs (finding 1 of the #2810 evidence run).
|
|
27
|
+
const strix = Object.entries(pkg.dependencies).filter(([n]) => n.startsWith("@strixgov/"));
|
|
28
|
+
assert.ok(strix.length >= 3, "expected the Strix runtime dependencies");
|
|
29
|
+
for (const [name, spec] of strix) {
|
|
30
|
+
assert.ok(spec === "workspace:*" || /^\d+\.\d+\.\d+$/.test(spec), `${name} is "${spec}"; pin it exactly (workspace:*)`);
|
|
31
|
+
}
|
|
32
|
+
});
|