fix: proxy MCP and expose EKAP verification gates

This commit is contained in:
2026-09-15 17:54:14 +03:00
parent 26b250735c
commit 6c32581952
7 changed files with 190 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
test('Nginx proxies MCP JSON-RPC requests to the authenticated Node endpoint', () => {
const config = readFileSync(new URL('../nginx.conf', import.meta.url), 'utf8');
const block = /location\s*=\s*\/mcp\s*\{([\s\S]*?)\n\s*\}/.exec(config)?.[1] || '';
assert.match(block, /proxy_pass\s+http:\/\/127\.0\.0\.1:3001;/);
assert.match(block, /client_max_body_size\s+1m;/);
});