@mcpc-tech/cli 0.1.1-beta.5 → 0.1.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 +6 -6
- package/app.mjs +4269 -0
- package/{src/bin.mjs → bin.mjs} +1683 -682
- package/index.mjs +4483 -0
- package/package.json +28 -23
- package/server.mjs +4470 -0
- package/types/src/app.d.ts.map +1 -1
- package/types/src/config/loader.d.ts +69 -0
- package/types/src/config/loader.d.ts.map +1 -0
package/README.md
CHANGED
|
@@ -36,19 +36,19 @@ npx -y deno run -A jsr:@mcpc/cli/bin --help
|
|
|
36
36
|
**Inline JSON config:**
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
deno run
|
|
39
|
+
npx -y deno run -A jsr:@mcpc/cli/bin --config '[{"name":"my-agent","description":"..."}]'
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
**From URL:**
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
deno run
|
|
45
|
+
npx -y deno run -A jsr:@mcpc/cli/bin --config-url https://example.com/config.json
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
**From URL with custom headers:**
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
deno run
|
|
51
|
+
npx -y deno run -A jsr:@mcpc/cli/bin \
|
|
52
52
|
--config-url https://api.example.com/config.json \
|
|
53
53
|
-H "Authorization: Bearer token123" \
|
|
54
54
|
-H "X-Custom-Header: value"
|
|
@@ -57,13 +57,13 @@ deno run --allow-all src/bin.ts \
|
|
|
57
57
|
**From file:**
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
deno run
|
|
60
|
+
npx -y deno run -A jsr:@mcpc/cli/bin --config-file ./my-config.json
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
**Default (uses ./mcpc.config.json):**
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
deno run
|
|
66
|
+
npx -y deno run -A jsr:@mcpc/cli/bin
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
**Environment variable substitution:**
|
|
@@ -89,7 +89,7 @@ Config files support `$ENV_VAR_NAME` syntax:
|
|
|
89
89
|
**HTTP server:**
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
deno run
|
|
92
|
+
npx -y deno run -A jsr:@mcpc/cli/server --config-file ./my-config.json
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
## Examples
|