初始提交:codebase-memory-mcp - Codebase Memory MCP Server

Fork from https://github.com/DeusData/codebase-memory-mcp
Go 实现,提供代码库记忆功能的 MCP 服务器
This commit is contained in:
xiaowei
2026-07-30 09:18:35 +08:00
commit f1e40eebb4
2049 changed files with 38420279 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# Static contract for the Vite-only loopback proxy security boundary.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
config="$ROOT/graph-ui/vite.config.ts"
for required in \
'strictPort: true' \
'bypass(req, res)' \
'!uiDevOrigins.has(origin)' \
'res.writeHead(403' \
'headers: { Origin: uiBackendOrigin }'; do
if ! grep -Fq "$required" "$config"; then
echo "FAIL: Vite proxy security contract missing: $required" >&2
exit 1
fi
done
for origin in 'http://127.0.0.1:5173' 'http://localhost:5173'; do
if ! grep -Fq "$origin" "$config"; then
echo "FAIL: Vite proxy local development origin missing: $origin" >&2
exit 1
fi
done
echo "UI development proxy security contract passed"