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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp2cli
3
- Version: 3.0.2
3
+ Version: 3.0.3
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>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mcp2cli"
3
- version = "3.0.2"
3
+ version = "3.0.3"
4
4
  description = "Turn any MCP server or OpenAPI spec into a CLI"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -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, pretty, raw, toon,
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, action: str, uri: str | None, pretty: bool, raw: bool, toon: bool,
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