xdxb commited on
Commit
251247f
·
verified ·
1 Parent(s): aa6dafc

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +61 -25
entrypoint.sh CHANGED
@@ -7,57 +7,72 @@ cat <<EOF > /app/config.json
7
  "command": "npx",
8
  "args": [
9
  "-y",
10
- "@modelcontextprotocol/server-github"
11
  ],
12
  "env": {
13
- "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
 
14
  }
15
  },
16
  "filesystem": {
17
  "command": "npx",
18
  "args": [
19
  "-y",
20
- "@modelcontextprotocol/server-filesystem",
21
  "/home/mcp"
22
- ]
 
 
 
23
  },
24
  "edgeone-pages-mcp-server": {
25
  "command": "npx",
26
- "args": ["edgeone-pages-mcp"]
 
 
 
27
  },
28
  "mcp-server-firecrawl": {
29
  "command": "npx",
30
  "args": [
31
  "-y",
32
- "firecrawl-mcp"
33
  ],
34
  "env": {
35
- "FIRECRAWL_API_KEY": "${FIRECRAWL_API_KEY}"
 
36
  }
37
  },
38
  "tavily-mcp": {
39
  "command": "npx",
40
  "args": [
41
  "-y",
42
- "tavily-mcp@0.1.4"
43
  ],
44
  "env": {
45
- "TAVILY_API_KEY": "${TAVILY_API_KEY}"
 
46
  }
47
  },
48
  "sequential-thinking": {
49
  "command": "npx",
50
  "args": [
51
  "-y",
52
- "@modelcontextprotocol/server-sequential-thinking"
53
- ]
 
 
 
54
  },
55
  "fetch": {
56
  "command": "npx",
57
  "args": [
58
  "-y",
59
- "@kazuph/mcp-fetch"
60
- ]
 
 
 
61
  },
62
  "code-runner": {
63
  "command": "npx",
@@ -66,10 +81,11 @@ cat <<EOF > /app/config.json
66
  "deno",
67
  "run",
68
  "--allow-all",
69
- "jsr:@mcpc/code-runner-mcp/bin"
70
  ],
71
  "env": {
72
- "DENO_PERMISSION_ARGS": "--allow-net"
 
73
  }
74
  },
75
  "context7": {
@@ -77,49 +93,69 @@ cat <<EOF > /app/config.json
77
  "args": [
78
  "-y",
79
  "@upstash/context7-mcp@latest"
80
- ]
 
 
 
81
  },
82
  "chaitin-ip-intelligence-search-tool": {
83
  "command": "npx",
84
  "args": [
85
  "-y",
86
- "chaitin-ip-intelligence-search-tool"
87
- ]
 
 
 
88
  },
89
  "anilist": {
90
  "command": "npx",
91
  "args": [
92
  "-y",
93
- "anilist-mcp"
94
  ],
95
  "env": {
96
- "ANILIST_TOKEN": "${ANILIST_TOKEN}"
 
97
  }
98
  },
99
  "brave-search": {
100
  "command": "npx",
101
  "args": [
102
  "-y",
103
- "@modelcontextprotocol/server-brave-search"
104
  ],
105
  "env": {
106
- "BRAVE_API_KEY": "${BRAVE_API_KEY}"
 
107
  }
108
  },
109
  "time-mcp": {
110
  "command": "npx",
111
- "args": ["-y", "time-mcp"]
 
 
 
112
  },
113
  "youtube": {
114
  "command": "npx",
115
- "args": ["-y", "youtube-data-mcp-server"],
116
  "env": {
117
  "YOUTUBE_API_KEY": "${YOUTUBE_API_KEY}",
118
- "YOUTUBE_TRANSCRIPT_LANG": "${YOUTUBE_TRANSCRIPT_LANG}"
 
119
  }
120
  }
121
  }
122
  }
123
  EOF
124
 
 
 
 
 
 
 
 
 
125
  exec mcpo --config /app/config.json
 
7
  "command": "npx",
8
  "args": [
9
  "-y",
10
+ "@modelcontextprotocol/server-github@latest"
11
  ],
12
  "env": {
13
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}",
14
+ "NODE_OPTIONS": "--no-deprecation"
15
  }
16
  },
17
  "filesystem": {
18
  "command": "npx",
19
  "args": [
20
  "-y",
21
+ "@modelcontextprotocol/server-filesystem@latest",
22
  "/home/mcp"
23
+ ],
24
+ "env": {
25
+ "NODE_OPTIONS": "--no-deprecation"
26
+ }
27
  },
