@iflow-mcp/shell-command-mcp 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -80
- package/cli.js +2 -0
- package/dist/index.js +56 -0
- package/package.json +18 -34
- package/.dockleignore +0 -15
- package/.eslintrc.json +0 -23
- package/.github/workflows/docker-build.yaml +0 -102
- package/.prettierignore +0 -2
- package/.prettierrc +0 -7
- package/.prompt.yaml +0 -542
- package/Dockerfile +0 -120
- package/LICENSE +0 -21
- package/Makefile +0 -8
- package/build/execute-bash-script-async.js +0 -255
- package/build/execute-bash-script-sync.js +0 -111
- package/build/index.js +0 -26
- package/client-sequence-example.json +0 -9
- package/docker-compose.yaml +0 -17
- package/entrypoint.sh +0 -31
- package/src/execute-bash-script-async.ts +0 -300
- package/src/execute-bash-script-sync.ts +0 -141
- package/src/index.ts +0 -28
- package/tsconfig.json +0 -17
package/.prompt.yaml
DELETED
|
@@ -1,542 +0,0 @@
|
|
|
1
|
-
- client: Claude Desktop
|
|
2
|
-
model: Claude 3.7 Sonnet
|
|
3
|
-
prompts:
|
|
4
|
-
- timestamp: 20250327224201
|
|
5
|
-
prompt: |
|
|
6
|
-
以下を開発してください:
|
|
7
|
-
- シェルコマンドを実行する MCP
|
|
8
|
-
- これ以外のツールは必要ない
|
|
9
|
-
- 開発言語は TypeScript
|
|
10
|
-
- 必ず prettier と eslint を導入し、対応する npm スクリプトを用意する
|
|
11
|
-
- MCP サーバは Docker コンテナで動作する
|
|
12
|
-
- コンテナイメージの仕様は以下の通り
|
|
13
|
-
- イメージは Ubuntu ベース
|
|
14
|
-
- 作業用のユーザを作成、MCP サーバはこのユーザで動作する
|
|
15
|
-
- このユーザは root 権限および root に昇格する権限を持たない
|
|
16
|
-
- 作業用ユーザのホームディレクトリは実行時にマウントする
|
|
17
|
-
- 以下のツールをインストール
|
|
18
|
-
- MCP サーバを動作させるために必要なプログラム
|
|
19
|
-
- 基本的な開発とインフラ関連作業に使用するツール
|
|
20
|
-
- 標準的なkubernetes関連ツール
|
|
21
|
-
- kubectl, helm, kustomize は必ずインストールする
|
|
22
|
-
- このコンテナからホスト環境の docker を操作出来ないようにする
|
|
23
|
-
- Claude Desktop 用の MCP 設定のスニペットを生成
|
|
24
|
-
- ビルドその他の開発のためのコマンドは npm スクリプトもしくは Makefile に記述する
|
|
25
|
-
- timestamp: 20250327225603
|
|
26
|
-
prompt: |
|
|
27
|
-
.gitignore ファイルを記述してください。
|
|
28
|
-
|
|
29
|
-
以下のエラーが出ました。
|
|
30
|
-
➜ npm install
|
|
31
|
-
npm error code ETARGET
|
|
32
|
-
npm error notarget No matching version found for @modelcontextprotocol/sdk@^0.9.0.
|
|
33
|
-
npm error notarget In most cases you or one of your dependencies are requesting
|
|
34
|
-
npm error notarget a package version that doesn't exist.
|
|
35
|
-
npm error A complete log of this run can be found in: /home/kaznak/.npm/_logs/2025-03-27T13_54_14_965Z-debug-0.log
|
|
36
|
-
- timestamp: 20250327230327
|
|
37
|
-
prompt: |
|
|
38
|
-
以下の MCP サーバのツールは必要ありません:
|
|
39
|
-
- ls tool
|
|
40
|
-
- find tool
|
|
41
|
-
- kubectl tool
|
|
42
|
-
- helm tool
|
|
43
|
-
|
|
44
|
-
以下のエラーが出ました:
|
|
45
|
-
➜ npm run build
|
|
46
|
-
|
|
47
|
-
> shell-command-mcp@1.0.0 build
|
|
48
|
-
> tsc
|
|
49
|
-
|
|
50
|
-
src/server.ts:1:27 - error TS2307: Cannot find module '@modelcontextprotocol/sdk/server/mcp.js' or its corresponding type declarations.
|
|
51
|
-
|
|
52
|
-
1 import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
53
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
54
|
-
|
|
55
|
-
src/server.ts:4:32 - error TS2307: Cannot find module './utils.js' or its corresponding type declarations.
|
|
56
|
-
|
|
57
|
-
4 import { executeCommand } from './utils.js';
|
|
58
|
-
~~~~~~~~~~~~
|
|
59
|
-
|
|
60
|
-
src/server.ts:23:14 - error TS7031: Binding element 'command' implicitly has an 'any' type.
|
|
61
|
-
|
|
62
|
-
23 async ({ command, workingDir, env, timeout }) => {
|
|
63
|
-
~~~~~~~
|
|
64
|
-
|
|
65
|
-
src/server.ts:23:23 - error TS7031: Binding element 'workingDir' implicitly has an 'any' type.
|
|
66
|
-
|
|
67
|
-
23 async ({ command, workingDir, env, timeout }) => {
|
|
68
|
-
~~~~~~~~~~
|
|
69
|
-
|
|
70
|
-
src/server.ts:23:35 - error TS7031: Binding element 'env' implicitly has an 'any' type.
|
|
71
|
-
|
|
72
|
-
23 async ({ command, workingDir, env, timeout }) => {
|
|
73
|
-
~~~
|
|
74
|
-
|
|
75
|
-
src/server.ts:23:40 - error TS7031: Binding element 'timeout' implicitly has an 'any' type.
|
|
76
|
-
|
|
77
|
-
23 async ({ command, workingDir, env, timeout }) => {
|
|
78
|
-
~~~~~~~
|
|
79
|
-
|
|
80
|
-
src/server.ts:109:14 - error TS7031: Binding element 'path' implicitly has an 'any' type.
|
|
81
|
-
|
|
82
|
-
109 async ({ path, pattern, type }) => {
|
|
83
|
-
~~~~
|
|
84
|
-
|
|
85
|
-
src/server.ts:109:20 - error TS7031: Binding element 'pattern' implicitly has an 'any' type.
|
|
86
|
-
|
|
87
|
-
109 async ({ path, pattern, type }) => {
|
|
88
|
-
~~~~~~~
|
|
89
|
-
|
|
90
|
-
src/server.ts:109:29 - error TS7031: Binding element 'type' implicitly has an 'any' type.
|
|
91
|
-
|
|
92
|
-
109 async ({ path, pattern, type }) => {
|
|
93
|
-
~~~~
|
|
94
|
-
|
|
95
|
-
src/server.ts:148:14 - error TS7031: Binding element 'args' implicitly has an 'any' type.
|
|
96
|
-
|
|
97
|
-
148 async ({ args, kubeconfig }) => {
|
|
98
|
-
~~~~
|
|
99
|
-
|
|
100
|
-
src/server.ts:148:20 - error TS7031: Binding element 'kubeconfig' implicitly has an 'any' type.
|
|
101
|
-
|
|
102
|
-
148 async ({ args, kubeconfig }) => {
|
|
103
|
-
~~~~~~~~~~
|
|
104
|
-
|
|
105
|
-
src/server.ts:187:14 - error TS7031: Binding element 'args' implicitly has an 'any' type.
|
|
106
|
-
|
|
107
|
-
187 async ({ args, kubeconfig }) => {
|
|
108
|
-
~~~~
|
|
109
|
-
|
|
110
|
-
src/server.ts:187:20 - error TS7031: Binding element 'kubeconfig' implicitly has an 'any' type.
|
|
111
|
-
|
|
112
|
-
187 async ({ args, kubeconfig }) => {
|
|
113
|
-
~~~~~~~~~~
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Found 13 errors in the same file, starting at: src/server.ts:1
|
|
117
|
-
- timestamp: 20250327230921
|
|
118
|
-
prompt: |
|
|
119
|
-
npm スクリプトの format で、 src 以下のソースコード以外でユーザが記述する可能性のあるものもフォーマットするようにしてください。
|
|
120
|
-
|
|
121
|
-
以下のエラーが出ました。
|
|
122
|
-
➜ npm run build
|
|
123
|
-
|
|
124
|
-
> shell-command-mcp@1.0.0 build
|
|
125
|
-
> tsc
|
|
126
|
-
|
|
127
|
-
src/index.ts:1:29 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './server.js'?
|
|
128
|
-
|
|
129
|
-
1 import { startServer } from './server';
|
|
130
|
-
~~~~~~~~~~
|
|
131
|
-
|
|
132
|
-
src/server.ts:1:27 - error TS2307: Cannot find module '@modelcontextprotocol/sdk/server/mcp' or its corresponding type declarations.
|
|
133
|
-
|
|
134
|
-
1 import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
|
|
135
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
136
|
-
|
|
137
|
-
src/server.ts:2:38 - error TS2307: Cannot find module '@modelcontextprotocol/sdk/server/stdio' or its corresponding type declarations.
|
|
138
|
-
|
|
139
|
-
2 import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';
|
|
140
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
141
|
-
|
|
142
|
-
src/server.ts:4:32 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './utils.js'?
|
|
143
|
-
|
|
144
|
-
4 import { executeCommand } from './utils';
|
|
145
|
-
~~~~~~~~~
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Found 4 errors in 2 files.
|
|
149
|
-
|
|
150
|
-
Errors Files
|
|
151
|
-
1 src/index.ts:1
|
|
152
|
-
3 src/server.ts:1
|
|
153
|
-
- timestamp: 20250327231607
|
|
154
|
-
prompt: |
|
|
155
|
-
以下のエラーが出ました。
|
|
156
|
-
➜ npm run build
|
|
157
|
-
|
|
158
|
-
> shell-command-mcp@1.0.0 build
|
|
159
|
-
> tsc
|
|
160
|
-
|
|
161
|
-
src/server.ts:1:27 - error TS2307: Cannot find module '@modelcontextprotocol/sdk/server/mcp.js' or its corresponding type declarations.
|
|
162
|
-
|
|
163
|
-
1 import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
164
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
Found 1 error in src/server.ts:1
|
|
168
|
-
- timestamp: 20250327231843
|
|
169
|
-
prompt: |
|
|
170
|
-
以下のエラーが出ました。
|
|
171
|
-
➜ npm run build
|
|
172
|
-
|
|
173
|
-
> shell-command-mcp@1.0.0 build
|
|
174
|
-
> tsc
|
|
175
|
-
|
|
176
|
-
src/server.ts:23:7 - error TS2353: Object literal may only specify known properties, and 'method' does not exist in type 'ZodObject<{ method: ZodLiteral<string>; }, UnknownKeysParam, ZodTypeAny, { method: string; }, { method: string; }>'.
|
|
177
|
-
|
|
178
|
-
23 method: 'tools/call',
|
|
179
|
-
~~~~~~
|
|
180
|
-
|
|
181
|
-
src/server.ts:36:63 - error TS2339: Property 'params' does not exist on type '{ method: string; }'.
|
|
182
|
-
|
|
183
|
-
36 const { command, workingDir, env, timeout } = request.params.arguments;
|
|
184
|
-
~~~~~~
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
Found 2 errors in the same file, starting at: src/server.ts:23
|
|
188
|
-
- timestamp: 20250327232123
|
|
189
|
-
prompt: |
|
|
190
|
-
コンパイルが通りました
|
|
191
|
-
➜ npm run build
|
|
192
|
-
|
|
193
|
-
> shell-command-mcp@1.0.0 build
|
|
194
|
-
> tsc
|
|
195
|
-
|
|
196
|
-
以下のエラーが出ました。
|
|
197
|
-
|
|
198
|
-
> shell-command-mcp@1.0.0 lint
|
|
199
|
-
> eslint src/**/*.ts
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
Oops! Something went wrong! :(
|
|
203
|
-
|
|
204
|
-
ESLint: 8.57.1
|
|
205
|
-
|
|
206
|
-
Error: ESLint configuration in .eslintrc.js is invalid:
|
|
207
|
-
- Unexpected top-level property "__esModule".
|
|
208
|
-
|
|
209
|
-
at ConfigValidator.validateConfigSchema (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2177:19)
|
|
210
|
-
at ConfigArrayFactory._normalizeConfigData (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3019:19)
|
|
211
|
-
at ConfigArrayFactory.loadInDirectory (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2887:33)
|
|
212
|
-
at CascadingConfigArrayFactory._loadConfigInAncestors (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3871:46)
|
|
213
|
-
at CascadingConfigArrayFactory._loadConfigInAncestors (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3890:20)
|
|
214
|
-
at CascadingConfigArrayFactory.getConfigArrayForFile (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3792:18)
|
|
215
|
-
at FileEnumerator._iterateFilesRecursive (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/eslint/lib/cli-engine/file-enumerator.js:450:49)
|
|
216
|
-
at _iterateFilesRecursive.next (<anonymous>)
|
|
217
|
-
at FileEnumerator.iterateFiles (/home/kaznak/tmp/mcpworks/shell-mcp/node_modules/eslint/lib/cli-engine/file-enumerator.js:299:49)
|
|
218
|
-
at iterateFiles.next (<anonymous>)
|
|
219
|
-
- timestamp: 20250327232339
|
|
220
|
-
prompt: |
|
|
221
|
-
以下のエラーが出ました。
|
|
222
|
-
➜ npm run lint
|
|
223
|
-
|
|
224
|
-
> shell-command-mcp@1.0.0 lint
|
|
225
|
-
> eslint src/**/*.ts
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Oops! Something went wrong! :(
|
|
229
|
-
|
|
230
|
-
ESLint: 8.57.1
|
|
231
|
-
|
|
232
|
-
ReferenceError: Cannot read config file: /home/kaznak/tmp/mcpworks/shell-mcp/.eslintrc.js
|
|
233
|
-
Error: module is not defined
|
|
234
|
-
at file:///home/kaznak/tmp/mcpworks/shell-mcp/.eslintrc.js:1:1
|
|
235
|
-
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
|
|
236
|
-
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:360:47)
|
|
237
|
-
at loadESMFromCJS (node:internal/modules/cjs/loader:1385:24)
|
|
238
|
-
at Module._compile (node:internal/modules/cjs/loader:1536:5)
|
|
239
|
-
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
240
|
-
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
241
|
-
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
242
|
-
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
243
|
-
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
244
|
-
- timestamp: 20250327232712
|
|
245
|
-
prompt: |
|
|
246
|
-
npm スクリプト format は以下のように変更しました。
|
|
247
|
-
> "format": "prettier -uw .",
|
|
248
|
-
|
|
249
|
-
また以下の内容の .prettierignore ファイルを追加しました。
|
|
250
|
-
> package-lock.json
|
|
251
|
-
|
|
252
|
-
lint ツールが動作するようになりました。
|
|
253
|
-
➜ npm run lint
|
|
254
|
-
|
|
255
|
-
> shell-command-mcp@1.0.0 lint
|
|
256
|
-
> eslint src/**/*.ts
|
|
257
|
-
|
|
258
|
-
=============
|
|
259
|
-
|
|
260
|
-
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
|
|
261
|
-
|
|
262
|
-
You may find that it works just fine, or you may not.
|
|
263
|
-
|
|
264
|
-
SUPPORTED TYPESCRIPT VERSIONS: >=4.3.5 <5.4.0
|
|
265
|
-
|
|
266
|
-
YOUR TYPESCRIPT VERSION: 5.8.2
|
|
267
|
-
|
|
268
|
-
Please only submit bug reports when using the officially supported version.
|
|
269
|
-
|
|
270
|
-
=============
|
|
271
|
-
|
|
272
|
-
/home/kaznak/tmp/mcpworks/shell-mcp/src/utils.ts
|
|
273
|
-
41:27 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
274
|
-
42:27 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
275
|
-
43:29 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
276
|
-
|
|
277
|
-
✖ 3 problems (3 errors, 0 warnings)
|
|
278
|
-
- timestamp: 20250327233344
|
|
279
|
-
prompt: |
|
|
280
|
-
コンパイルとlintが通るようになりました。
|
|
281
|
-
shell-mcp via ⬢ 22.14.0 …
|
|
282
|
-
➜ npm run lint
|
|
283
|
-
|
|
284
|
-
> shell-command-mcp@1.0.0 lint
|
|
285
|
-
> eslint src/**/*.ts
|
|
286
|
-
|
|
287
|
-
=============
|
|
288
|
-
|
|
289
|
-
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
|
|
290
|
-
|
|
291
|
-
You may find that it works just fine, or you may not.
|
|
292
|
-
|
|
293
|
-
SUPPORTED TYPESCRIPT VERSIONS: >=4.3.5 <5.4.0
|
|
294
|
-
|
|
295
|
-
YOUR TYPESCRIPT VERSION: 5.8.2
|
|
296
|
-
|
|
297
|
-
Please only submit bug reports when using the officially supported version.
|
|
298
|
-
|
|
299
|
-
=============
|
|
300
|
-
|
|
301
|
-
shell-mcp via ⬢ 22.14.0 …
|
|
302
|
-
➜ npm run build
|
|
303
|
-
|
|
304
|
-
> shell-command-mcp@1.0.0 build
|
|
305
|
-
> tsc
|
|
306
|
-
|
|
307
|
-
イメージのビルドでエラーが出ました。
|
|
308
|
-
shell-mcp via ⬢ 22.14.0 …
|
|
309
|
-
➜ make
|
|
310
|
-
docker-compose build
|
|
311
|
-
WARN[0000] /home/kaznak/tmp/mcpworks/shell-mcp/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
|
|
312
|
-
[+] Building 0/0
|
|
313
|
-
[+] Building 0/1erver Building 0.0s
|
|
314
|
-
[+] Building 24.8s (5/17) docker:default
|
|
315
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
316
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
317
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
318
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
319
|
-
=> => transferring context: 2B 0.0s
|
|
320
|
-
=> [mcp-server internal] load build context 0.7s
|
|
321
|
-
=> => transferring context: 64.85MB 0.7s
|
|
322
|
-
[+] Building 25.0s (5/17) docker:default
|
|
323
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
324
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
325
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
326
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
327
|
-
=> => transferring context: 2B 0.0s
|
|
328
|
-
=> [mcp-server internal] load build context 0.7s
|
|
329
|
-
=> => transferring context: 64.85MB 0.7s Building 25.1s
|
|
330
|
-
[+] Building 25.1s (5/17) docker:default
|
|
331
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
332
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
333
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
334
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
335
|
-
=> => transferring context: 2B 0.0s
|
|
336
|
-
=> [mcp-server internal] load build context 0.7s
|
|
337
|
-
=> => transferring context: 64.85MB 0.7s Building 25.3s
|
|
338
|
-
[+] Building 25.3s (5/17) docker:default
|
|
339
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
340
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
341
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
342
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
343
|
-
=> => transferring context: 2B 0.0s
|
|
344
|
-
=> [mcp-server internal] load build context 0.7s
|
|
345
|
-
=> => transferring context: 64.85MB 0.7s Building 25.4s
|
|
346
|
-
[+] Building 25.4s (5/17) docker:default
|
|
347
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
348
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
349
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
350
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
351
|
-
=> => transferring context: 2B 0.0s
|
|
352
|
-
=> [mcp-server internal] load build context 0.7s
|
|
353
|
-
=> => transferring context: 64.85MB 0.7s Building 25.6s
|
|
354
|
-
[+] Building 25.6s (5/17) docker:default
|
|
355
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
356
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
357
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
358
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
359
|
-
=> => transferring context: 2B 0.0s
|
|
360
|
-
=> [mcp-server internal] load build context 0.7s
|
|
361
|
-
[+] Building 0/1ing context: 64.85MB 0.7s
|
|
362
|
-
[+] Building 94.9s (6/17) docker:default
|
|
363
|
-
[+] Building 102.8s (7/17) docker:default
|
|
364
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
365
|
-
=> => transferring dockerfile: 2.31kB 0.0s
|
|
366
|
-
=> [mcp-server internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
|
|
367
|
-
=> [mcp-server internal] load .dockerignore 0.0s
|
|
368
|
-
=> => transferring context: 2B 0.0s
|
|
369
|
-
=> [mcp-server internal] load build context 0.7s
|
|
370
|
-
=> => transferring context: 64.85MB 0.7s
|
|
371
|
-
=> CACHED [mcp-server 1/13] FROM docker.io/library/ubuntu:22.04 0.0s
|
|
372
|
-
=> [mcp-server 2/13] RUN apt-get update && apt-get install -y curl wget git gnupg lsb-release software-properties-common apt-transport-https ca-certificates unzip zip 83.1s
|
|
373
|
-
=> ERROR [mcp-server 3/13] RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get update && apt-get install -y nodejs && apt-get clean && rm -rf /var/lib/apt/lists/* 19.6s
|
|
374
|
-
------
|
|
375
|
-
> [mcp-server 3/13] RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get update && apt-get install -y nodejs && apt-get clean && rm -rf /var/lib/apt/lists/*:
|
|
376
|
-
0.366 2025-03-27 14:31:28 - Installing pre-requisites
|
|
377
|
-
0.740 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
|
|
378
|
-
0.886 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
|
|
379
|
-
1.556 Get:3 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [3884 kB]
|
|
380
|
-
2.298 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
|
|
381
|
-
2.635 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
|
|
382
|
-
2.683 Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [47.7 kB]
|
|
383
|
-
2.688 Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2735 kB]
|
|
384
|
-
3.052 Get:8 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
|
|
385
|
-
3.298 Get:9 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
|
|
386
|
-
3.371 Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1239 kB]
|
|
387
|
-
6.498 Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
|
|
388
|
-
6.689 Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
|
|
389
|
-
6.708 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [4049 kB]
|
|
390
|
-
7.100 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1538 kB]
|
|
391
|
-
7.215 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3045 kB]
|
|
392
|
-
7.488 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [55.7 kB]
|
|
393
|
-
7.493 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [35.2 kB]
|
|
394
|
-
7.496 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [82.7 kB]
|
|
395
|
-
7.602 Fetched 37.1 MB in 7s (5136 kB/s)
|
|
396
|
-
7.602 Reading package lists...
|
|
397
|
-
8.374 Reading package lists...
|
|
398
|
-
9.192 Building dependency tree...
|
|
399
|
-
9.367 Reading state information...
|
|
400
|
-
9.532 ca-certificates is already the newest version (20240203~22.04.1).
|
|
401
|
-
9.532 curl is already the newest version (7.81.0-1ubuntu1.20).
|
|
402
|
-
9.532 gnupg is already the newest version (2.2.27-3ubuntu2.1).
|
|
403
|
-
9.532 apt-transport-https is already the newest version (2.4.13).
|
|
404
|
-
9.532 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
|
|
405
|
-
9.778 Get:1 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
|
|
406
|
-
9.842 Get:2 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [10.8 kB]
|
|
407
|
-
10.06 Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
|
|
408
|
-
10.21 Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
|
|
409
|
-
10.46 Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
|
|
410
|
-
10.71 Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
|
|
411
|
-
10.77 Fetched 23.0 kB in 1s (21.5 kB/s)
|
|
412
|
-
10.77 Reading package lists...
|
|
413
|
-
11.49 2025-03-27 14:31:39 - Repository configured successfully.
|
|
414
|
-
11.49 2025-03-27 14:31:39 - To install Node.js, run: apt-get install nodejs -y
|
|
415
|
-
11.49 2025-03-27 14:31:39 - You can use N|solid Runtime as a node.js alternative
|
|
416
|
-
11.49 2025-03-27 14:31:39 - To install N|solid Runtime, run: apt-get install nsolid -y
|
|
417
|
-
11.49
|
|
418
|
-
11.59 Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
|
|
419
|
-
11.88 Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
|
|
420
|
-
12.02 Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
|
|
421
|
-
12.26 Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
|
|
422
|
-
12.49 Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
|
|
423
|
-
12.55 Reading package lists...
|
|
424
|
-
13.29 Reading package lists...
|
|
425
|
-
14.01 Building dependency tree...
|
|
426
|
-
14.15 Reading state information...
|
|
427
|
-
14.30 The following packages were automatically installed and are no longer required:
|
|
428
|
-
14.30 gyp libc-ares2 libjs-events libjs-inherits libjs-is-typedarray
|
|
429
|
-
14.30 libjs-typedarray-to-buffer libnode-dev libnode72 libssl-dev libuv1-dev
|
|
430
|
-
14.30 node-abbrev node-agent-base node-ansi-regex node-ansi-styles node-ansistyles
|
|
431
|
-
14.30 node-aproba node-archy node-are-we-there-yet node-asap node-balanced-match
|
|
432
|
-
14.30 node-brace-expansion node-builtins node-chalk node-chownr node-cli-table
|
|
433
|
-
14.30 node-clone node-color-convert node-color-name node-colors node-columnify
|
|
434
|
-
14.30 node-console-control-strings node-core-util-is node-debug
|
|
435
|
-
14.30 node-decompress-response node-defaults node-delegates node-depd
|
|
436
|
-
14.30 node-encoding node-end-of-stream node-err-code node-escape-string-regexp
|
|
437
|
-
14.30 node-events node-fancy-log node-fs-write-stream-atomic node-fs.realpath
|
|
438
|
-
14.30 node-function-bind node-gauge node-get-stream node-glob node-got
|
|
439
|
-
14.30 node-graceful-fs node-has-flag node-has-unicode node-hosted-git-info
|
|
440
|
-
14.30 node-https-proxy-agent node-iconv-lite node-iferr node-imurmurhash
|
|
441
|
-
14.30 node-indent-string node-inflight node-inherits node-ini node-ip
|
|
442
|
-
14.30 node-ip-regex node-is-typedarray node-isarray node-isexe node-json-buffer
|
|
443
|
-
14.30 node-json-parse-better-errors node-jsonparse node-lowercase-keys
|
|
444
|
-
14.30 node-lru-cache node-mimic-response node-minimatch node-minipass node-ms
|
|
445
|
-
14.30 node-mute-stream node-negotiator node-normalize-package-data
|
|
446
|
-
14.30 node-npm-bundled node-npm-package-arg node-npmlog node-object-assign
|
|
447
|
-
14.30 node-once node-osenv node-p-cancelable node-p-map node-path-is-absolute
|
|
448
|
-
14.30 node-process-nextick-args node-promise-inflight node-promise-retry
|
|
449
|
-
14.30 node-promzard node-pump node-quick-lru node-read node-read-package-json
|
|
450
|
-
14.30 node-readable-stream node-resolve node-retry node-rimraf node-run-queue
|
|
451
|
-
14.30 node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash
|
|
452
|
-
14.30 node-slice-ansi node-spdx-correct node-spdx-exceptions
|
|
453
|
-
14.30 node-spdx-expression-parse node-spdx-license-ids node-ssri
|
|
454
|
-
14.30 node-string-decoder node-string-width node-strip-ansi node-supports-color
|
|
455
|
-
14.30 node-text-table node-time-stamp node-typedarray-to-buffer
|
|
456
|
-
14.30 node-unique-filename node-util-deprecate node-validate-npm-package-license
|
|
457
|
-
14.30 node-validate-npm-package-name node-wcwidth.js node-whatwg-fetch
|
|
458
|
-
14.30 node-wide-align node-wrappy node-write-file-atomic node-yallist
|
|
459
|
-
14.30 Use 'apt autoremove' to remove them.
|
|
460
|
-
14.32 The following packages will be REMOVED:
|
|
461
|
-
14.32 node-cacache node-copy-concurrently node-gyp node-mkdirp
|
|
462
|
-
14.32 node-move-concurrently node-nopt node-tar node-which npm
|
|
463
|
-
14.32 The following packages will be upgraded:
|
|
464
|
-
14.32 nodejs
|
|
465
|
-
14.39 1 upgraded, 0 newly installed, 9 to remove and 13 not upgraded.
|
|
466
|
-
14.39 Need to get 32.0 MB of archives.
|
|
467
|
-
14.39 After this operation, 195 MB of additional disk space will be used.
|
|
468
|
-
14.39 Get:1 https://deb.nodesource.com/node_20.x nodistro/main amd64 nodejs amd64 20.19.0-1nodesource1 [32.0 MB]
|
|
469
|
-
17.30 debconf: delaying package configuration, since apt-utils is not installed
|
|
470
|
-
17.35 Fetched 32.0 MB in 3s (10.7 MB/s)
|
|
471
|
-
(Reading database ... 23576 files and directories currently installed.)
|
|
472
|
-
17.38 Removing npm (8.5.1~ds-1) ...
|
|
473
|
-
17.47 Removing node-cacache (15.0.5+~cs13.9.21-3) ...
|
|
474
|
-
17.51 Removing node-move-concurrently (1.0.1-4) ...
|
|
475
|
-
17.55 Removing node-copy-concurrently (1.0.5-8) ...
|
|
476
|
-
17.58 Removing node-gyp (8.4.1-1) ...
|
|
477
|
-
17.62 Removing node-tar (6.1.11+ds1+~cs6.0.6-1) ...
|
|
478
|
-
17.66 Removing node-mkdirp (1.0.4+~1.0.2-1) ...
|
|
479
|
-
17.70 Removing node-nopt (5.0.0-2) ...
|
|
480
|
-
17.73 Removing node-which (2.0.2+~cs1.3.2-2) ...
|
|
481
|
-
(Reading database ... 22609 files and directories currently installed.)
|
|
482
|
-
17.81 Preparing to unpack .../nodejs_20.19.0-1nodesource1_amd64.deb ...
|
|
483
|
-
17.82 Unpacking nodejs (20.19.0-1nodesource1) over (12.22.9~dfsg-1ubuntu3.6) ...
|
|
484
|
-
19.53 dpkg: error processing archive /var/cache/apt/archives/nodejs_20.19.0-1nodesource1_amd64.deb (--unpack):
|
|
485
|
-
19.53 trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3.6
|
|
486
|
-
19.54 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
|
|
487
|
-
19.56 Errors were encountered while processing:
|
|
488
|
-
19.56 /var/cache/apt/archives/nodejs_20.19.0-1nodesource1_amd64.deb
|
|
489
|
-
[+] Building 0/1cess /usr/bin/dpkg returned an error code (1)
|
|
490
|
-
⠼ Service mcp-server Building 103.4s
|
|
491
|
-
failed to solve: process "/bin/sh -c curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get update && apt-get install -y nodejs && apt-get clean && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
|
|
492
|
-
make: *** [Makefile:5: build] Error 17
|
|
493
|
-
- timestamp: 20250327233955
|
|
494
|
-
prompt: |
|
|
495
|
-
以下のエラーが出ました。
|
|
496
|
-
shell-mcp via ⬢ 22.14.0 …
|
|
497
|
-
➜ make
|
|
498
|
-
docker-compose build
|
|
499
|
-
[+] Building 0/0
|
|
500
|
-
[+] Building 0/1erver Building 0.1s
|
|
501
|
-
[+] Building 21.2s (5/17) docker:default
|
|
502
|
-
=> [mcp-server internal] load build definition from Dockerfile 0.0s
|
|
503
|
-
|
|
504
|
-
... ommited ...
|
|
505
|
-
|
|
506
|
-
=> [mcp-server 9/13] WORKDIR /home/mcp/app 0.0s
|
|
507
|
-
=> [mcp-server 10/13] COPY package*.json ./ 0.1s
|
|
508
|
-
=> ERROR [mcp-server 11/13] RUN npm ci 1.2s
|
|
509
|
-
------
|
|
510
|
-
> [mcp-server 11/13] RUN npm ci:
|
|
511
|
-
1.189 npm error code EUSAGE
|
|
512
|
-
1.189 npm error
|
|
513
|
-
1.189 npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
|
|
514
|
-
1.189 npm error
|
|
515
|
-
1.189 npm error Invalid: lock file's typescript@5.8.2 does not satisfy typescript@5.3.3
|
|
516
|
-
1.189 npm error
|
|
517
|
-
1.189 npm error Clean install a project
|
|
518
|
-
1.189 npm error
|
|
519
|
-
1.189 npm error Usage:
|
|
520
|
-
1.189 npm error npm ci
|
|
521
|
-
1.189 npm error
|
|
522
|
-
1.189 npm error Options:
|
|
523
|
-
1.189 npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
|
|
524
|
-
1.189 npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
|
|
525
|
-
1.189 npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
|
|
526
|
-
1.189 npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
|
|
527
|
-
1.189 npm error [--no-bin-links] [--no-fund] [--dry-run]
|
|
528
|
-
1.189 npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
|
|
529
|
-
1.189 npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
|
|
530
|
-
1.189 npm error
|
|
531
|
-
1.189 npm error aliases: clean-install, ic, install-clean, isntall-clean
|
|
532
|
-
1.189 npm error
|
|
533
|
-
1.189 npm error Run "npm help ci" for more info
|
|
534
|
-
1.191 npm notice
|
|
535
|
-
1.191 npm notice New major version of npm available! 10.8.2 -> 11.2.0
|
|
536
|
-
1.191 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
|
|
537
|
-
1.191 npm notice To update run: npm install -g npm@11.2.0
|
|
538
|
-
1.191 npm notice
|
|
539
|
-
[+] Building 0/1A complete log of this run can be found in: /root/.npm/_logs/2025-03-27T14_37_25_273Z-debug-0.log
|
|
540
|
-
⠙ Service mcp-server Building 111.1s
|
|
541
|
-
failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1
|
|
542
|
-
make: *** [Makefile:5: build] Error 17
|