feat(mcp): реализовать серверную часть MCP, адаптеры, сервисы и скрипты приёмки

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
DenozordecandClaude Sonnet 5.5 committed 2026-11-15 20:36:13 +07:00
1 parent 7380f18f15
commit 18c0a52171
1565 files changed
+175806 -5772

No files matched your search

@@ -0,0 +1,17 @@
// Synthetic signatures/files only. Deliberately discard configured DB URLs,
// environment preload hooks and application secrets, including during SQL suites.
import { spawn } from 'node:child_process'
import { createRequire } from 'node:module'
import { fileURLToPath, pathToFileURL } from 'node:url'
if (process.argv.length !== 2) throw Error('Source-binding synthetic runner takes no arguments')
const require = createRequire(import.meta.url)
const env = Object.fromEntries(['SystemRoot', 'WINDIR', 'TEMP', 'TMP', 'LANG', 'LC_ALL']
.filter(key => typeof process.env[key] === 'string').map(key => [key, process.env[key]]))
const child = spawn(process.execPath, ['--import', pathToFileURL(require.resolve('tsx')).href, '--test',
fileURLToPath(new URL('../src/db/database-source-binding.test.ts', import.meta.url))], {
cwd: new URL('../', import.meta.url), env: { ...env, MMAPP_OWN_SOURCE_BINDING_SYNTHETIC: 'true' },
windowsHide: true, stdio: 'inherit',
})
child.once('error', () => { console.error('Source-binding synthetic child could not start'); process.exitCode = 1 })
child.once('exit', code => { process.exitCode = code ?? 1 })