Update entrypoint.sh
Browse files- entrypoint.sh +9 -20
entrypoint.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
# Create config.json dynamically using environment variables
|
|
|
|
| 4 |
cat <<EOF > /app/config.json
|
| 5 |
{
|
| 6 |
"mcpServers": {
|
|
@@ -25,18 +26,6 @@ cat <<EOF > /app/config.json
|
|
| 25 |
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
|
| 26 |
}
|
| 27 |
},
|
| 28 |
-
// --- Baidu Map Service Removed ---
|
| 29 |
-
// "baidu-map": {
|
| 30 |
-
// "command": "npx",
|
| 31 |
-
// "args": [
|
| 32 |
-
// "-y",
|
| 33 |
-
// "@baidumap/mcp-server-baidu-map"
|
| 34 |
-
// ],
|
| 35 |
-
// "env": {
|
| 36 |
-
// "BAIDU_MAP_API_KEY": "${BAIDU_MAP_API_KEY}"
|
| 37 |
-
// }
|
| 38 |
-
// },
|
| 39 |
-
// --- End of Removed Section ---
|
| 40 |
"github": {
|
| 41 |
"command": "npx",
|
| 42 |
"args": [
|
|
@@ -52,34 +41,34 @@ cat <<EOF > /app/config.json
|
|
| 52 |
"args": [
|
| 53 |
"-y",
|
| 54 |
"@modelcontextprotocol/server-filesystem",
|
| 55 |
-
"/home/mcp"
|
| 56 |
]
|
| 57 |
},
|
| 58 |
"edgeone-pages-mcp-server": {
|
| 59 |
"command": "npx",
|
| 60 |
"args": ["edgeone-pages-mcp"]
|
| 61 |
-
},
|
| 62 |
"fetcher-mcp": {
|
| 63 |
"command": "npx",
|
| 64 |
"args": [
|
| 65 |
"-y",
|
| 66 |
-
"fetcher-mcp@0.2.6"
|
| 67 |
],
|
| 68 |
-
"env": {}
|
| 69 |
-
},
|
| 70 |
"g-search-mcp": {
|
| 71 |
"command": "npx",
|
| 72 |
"args": [
|
| 73 |
"-y",
|
| 74 |
"g-search-mcp"
|
| 75 |
],
|
| 76 |
-
"env": {}
|
| 77 |
-
}
|
| 78 |
}
|
| 79 |
}
|
| 80 |
EOF
|
| 81 |
|
| 82 |
-
# Print the generated config for debugging (optional)
|
| 83 |
echo "Generated config.json:"
|
| 84 |
cat /app/config.json
|
| 85 |
echo "---"
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
# Create config.json dynamically using environment variables
|
| 4 |
+
# IMPORTANT: Comments are OK here in the shell script, but NOT inside the EOF block below.
|
| 5 |
cat <<EOF > /app/config.json
|
| 6 |
{
|
| 7 |
"mcpServers": {
|
|
|
|
| 26 |
"TAVILY_API_KEY": "${TAVILY_API_KEY}"
|
| 27 |
}
|
| 28 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
"github": {
|
| 30 |
"command": "npx",
|
| 31 |
"args": [
|
|
|
|
| 41 |
"args": [
|
| 42 |
"-y",
|
| 43 |
"@modelcontextprotocol/server-filesystem",
|
| 44 |
+
"/home/mcp"
|
| 45 |
]
|
| 46 |
},
|
| 47 |
"edgeone-pages-mcp-server": {
|
| 48 |
"command": "npx",
|
| 49 |
"args": ["edgeone-pages-mcp"]
|
| 50 |
+
},
|
| 51 |
"fetcher-mcp": {
|
| 52 |
"command": "npx",
|
| 53 |
"args": [
|
| 54 |
"-y",
|
| 55 |
+
"fetcher-mcp@0.2.6"
|
| 56 |
],
|
| 57 |
+
"env": {}
|
| 58 |
+
},
|
| 59 |
"g-search-mcp": {
|
| 60 |
"command": "npx",
|
| 61 |
"args": [
|
| 62 |
"-y",
|
| 63 |
"g-search-mcp"
|
| 64 |
],
|
| 65 |
+
"env": {}
|
| 66 |
+
}
|
| 67 |
}
|
| 68 |
}
|
| 69 |
EOF
|
| 70 |
|
| 71 |
+
# Print the generated config for debugging (optional but recommended)
|
| 72 |
echo "Generated config.json:"
|
| 73 |
cat /app/config.json
|
| 74 |
echo "---"
|