MCPO / entrypoint.sh
tang-x's picture
Create entrypoint.sh
a8ff56a verified
raw
history blame contribute delete
799 Bytes
#!/bin/bash
cat <<EOF > /app/config.json
{
"mcpServers": {
"grok2_images": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"XAIAPI_KEY": "${XAIAPI_KEY}",
"XAIAPI_BASE_URL": "${XAIAPI_BASE_URL}"
}
},
"tavily-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/home/mcp"
]
},
"edgeone-pages-mcp-server": {
"command": "npx",
"args": ["edgeone-pages-mcp"]
}
}
}
EOF
exec mcpo --config /app/config.json