Create entrypoint.sh
Browse files- entrypoint.sh +43 -0
entrypoint.sh
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
cat <<EOF > /app/config.json
|
4 |
+
{
|
5 |
+
"mcpServers": {
|
6 |
+
"grok2_images": {
|
7 |
+
"command": "npx",
|
8 |
+
"args": [
|
9 |
+
"-y",
|
10 | |
11 |
+
],
|
12 |
+
"env": {
|
13 |
+
"XAIAPI_KEY": "${XAIAPI_KEY}",
|
14 |
+
"XAIAPI_BASE_URL": "${XAIAPI_BASE_URL}"
|
15 |
+
}
|
16 |
+
},
|
17 |
+
"tavily-mcp": {
|
18 |
+
"command": "npx",
|
19 |
+
"args": [
|
20 |
+
"-y",
|
21 | |
22 |
+
],
|
23 |
+
"env": {
|
24 |
+
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
|
25 |
+
}
|
26 |
+
},
|
27 |
+
"filesystem": {
|
28 |
+
"command": "npx",
|
29 |
+
"args": [
|
30 |
+
"-y",
|
31 |
+
"@modelcontextprotocol/server-filesystem",
|
32 |
+
"/home/mcp"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
"edgeone-pages-mcp-server": {
|
36 |
+
"command": "npx",
|
37 |
+
"args": ["edgeone-pages-mcp"]
|
38 |
+
}
|
39 |
+
}
|
40 |
+
}
|
41 |
+
EOF
|
42 |
+
|
43 |
+
exec mcpo --config /app/config.json
|