You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLI.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Options:
19
19
20
20
Commands:
21
21
init [directory] Create a new MCPB extension manifest
22
-
validate <manifest> Validate a MCPB manifest file
22
+
validate [manifest] Validate a MCPB manifest file
23
23
pack <directory> [output] Pack a directory into a MCPB extension
24
24
sign [options] <mcpb-file> Sign a MCPB extension file
25
25
verify <mcpb-file> Verify the signature of a MCPB extension file
@@ -58,7 +58,7 @@ The command will prompt you for:
58
58
59
59
After creating the manifest, it provides helpful next steps based on your server type.
60
60
61
-
### `mcpb validate <path>`
61
+
### `mcpb validate [path]`
62
62
63
63
Validates a MCPB manifest file against the schema. You can provide either a direct path to a manifest.json file or a directory containing one.
64
64
@@ -69,6 +69,9 @@ mcpb validate manifest.json
69
69
# Validate manifest in directory
70
70
mcpb validate ./my-extension
71
71
mcpb validate .
72
+
73
+
# Validate using --dirname without specifying manifest.json explicitly
74
+
mcpb validate --dirname ./my-extension
72
75
```
73
76
74
77
#### Additional validation with `--dirname`
@@ -79,7 +82,7 @@ Passing `--dirname <directory>` performs deeper checks that require access to th
79
82
- Launches the server (honoring `${__dirname}` tokens) and discovers tools & prompts using the same logic as `mcpb pack`.
80
83
- Compares discovered capability names against the manifest and fails if they differ.
81
84
82
-
Use `--update` alongside `--dirname` to rewrite the manifest in-place with the discovered tool/prompt lists (including `tools_generated` / `prompts_generated` flags). When rewriting, the CLI also copies over tool descriptions and prompt metadata (descriptions, declared arguments, and prompt text) returned by the server. Without `--update`, any mismatch causes the command to fail.
85
+
When `--dirname` is supplied without an explicit manifest argument, the CLI automatically resolves `<directory>/manifest.json`. Use `--update` alongside `--dirname` to rewrite the manifest in-place with the discovered tool/prompt lists (including `tools_generated` / `prompts_generated` flags). When rewriting, the CLI also copies over tool descriptions and prompt metadata (descriptions, declared arguments, and prompt text) returned by the server. Without `--update`, any mismatch causes the command to fail.
83
86
84
87
The discovery step respects the same environment overrides as `mcpb pack`:
0 commit comments