@1mcp/agent 0.20.1 → 0.20.3-alpha1
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 +85 -10
- package/build/constants.d.ts +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -1
- package/build/constants.js.map +1 -1
- package/package.json +13 -2
package/README.md
CHANGED
|
@@ -210,45 +210,120 @@ Available options:
|
|
|
210
210
|
|
|
211
211
|
## Docker
|
|
212
212
|
|
|
213
|
-
You can also run 1MCP using Docker:
|
|
213
|
+
You can also run 1MCP using Docker. We provide two image variants:
|
|
214
|
+
|
|
215
|
+
### Image Variants
|
|
216
|
+
|
|
217
|
+
- **`latest`**: Full-featured image with extra tools (uv, bun) - default
|
|
218
|
+
- **`lite`**: Lightweight image with basic Node.js package managers only (npm, pnpm, yarn)
|
|
219
|
+
|
|
220
|
+
### Basic Usage
|
|
214
221
|
|
|
215
222
|
```bash
|
|
216
|
-
# Pull the latest image
|
|
223
|
+
# Pull the latest full-featured image (default)
|
|
217
224
|
docker pull ghcr.io/1mcp-app/agent:latest
|
|
218
225
|
|
|
219
|
-
#
|
|
220
|
-
docker
|
|
226
|
+
# Or pull the lightweight version
|
|
227
|
+
docker pull ghcr.io/1mcp-app/agent:lite
|
|
228
|
+
|
|
229
|
+
# Run with HTTP transport (default) - IMPORTANT: Set host to 0.0.0.0 for Docker networking
|
|
230
|
+
docker run -p 3050:3050 \
|
|
231
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
232
|
+
ghcr.io/1mcp-app/agent
|
|
233
|
+
|
|
234
|
+
# Run the lite version with proper networking
|
|
235
|
+
docker run -p 3050:3050 \
|
|
236
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
237
|
+
ghcr.io/1mcp-app/agent:lite
|
|
221
238
|
|
|
222
239
|
# Run with a custom config file
|
|
223
|
-
docker run -p 3050:3050
|
|
240
|
+
docker run -p 3050:3050 \
|
|
241
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
242
|
+
-v /path/to/config.json:/config.json \
|
|
243
|
+
ghcr.io/1mcp-app/agent --config /config.json
|
|
224
244
|
|
|
225
245
|
# Run with stdio transport
|
|
226
246
|
docker run -i ghcr.io/1mcp-app/agent --transport stdio
|
|
227
247
|
```
|
|
228
248
|
|
|
229
|
-
Available
|
|
249
|
+
### Available Image Tags
|
|
250
|
+
|
|
251
|
+
#### Full-Featured Images (with uv, bun)
|
|
230
252
|
|
|
231
|
-
- `latest`: Latest stable release
|
|
253
|
+
- `latest`: Latest stable release with extra tools
|
|
232
254
|
- `vX.Y.Z`: Specific version (e.g. `v1.0.0`)
|
|
255
|
+
- `vX.Y`: Major.minor version (e.g. `v1.0`)
|
|
256
|
+
- `vX`: Major version (e.g. `v1`)
|
|
233
257
|
- `sha-<commit>`: Specific commit
|
|
234
258
|
|
|
235
|
-
|
|
259
|
+
#### Lightweight Images (npm, pnpm, yarn only)
|
|
260
|
+
|
|
261
|
+
- `lite`: Latest stable lite release
|
|
262
|
+
- `vX.Y.Z-lite`: Specific version lite (e.g. `v1.0.0-lite`)
|
|
263
|
+
- `vX.Y-lite`: Major.minor version lite (e.g. `v1.0-lite`)
|
|
264
|
+
- `vX-lite`: Major version lite (e.g. `v1-lite`)
|
|
265
|
+
- `sha-<commit>-lite`: Specific commit lite
|
|
266
|
+
|
|
267
|
+
### Configuration Examples
|
|
236
268
|
|
|
237
269
|
```bash
|
|
238
|
-
#
|
|
270
|
+
# Essential networking configuration
|
|
271
|
+
docker run -p 3050:3050 \
|
|
272
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
273
|
+
-e ONE_MCP_PORT=3050 \
|
|
274
|
+
-e ONE_MCP_EXTERNAL_URL=http://127.0.0.1:3050 \
|
|
275
|
+
ghcr.io/1mcp-app/agent
|
|
276
|
+
|
|
277
|
+
# Custom port, tags, and logging (full image)
|
|
239
278
|
docker run -p 3051:3051 \
|
|
279
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
240
280
|
-e ONE_MCP_PORT=3051 \
|
|
281
|
+
-e ONE_MCP_EXTERNAL_URL=http://127.0.0.1:3051 \
|
|
241
282
|
-e ONE_MCP_TAGS=network,filesystem \
|
|
242
283
|
-e ONE_MCP_LOG_LEVEL=debug \
|
|
243
284
|
ghcr.io/1mcp-app/agent
|
|
244
285
|
|
|
245
|
-
# With external URL for reverse proxy
|
|
286
|
+
# With external URL for reverse proxy (lite image)
|
|
246
287
|
docker run -p 3050:3050 \
|
|
288
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
247
289
|
-e ONE_MCP_EXTERNAL_URL=https://mcp.example.com \
|
|
248
290
|
-e ONE_MCP_TRUST_PROXY=true \
|
|
291
|
+
ghcr.io/1mcp-app/agent:lite
|
|
292
|
+
|
|
293
|
+
# For users in China mainland - faster package installation
|
|
294
|
+
docker run -p 3050:3050 \
|
|
295
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
296
|
+
-e ONE_MCP_PORT=3050 \
|
|
297
|
+
-e ONE_MCP_EXTERNAL_URL=http://127.0.0.1:3050 \
|
|
298
|
+
-e npm_config_registry=https://registry.npmmirror.com \
|
|
299
|
+
-e UV_INDEX=http://mirrors.aliyun.com/pypi/simple \
|
|
300
|
+
-e UV_DEFAULT_INDEX=http://mirrors.aliyun.com/pypi/simple \
|
|
301
|
+
ghcr.io/1mcp-app/agent
|
|
302
|
+
|
|
303
|
+
# Behind corporate proxy
|
|
304
|
+
docker run -p 3050:3050 \
|
|
305
|
+
-e ONE_MCP_HOST=0.0.0.0 \
|
|
306
|
+
-e https_proxy=${https_proxy} \
|
|
307
|
+
-e http_proxy=${http_proxy} \
|
|
249
308
|
ghcr.io/1mcp-app/agent
|
|
250
309
|
```
|
|
251
310
|
|
|
311
|
+
### Image Details
|
|
312
|
+
|
|
313
|
+
**Full Image (`latest`):**
|
|
314
|
+
|
|
315
|
+
- Node.js (version from `.node-version`)
|
|
316
|
+
- npm, pnpm, yarn
|
|
317
|
+
- uv (Python package manager)
|
|
318
|
+
- bun (JavaScript runtime)
|
|
319
|
+
- curl, python3, bash
|
|
320
|
+
|
|
321
|
+
**Lite Image (`lite`):**
|
|
322
|
+
|
|
323
|
+
- Node.js (version from `.node-version`)
|
|
324
|
+
- npm, pnpm, yarn only
|
|
325
|
+
- Smaller size, faster downloads
|
|
326
|
+
|
|
252
327
|
## Trust Proxy Configuration
|
|
253
328
|
|
|
254
329
|
When running 1MCP behind a reverse proxy, configure trust proxy settings for proper client IP detection:
|
package/build/constants.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const STREAMABLE_HTTP_ENDPOINT = "/mcp";
|
|
|
10
10
|
export declare const HEALTH_ENDPOINT = "/health";
|
|
11
11
|
export declare const MCP_CONFIG_FILE = "mcp.json";
|
|
12
12
|
export declare const MCP_SERVER_NAME = "1mcp";
|
|
13
|
-
export declare const MCP_SERVER_VERSION = "0.20.
|
|
13
|
+
export declare const MCP_SERVER_VERSION = "0.20.3-alpha1";
|
|
14
14
|
export declare const MCP_URI_SEPARATOR = "_1mcp_";
|
|
15
15
|
export declare const CONFIG_DIR_NAME = "1mcp";
|
|
16
16
|
export declare const BACKUP_DIR_NAME = "backups";
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB,eAAO,MAAM,IAAI,cAAc,CAAC;AAGhC,eAAO,MAAM,YAAY,SAAS,CAAC;AACnC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAC/C,eAAO,MAAM,eAAe,YAAY,CAAC;AAGzC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,M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HANGED
|
@@ -12,7 +12,7 @@ export const HEALTH_ENDPOINT = '/health';
|
|
|
12
12
|
// MCP constants
|
|
13
13
|
export const MCP_CONFIG_FILE = 'mcp.json';
|
|
14
14
|
export const MCP_SERVER_NAME = '1mcp';
|
|
15
|
-
export const MCP_SERVER_VERSION = '0.20.
|
|
15
|
+
export const MCP_SERVER_VERSION = '0.20.3-alpha1';
|
|
16
16
|
export const MCP_URI_SEPARATOR = '_1mcp_';
|
|
17
17
|
// Global config paths
|
|
18
18
|
export const CONFIG_DIR_NAME = '1mcp';
|
package/build/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,uBAAuB;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC;AACzB,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;AAEhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAC7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;AAEzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,uBAAuB;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC;AACzB,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;AAEhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM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0.20.3-alpha1",
|
|
4
4
|
"description": "One MCP server to aggregate them all - A unified Model Context Protocol server implementation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"cytoscape-cose-bilkent": "^4.1.0",
|
|
88
88
|
"dayjs": "^1.11.13",
|
|
89
89
|
"debug": "^4.4.1",
|
|
90
|
+
"esbuild": "^0.25.9",
|
|
90
91
|
"eslint": "^9.22.0",
|
|
91
92
|
"eslint-config-prettier": "^10.1.1",
|
|
92
93
|
"eslint-plugin-prettier": "^5.2.3",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"jiti": "^2.4.2",
|
|
96
97
|
"lint-staged": "^16.1.2",
|
|
97
98
|
"mermaid": "^11.9.0",
|
|
99
|
+
"postject": "^1.0.0-alpha.6",
|
|
98
100
|
"prettier": "^3.5.3",
|
|
99
101
|
"supertest": "^7.1.4",
|
|
100
102
|
"ts-node": "^10.9.2",
|
|
@@ -109,6 +111,7 @@
|
|
|
109
111
|
"dev": "tsc-watch --project tsconfig.build.json --onSuccess \"node --env-file=.env build/index.js\"",
|
|
110
112
|
"build": "tsc --project tsconfig.build.json && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
|
|
111
113
|
"clean": "rm -rf build",
|
|
114
|
+
"clean:sea": "rm -f 1mcp 1mcp.exe sea-prep.blob build/bundled.cjs",
|
|
112
115
|
"watch": "tsc --watch --project tsconfig.build.json",
|
|
113
116
|
"inspector": "npx -y @modelcontextprotocol/inspector",
|
|
114
117
|
"lint": "eslint . --ext .ts",
|
|
@@ -131,6 +134,14 @@
|
|
|
131
134
|
"test:e2e:errors": "vitest run --config vitest.e2e.config.ts test/e2e/commands/error-scenarios.test.ts",
|
|
132
135
|
"docs:dev": "vitepress dev docs",
|
|
133
136
|
"docs:build": "vitepress build docs",
|
|
134
|
-
"docs:preview": "vitepress preview docs"
|
|
137
|
+
"docs:preview": "vitepress preview docs",
|
|
138
|
+
"sea:bundle": "esbuild build/index.js --bundle --platform=node --format=cjs --outfile=build/bundled.cjs --external:fsevents --external:@esbuild/darwin-arm64",
|
|
139
|
+
"sea:prep": "node --experimental-sea-config sea-config.json",
|
|
140
|
+
"sea:build": "pnpm build && pnpm sea:bundle && pnpm sea:prep",
|
|
141
|
+
"sea:binary:macos": "node -e \"require('fs').copyFileSync(process.execPath, '1mcp')\" && codesign --remove-signature 1mcp && npx postject 1mcp NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA && codesign --sign - --entitlements entitlements.plist 1mcp && chmod +x 1mcp",
|
|
142
|
+
"sea:binary:linux": "node -e \"require('fs').copyFileSync(process.execPath, '1mcp')\" && npx postject 1mcp NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 && chmod +x 1mcp",
|
|
143
|
+
"sea:binary:win": "node -e \"require('fs').copyFileSync(process.execPath, '1mcp.exe')\" && npx postject 1mcp.exe NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2",
|
|
144
|
+
"sea:binary": "node -e \"const os = require('os'); const platform = os.platform(); const script = platform === 'darwin' ? 'sea:binary:macos' : platform === 'win32' ? 'sea:binary:win' : 'sea:binary:linux'; require('child_process').execSync('pnpm ' + script, {stdio: 'inherit'});\"",
|
|
145
|
+
"build:binaries": "pnpm sea:build && pnpm sea:binary"
|
|
135
146
|
}
|
|
136
147
|
}
|