mcp-hub/ecosystem.config.js

40 lines
1.3 KiB
JavaScript
Raw Normal View History

module.exports = {
apps: [
{
name: 'mcp-hub',
script: 'src/index.js',
cwd: '/workspace',
env: { NODE_ENV: 'development', PORT: 3000, HUB_AUTH: JSON.stringify({"sample-mcp": "678bfd90bc24019e1a59f27ed73df2b203ea0bc3e2058df738cbb755c7e77010", "memory-mcp": "678bfd90bc24019e1a59f27ed73df2b203ea0bc3e2058df738cbb755c7e77010"}) },
max_restarts: 10,
restart_delay: 1000,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true
},
{
name: 'sample-mcp',
script: 'sample-mcp/index.js',
cwd: '/workspace',
env: { NODE_ENV: 'development', MCP_SECRET: '678bfd90bc24019e1a59f27ed73df2b203ea0bc3e2058df738cbb755c7e77010' },
max_restarts: 10,
restart_delay: 2000,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true
},
{
name: 'mcp-bridge-memory',
script: 'mcp-bridge/index.js',
cwd: '/workspace',
env: {
BRIDGE_SERVICE_ID: 'memory-mcp',
BRIDGE_SECRET: '678bfd90bc24019e1a59f27ed73df2b203ea0bc3e2058df738cbb755c7e77010',
BRIDGE_HUB_URL: 'ws://localhost:3000/ws/register',
BRIDGE_UPSTREAM_URL: 'https://memory-mcp.dbchat.ai/mcp/sse'
},
max_restarts: 10,
restart_delay: 2000,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true
}
]
};