feat(lib): bundle MCP servers from .common/lib into factory/lib/
Copies source (no node_modules, dist, .tasks, .wiki, __pycache__) for: - projects-meta-mcp v2.25.0 (TypeScript/Node) - wiki-graph v0.3.1 (TypeScript/Node) - interns-mcp v0.3.3 (Python/FastMCP) .gitignore: exclude lib build artefacts (node_modules, dist, .venv, __pycache__, *.pyc) bootstrap.ps1: add MCP build step — npm install+build for TS servers, venv+pip for Python Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -174,6 +174,53 @@ $lines = @(
|
||||
|
||||
Write-Ok "Wrote $HOME_TOML"
|
||||
|
||||
# Build MCP servers from lib/
|
||||
Write-Step "Building MCP servers"
|
||||
|
||||
$libPath = "$factoryLocal\lib"
|
||||
|
||||
if (Test-Path $libPath) {
|
||||
# TypeScript servers (npm install + npm run build)
|
||||
foreach ($server in @("projects-meta-mcp", "wiki-graph")) {
|
||||
$serverPath = "$libPath\$server"
|
||||
if (Test-Path $serverPath) {
|
||||
Write-Host " Building $server..."
|
||||
Push-Location $serverPath
|
||||
try {
|
||||
npm install --silent 2>&1 | Out-Null
|
||||
npm run build 2>&1 | Out-Null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Gap "$server: build failed (npm run build exited $LASTEXITCODE)"
|
||||
} else {
|
||||
Write-Ok "$server built"
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Python server (interns-mcp) — venv + pip install
|
||||
$internsMcpPath = "$libPath\interns-mcp"
|
||||
if (Test-Path $internsMcpPath) {
|
||||
Write-Host " Setting up interns-mcp..."
|
||||
Push-Location $internsMcpPath
|
||||
try {
|
||||
python -m venv .venv 2>&1 | Out-Null
|
||||
& ".venv\Scripts\pip.exe" install -e . --quiet
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Gap "interns-mcp: pip install failed"
|
||||
} else {
|
||||
Write-Ok "interns-mcp installed"
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Write-Skip "lib/ not found — skipping MCP server build"
|
||||
}
|
||||
|
||||
# Print next steps
|
||||
Write-Host "`n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" -ForegroundColor Green
|
||||
Write-Host " L0b COMPLETE" -ForegroundColor Green
|
||||
|
||||
Reference in New Issue
Block a user