feat(mcp): подготовить сервер и доступ к приёмке

This commit is contained in:
Denozordec committed 2026-11-03 03:12:03 +07:00
commit bf3d50e1ff
3835 files changed
+537122

No files matched your search

@@ -0,0 +1,13 @@
/** Owns no application resources directly: the original guarded PostgreSQL
* runner creates/removes its fresh cluster and supplies every connection. */
import assert from 'node:assert/strict'
import {spawn} from 'node:child_process'
import {dirname,resolve} from 'node:path'
import {fileURLToPath} from 'node:url'
assert.equal(process.argv.length,2,'HTTP poll acceptance takes no target or connection arguments')
const root=resolve(dirname(fileURLToPath(import.meta.url)),'../..')
const child=spawn(process.execPath,[resolve(root,'backend/scripts/test-mcp-postgres.mjs'),'--server-poll-storage-fresh'],{
cwd:root,windowsHide:true,stdio:'inherit',env:{...process.env,NODE_ENV:'test',MMAPP_OWN_SERVER_POLL_HTTP_ROUTE:'true'},
})
const code=await new Promise((done,reject)=>{child.once('error',reject);child.once('exit',code=>done(code??1))})
process.exitCode=code