mcp2cli 3.0.2__tar.gz → 3.0.3__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-3.0.2 → mcp2cli-3.0.3}/PKG-INFO +1 -1
- {mcp2cli-3.0.2 → mcp2cli-3.0.3}/pyproject.toml +1 -1
- {mcp2cli-3.0.2 → mcp2cli-3.0.3}/src/mcp2cli/__init__.py +11 -3
- {mcp2cli-3.0.2 → mcp2cli-3.0.3}/README.md +0 -0
- {mcp2cli-3.0.2 → mcp2cli-3.0.3}/src/mcp2cli/__main__.py +0 -0
- {mcp2cli-3.0.2 → mcp2cli-3.0.3}/src/mcp2cli/py.typed +0 -0
|
@@ -1875,6 +1875,7 @@ def build_argparse(
|
|
|
1875
1875
|
sub = subparsers.add_parser(
|
|
1876
1876
|
cmd.name,
|
|
1877
1877
|
help=escape_argparse_help(cmd.description),
|
|
1878
|
+
description=escape_argparse_help(cmd.description),
|
|
1878
1879
|
)
|
|
1879
1880
|
sub.set_defaults(_cmd=cmd)
|
|
1880
1881
|
|
|
@@ -2347,14 +2348,15 @@ async def _mcp_session(
|
|
|
2347
2348
|
# Handle resource operations
|
|
2348
2349
|
if resource_action:
|
|
2349
2350
|
await _handle_resources(
|
|
2350
|
-
session, resource_action, resource_uri, pretty, raw, toon,
|
|
2351
|
+
session, resource_action, resource_uri, pretty, raw, toon, head=head,
|
|
2351
2352
|
)
|
|
2352
2353
|
return
|
|
2353
2354
|
|
|
2354
2355
|
# Handle prompt operations
|
|
2355
2356
|
if prompt_action:
|
|
2356
2357
|
await _handle_prompts(
|
|
2357
|
-
session, prompt_action, prompt_name, prompt_arguments,
|
|
2358
|
+
session, prompt_action, prompt_name, prompt_arguments,
|
|
2359
|
+
pretty, raw, toon, head=head,
|
|
2358
2360
|
)
|
|
2359
2361
|
return
|
|
2360
2362
|
|
|
@@ -2406,7 +2408,13 @@ async def _mcp_session(
|
|
|
2406
2408
|
|
|
2407
2409
|
|
|
2408
2410
|
async def _handle_resources(
|
|
2409
|
-
session,
|
|
2411
|
+
session,
|
|
2412
|
+
action: str,
|
|
2413
|
+
uri: str | None,
|
|
2414
|
+
pretty: bool,
|
|
2415
|
+
raw: bool,
|
|
2416
|
+
toon: bool,
|
|
2417
|
+
head: int | None = None,
|
|
2410
2418
|
):
|
|
2411
2419
|
_out = dict(pretty=pretty, raw=raw, toon=toon, head=head)
|
|
2412
2420
|
if action == "list":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|