Upload 3 files
Browse files- Dockerfile +6 -0
- README.md +5 -6
- entrypoint.sh +98 -0
Dockerfile
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/open-webui/mcpo:main
|
| 2 |
+
|
| 3 |
+
COPY entrypoint.sh /app/
|
| 4 |
+
RUN chmod +x /app/entrypoint.sh
|
| 5 |
+
|
| 6 |
+
ENTRYPOINT ["/app/entrypoint.sh"]
|
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: pink
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: mcpo
|
| 3 |
+
emoji: 💻
|
| 4 |
colorFrom: pink
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 8000
|
| 9 |
+
---
|
|
|
entrypoint.sh
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
cat <<EOF > /app/config.json
|
| 4 |
+
{
|
| 5 |
+
"github": {
|
| 6 |
+
"command": "npx",
|
| 7 |
+
"args": [
|
| 8 |
+
"-y",
|
| 9 |
+
"@modelcontextprotocol/server-github"
|
| 10 |
+
],
|
| 11 |
+
"env": {
|
| 12 |
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
|
| 13 |
+
}
|
| 14 |
+
},
|
| 15 |
+
"linux-do": {
|
| 16 |
+
"command": "npx",
|
| 17 |
+
"args": [
|
| 18 |
+
"-y",
|
| 19 |
+
"@pleasure1234/linux-do-mcp"
|
| 20 |
+
],
|
| 21 |
+
"env": {
|
| 22 |
+
"LINUX_DO_USERNAME": "deem",
|
| 23 |
+
"LINUX_DO_API_KEY": "${LINUX_DO}"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
"amap-maps": {
|
| 27 |
+
"command": "npx",
|
| 28 |
+
"args": ["-y","@amap/amap-maps-mcp-server"],
|
| 29 |
+
"env": {
|
| 30 |
+
"AMAP_MAPS_API_KEY": "${AMAP_MAPS}"
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
"filesystem": {
|
| 34 |
+
"command": "npx",
|
| 35 |
+
"args": [
|
| 36 |
+
"-y",
|
| 37 |
+
"@modelcontextprotocol/server-filesystem",
|
| 38 |
+
"/home/mcp"
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"edgeone-pages-mcp-server": {
|
| 42 |
+
"command": "npx",
|
| 43 |
+
"args": ["edgeone-pages-mcp"]
|
| 44 |
+
},
|
| 45 |
+
"fetcher-mcp": {
|
| 46 |
+
"command": "npx",
|
| 47 |
+
"args": [
|
| 48 |
+
"-y",
|
| 49 |
+
"fetcher-mcp@0.2.6"
|
| 50 |
+
],
|
| 51 |
+
"env": {}
|
| 52 |
+
},
|
| 53 |
+
"g-search-mcp": {
|
| 54 |
+
"command": "npx",
|
| 55 |
+
"args": [
|
| 56 |
+
"-y",
|
| 57 |
+
"g-search-mcp"
|
| 58 |
+
],
|
| 59 |
+
"env": {}
|
| 60 |
+
},
|
| 61 |
+
"time": {
|
| 62 |
+
"command": "uvx",
|
| 63 |
+
"args": [
|
| 64 |
+
"mcp-server-time",
|
| 65 |
+
"--local-timezone=Asia/Shanghai"
|
| 66 |
+
]
|
| 67 |
+
},
|
| 68 |
+
"fetcher": {
|
| 69 |
+
"command": "npx",
|
| 70 |
+
"args": [
|
| 71 |
+
"-y",
|
| 72 |
+
"fetcher-mcp"
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
"context7": {
|
| 76 |
+
"command": "npx",
|
| 77 |
+
"args": [
|
| 78 |
+
"-y",
|
| 79 |
+
"@upstash/context7-mcp@latest"
|
| 80 |
+
]
|
| 81 |
+
},
|
| 82 |
+
"fetch": {
|
| 83 |
+
"command": "uvx",
|
| 84 |
+
"args": [
|
| 85 |
+
"mcp-server-fetch"
|
| 86 |
+
]
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
EOF
|
| 91 |
+
|
| 92 |
+
# Print the generated config for debugging (optional but recommended)
|
| 93 |
+
echo "Generated config.json:"
|
| 94 |
+
cat /app/config.json
|
| 95 |
+
echo "---"
|
| 96 |
+
|
| 97 |
+
# Execute mcpo with the generated config file
|
| 98 |
+
exec mcpo --config /app/config.json
|