@agiflowai/one-mcp 0.2.7 → 0.2.8
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 +34 -0
- package/dist/cli.cjs +564 -52
- package/dist/cli.mjs +565 -53
- package/dist/{http-B4NAfsQl.cjs → http-BzrxGEr-.cjs} +270 -145
- package/dist/{http-DSkkpGJU.mjs → http-DeUYygKb.mjs} +271 -146
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -128,6 +128,12 @@ mcpServers:
|
|
|
128
128
|
command: node
|
|
129
129
|
args: ["server.js"]
|
|
130
130
|
disabled: true
|
|
131
|
+
|
|
132
|
+
# Custom timeout for slow servers
|
|
133
|
+
slow-server:
|
|
134
|
+
command: npx
|
|
135
|
+
args: ["-y", "@heavy/mcp-package"]
|
|
136
|
+
timeout: 60000 # 60 seconds (default: 30000)
|
|
131
137
|
```
|
|
132
138
|
|
|
133
139
|
### Environment Variables
|
|
@@ -414,6 +420,9 @@ npx @agiflowai/one-mcp mcp-serve --config ./mcp-config.yaml --type http --port 3
|
|
|
414
420
|
# Initialize config file
|
|
415
421
|
npx @agiflowai/one-mcp init --output mcp-config.yaml
|
|
416
422
|
|
|
423
|
+
# Pre-download packages for faster startup
|
|
424
|
+
npx @agiflowai/one-mcp prefetch --config ./mcp-config.yaml
|
|
425
|
+
|
|
417
426
|
# List all tools from configured servers
|
|
418
427
|
npx @agiflowai/one-mcp list-tools --config ./mcp-config.yaml
|
|
419
428
|
|
|
@@ -424,6 +433,31 @@ npx @agiflowai/one-mcp describe-tools --config ./mcp-config.yaml --tools read_fi
|
|
|
424
433
|
npx @agiflowai/one-mcp use-tool --config ./mcp-config.yaml --tool-name read_file --args '{"path": "/tmp/test.txt"}'
|
|
425
434
|
```
|
|
426
435
|
|
|
436
|
+
### Prefetch Command
|
|
437
|
+
|
|
438
|
+
Pre-download packages used by MCP servers (npx, pnpx, uvx, uv) to speed up initial connections:
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
# Prefetch all packages
|
|
442
|
+
npx @agiflowai/one-mcp prefetch --config ./mcp-config.yaml
|
|
443
|
+
|
|
444
|
+
# Dry run - see what would be prefetched
|
|
445
|
+
npx @agiflowai/one-mcp prefetch --config ./mcp-config.yaml --dry-run
|
|
446
|
+
|
|
447
|
+
# Run prefetch in parallel (faster)
|
|
448
|
+
npx @agiflowai/one-mcp prefetch --config ./mcp-config.yaml --parallel
|
|
449
|
+
|
|
450
|
+
# Filter by package manager
|
|
451
|
+
npx @agiflowai/one-mcp prefetch --config ./mcp-config.yaml --filter npx
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
| Option | Description |
|
|
455
|
+
|--------|-------------|
|
|
456
|
+
| `-c, --config` | Path to config file |
|
|
457
|
+
| `-p, --parallel` | Run prefetch commands in parallel |
|
|
458
|
+
| `-d, --dry-run` | Show what would be prefetched without executing |
|
|
459
|
+
| `-f, --filter` | Filter by package manager: `npx`, `pnpx`, `uvx`, or `uv` |
|
|
460
|
+
|
|
427
461
|
### Server Options
|
|
428
462
|
|
|
429
463
|
| Option | Description | Default |
|