From e8badec90223f6c0c8f703dcb1309ed82a047b8d Mon Sep 17 00:00:00 2001 From: Mike Levin Date: Tue, 1 Sep 2026 06:35:54 -0400 Subject: [PATCH] chore: Update MCP argument parsing with schema support and byte limit --- scripts/connectors/mcp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/connectors/mcp.py b/scripts/connectors/mcp.py index 2529e2584..aec94a5b6 100644 --- a/scripts/connectors/mcp.py +++ b/scripts/connectors/mcp.py @@ -604,7 +604,12 @@ def main(): parser.add_argument("-n", "--max", type=int, default=25, help="LIST cap per THE PROBE ECONOMY RULE (default: 25).") parser.add_argument("--max-bytes", type=int, default=4000, - help="CALL result cap in bytes (default: 4000).") + help="CALL result cap in bytes; also caps --schema " + "and server instructions (default: 4000).") + parser.add_argument("--schema", action="store_true", + help="LIST mode: print each tool's full JSON " + "(description + inputSchema) instead of the " + "80-char roster. Bounded by -n and --max-bytes.") parser.add_argument("--token-env", default=None, help="Env var holding the bearer token (default: " "MCP_BEARER_TOKEN, then BOTIFY_API_TOKEN).")