mcp2cli 2.8.0__tar.gz → 2.8.1__tar.gz
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.
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/PKG-INFO +25 -1
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/README.md +24 -0
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/pyproject.toml +1 -1
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/src/mcp2cli/__init__.py +0 -0
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/src/mcp2cli/__main__.py +0 -0
- {mcp2cli-2.8.0 → mcp2cli-2.8.1}/src/mcp2cli/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp2cli
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.1
|
|
4
4
|
Summary: Turn any MCP server or OpenAPI spec into a CLI
|
|
5
5
|
Author: Stephan Fitzpatrick
|
|
6
6
|
Author-email: Stephan Fitzpatrick <stephan@knowsuchagency.com>
|
|
@@ -216,6 +216,26 @@ Filtering options:
|
|
|
216
216
|
|
|
217
217
|
Configs are stored in `~/.config/mcp2cli/baked.json`. Override with `MCP2CLI_CONFIG_DIR`.
|
|
218
218
|
|
|
219
|
+
### Usage-aware tool ranking
|
|
220
|
+
|
|
221
|
+
mcp2cli tracks tool invocations locally and uses that data to rank `--list` output, reducing token costs for LLM agents working with large servers.
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# Default --list: ~1,400 tokens for 96 tools
|
|
225
|
+
mcp2cli @myapi --list
|
|
226
|
+
|
|
227
|
+
# Top 10 most-used tools, names only: ~20 tokens
|
|
228
|
+
mcp2cli @myapi --list --top 10 --compact
|
|
229
|
+
|
|
230
|
+
# Sort by most recently used
|
|
231
|
+
mcp2cli @myapi --list --sort recent
|
|
232
|
+
|
|
233
|
+
# Alphabetical sort
|
|
234
|
+
mcp2cli @myapi --list --sort alpha
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
When usage data exists for a source, `--list` defaults to sorting by call frequency. Otherwise insertion order is preserved. Usage data is stored in `~/.cache/mcp2cli/usage.json`.
|
|
238
|
+
|
|
219
239
|
### Output control
|
|
220
240
|
|
|
221
241
|
```bash
|
|
@@ -286,6 +306,10 @@ Options:
|
|
|
286
306
|
--refresh Bypass cache
|
|
287
307
|
--list List available subcommands
|
|
288
308
|
--search PATTERN Search tools by name or description (implies --list)
|
|
309
|
+
--sort MODE Sort --list output: usage|recent|alpha|default
|
|
310
|
+
--top N Show only the top N tools in --list output
|
|
311
|
+
--compact Space-separated tool names only, no descriptions
|
|
312
|
+
--verbose Show full tool descriptions (unwrapped)
|
|
289
313
|
--fields FIELDS Override GraphQL selection set (e.g. "id name email")
|
|
290
314
|
--pretty Pretty-print JSON output
|
|
291
315
|
--raw Print raw response body
|
|
@@ -197,6 +197,26 @@ Filtering options:
|
|
|
197
197
|
|
|
198
198
|
Configs are stored in `~/.config/mcp2cli/baked.json`. Override with `MCP2CLI_CONFIG_DIR`.
|
|
199
199
|
|
|
200
|
+
### Usage-aware tool ranking
|
|
201
|
+
|
|
202
|
+
mcp2cli tracks tool invocations locally and uses that data to rank `--list` output, reducing token costs for LLM agents working with large servers.
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Default --list: ~1,400 tokens for 96 tools
|
|
206
|
+
mcp2cli @myapi --list
|
|
207
|
+
|
|
208
|
+
# Top 10 most-used tools, names only: ~20 tokens
|
|
209
|
+
mcp2cli @myapi --list --top 10 --compact
|
|
210
|
+
|
|
211
|
+
# Sort by most recently used
|
|
212
|
+
mcp2cli @myapi --list --sort recent
|
|
213
|
+
|
|
214
|
+
# Alphabetical sort
|
|
215
|
+
mcp2cli @myapi --list --sort alpha
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
When usage data exists for a source, `--list` defaults to sorting by call frequency. Otherwise insertion order is preserved. Usage data is stored in `~/.cache/mcp2cli/usage.json`.
|
|
219
|
+
|
|
200
220
|
### Output control
|
|
201
221
|
|
|
202
222
|
```bash
|
|
@@ -267,6 +287,10 @@ Options:
|
|
|
267
287
|
--refresh Bypass cache
|
|
268
288
|
--list List available subcommands
|
|
269
289
|
--search PATTERN Search tools by name or description (implies --list)
|
|
290
|
+
--sort MODE Sort --list output: usage|recent|alpha|default
|
|
291
|
+
--top N Show only the top N tools in --list output
|
|
292
|
+
--compact Space-separated tool names only, no descriptions
|
|
293
|
+
--verbose Show full tool descriptions (unwrapped)
|
|
270
294
|
--fields FIELDS Override GraphQL selection set (e.g. "id name email")
|
|
271
295
|
--pretty Pretty-print JSON output
|
|
272
296
|
--raw Print raw response body
|
|
File without changes
|
|
File without changes
|
|
File without changes
|