File size: 1,353 Bytes
8bee55c b707324 12c8110 b707324 8bee55c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#!/bin/bash
cat <<EOF > /app/config.json
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
},
"mcp-server-time": {
"command": "uvx",
"args": [
"mcp-server-time",
"--local-timezone=${TZ}"
],
"alwaysAllow": [
"get_current_time",
"convert_time"
]
},
"grok2_images": {
"command": "npx",
"args": [
"-y",
"grok2-image-mcp-server@0.1.3"
],
"env": {
"XAIAPI_KEY": "${XAIAPI_KEY}",
"XAIAPI_BASE_URL": "${XAIAPI_BASE_URL}"
}
},
"tavily-mcp": {
"command": "npx",
"args": [
"-y",
"tavily-mcp@0.1.2"
],
"env": {
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
}
},
"amap-maps": {
"command": "npx",
"args": [
"-y",
"@amap/amap-maps-mcp-server"
],
"env": {
"AMAP_MAPS_API_KEY": "${GAODE_API_KEY}"
}
}
}
}
EOF
exec mcpo --config /app/config.json |