@weibaohui/mcp2cli 0.4.0 → 0.4.1
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
CHANGED
|
@@ -166,21 +166,21 @@ cat params.yaml | mcp server tool
|
|
|
166
166
|
Control output format with `--output` / `-o`:
|
|
167
167
|
|
|
168
168
|
```bash
|
|
169
|
-
# JSON (default, human-readable with indentation)
|
|
169
|
+
# Pretty JSON (default, human-readable with indentation)
|
|
170
170
|
mcp server tool
|
|
171
171
|
|
|
172
172
|
# YAML output
|
|
173
173
|
mcp --output yaml server tool
|
|
174
174
|
|
|
175
|
-
#
|
|
176
|
-
mcp -o
|
|
175
|
+
# Compact JSON (no indentation, good for piping)
|
|
176
|
+
mcp -o compact server tool
|
|
177
177
|
```
|
|
178
178
|
|
|
179
179
|
| Format | Description | Use Case |
|
|
180
180
|
|--------|-------------|----------|
|
|
181
|
-
| `
|
|
181
|
+
| `pretty` | Pretty-printed JSON (default) | Default, debugging |
|
|
182
|
+
| `compact` | Compact JSON (no indentation) | Piping, scripts |
|
|
182
183
|
| `yaml` | YAML format | Config files, readability |
|
|
183
|
-
| `text` | Compact JSON | Piping, scripts |
|
|
184
184
|
|
|
185
185
|
## Installation
|
|
186
186
|
|
|
@@ -192,13 +192,6 @@ npm install -g @weibaohui/mcp2cli
|
|
|
192
192
|
|
|
193
193
|
Supports Linux, macOS, Windows on amd64/arm64. `mcp` command ready immediately.
|
|
194
194
|
|
|
195
|
-
### Go install
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
go install github.com/weibaohui/mcp2cli@latest
|
|
199
|
-
mv $(go env GOPATH)/bin/mcp2cli $(go env GOPATH)/bin/mcp
|
|
200
|
-
```
|
|
201
|
-
|
|
202
195
|
### Binary download
|
|
203
196
|
|
|
204
197
|
Download from [GitHub Releases](https://github.com/weibaohui/mcp2cli/releases/latest):
|
|
@@ -224,7 +217,7 @@ ren mcp2cli-windows-amd64.exe mcp.exe
|
|
|
224
217
|
|
|
225
218
|
| Flag | Short | Description | Default |
|
|
226
219
|
|------|-------|-------------|---------|
|
|
227
|
-
| `--output` | `-o` | Output format (
|
|
220
|
+
| `--output` | `-o` | Output format (pretty\|compact\|yaml) | `pretty` |
|
|
228
221
|
| `--yaml` | `-y` | YAML parameters (inline) | |
|
|
229
222
|
| `--file` | `-f` | YAML file with parameters | |
|
|
230
223
|
| `--stream` | `-s` | Enable streaming output | `false` |
|
|
Binary file
|
|
Binary file
|
package/dist/mcp2cli-linux-amd64
CHANGED
|
Binary file
|
package/dist/mcp2cli-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|