|
#!/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", |
|
"[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}" |
|
} |
|
}, |
|
"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 |