28
  "edgeone-pages-mcp-server": {
29
  "command": "npx",
30
+ "args": ["edgeone-pages-mcp@latest"],
31
+ "env": {
32
+ "NODE_OPTIONS": "--no-deprecation"
33
+ }
34
  },
35
  "mcp-server-firecrawl": {
36
  "command": "npx",
37
  "args": [
38
  "-y",
39
+ "firecrawl-mcp@latest"
40
  ],
41
  "env": {
42
+ "FIRECRAWL_API_KEY": "${FIRECRAWL_API_KEY}",
43
+ "NODE_OPTIONS": "--no-deprecation"
44
  }
45
  },
46
  "tavily-mcp": {
47
  "command": "npx",
48
  "args": [
49
  "-y",
50
+ "tavily-mcp@latest"
51
  ],
52
  "env": {
53
+ "TAVILY_API_KEY": "${TAVILY_API_KEY}",
54
+ "NODE_OPTIONS": "--no-deprecation"
55
  }
56
  },
57
  "sequential-thinking": {
58
  "command": "npx",
59
  "args": [
60
  "-y",
61
+ "@modelcontextprotocol/server-sequential-thinking@latest"
62
+ ],
63
+ "env": {
64
+ "NODE_OPTIONS": "--no-deprecation"
65
+ }
66
  },
67
  "fetch": {
68
  "command": "npx",
69
  "args": [
70
  "-y",
71
+ "@kazuph/mcp-fetch@latest"
72
+ ],
73
+ "env": {
74
+ "NODE_OPTIONS": "--no-deprecation"
75
+ }
76
  },
77
  "code-runner": {
78
  "command": "npx",
 
81
  "deno",
82
  "run",
83
  "--allow-all",
84
+ "jsr:@mcpc/code-runner-mcp/bin@latest"
85
  ],
86
  "env": {
87
+ "DENO_PERMISSION_ARGS": "--allow-net",
88
+ "NODE_OPTIONS": "--no-deprecation"
89
  }
90
  },
91
  "context7": {
 
93
  "args": [
94
  "-y",
95
  "@upstash/context7-mcp@latest"
96
+ ],
97
+ "env": {
98
+ "NODE_OPTIONS": "--no-deprecation"
99
+ }
100
  },
101
  "chaitin-ip-intelligence-search-tool": {
102
  "command": "npx",
103
  "args": [
104
  "-y",
105
+ "chaitin-ip-intelligence-search-tool@latest"
106
+ ],
107
+ "env": {
108
+ "NODE_OPTIONS": "--no-deprecation"
109
+ }
110
  },
111
  "anilist": {
112
  "command": "npx",
113
  "args": [
114
  "-y",
115
+ "anilist-mcp@latest"
116
  ],
117
  "env": {
118
+ "ANILIST_TOKEN": "${ANILIST_TOKEN}",
119
+ "NODE_OPTIONS": "--no-deprecation"
120
  }
121
  },
122
  "brave-search": {
123
  "command": "npx",
124
  "args": [
125
  "-y",
126
+ "@modelcontextprotocol/server-brave-search@latest"
127
  ],
128
  "env": {
129
+ "BRAVE_API_KEY": "${BRAVE_API_KEY}",
130
+ "NODE_OPTIONS": "--no-deprecation"
131
  }
132
  },
133
  "time-mcp": {
134
  "command": "npx",
135
+ "args": ["-y", "time-mcp@latest"],
136
+ "env": {
137
+ "NODE_OPTIONS": "--no-deprecation"
138
+ }
139
  },
140
  "youtube": {
141
  "command": "npx",
142
+ "args": ["-y", "youtube-data-mcp-server@latest"],
143
  "env": {
144
  "YOUTUBE_API_KEY": "${YOUTUBE_API_KEY}",
145
+ "YOUTUBE_TRANSCRIPT_LANG": "${YOUTUBE_TRANSCRIPT_LANG}",
146
+ "NODE_OPTIONS": "--no-deprecation"
147
  }
148
  }
149
  }
150
  }
151
  EOF
152
 
153
+ # Check Node.js version and display a warning if incompatible
154
+ if command -v node &> /dev/null; then
155
+ NODE_VERSION=$(node -v)
156
+ if [[ ! "$NODE_VERSION" =~ ^v(2[0-9]|[3-9][0-9]) ]]; then
157
+ echo "警告: 当前Node.js版本 $NODE_VERSION 可能不兼容。推荐使用Node.js v20或更高版本。"
158
+ fi
159
+ fi
160
+
161
  exec mcpo --config /app/config.json