@1mcp/agent 0.20.1 → 0.20.2
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.js +1 -1
- package/package.json +1 -1
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.2";
|
|
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.js
CHANGED
|
@@ -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.2';
|
|
16
16
|
export const MCP_URI_SEPARATOR = '_1mcp_';
|
|
17
17
|
// Global config paths
|
|
18
18
|
export const CONFIG_DIR_NAME = '1mcp';
|