Adds Dockerfile, entrypoint, and server bootstrap so that `docker compose up` starts postgres, pushes the schema, seeds default MCP servers, and starts mcpd with all routes wired up. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
288 B
Bash
Executable File
12 lines
288 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "mcpd: pushing database schema..."
|
|
pnpm -F @mcpctl/db exec prisma db push --schema=prisma/schema.prisma --accept-data-loss 2>&1
|
|
|
|
echo "mcpd: seeding default data..."
|
|
node src/mcpd/dist/seed-runner.js
|
|
|
|
echo "mcpd: starting server..."
|
|
exec node src/mcpd/dist/main.js
|