mcp2cli 2.6.1__tar.gz → 2.7.0__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: 2.6.1
3
+ Version: 2.7.0
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 = "2.6.1"
3
+ version = "2.7.0"
4
4
  description = "Turn any MCP server or OpenAPI spec into a CLI"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- __version__ = "2.6.0"
5
+ __version__ = "2.7.0"
6
6
 
7
7
  import argparse
8
8
  import copy
@@ -1503,9 +1503,17 @@ _BAKE_NAME_RE = re.compile(r"^[a-z][a-z0-9-]*$")
1503
1503
 
1504
1504
  def _handle_bake(argv: list[str]) -> None:
1505
1505
  """Dispatch bake subcommands."""
1506
- if not argv:
1507
- print("Usage: mcp2cli bake <create|list|show|remove|update|install> ...")
1508
- sys.exit(1)
1506
+ if not argv or argv[0] in ("-h", "--help"):
1507
+ print("Usage: mcp2cli bake <command> [options]\n")
1508
+ print("Commands:")
1509
+ print(" create Save connection settings as a named baked tool")
1510
+ print(" list List all baked tools")
1511
+ print(" show Show config for a baked tool (secrets masked)")
1512
+ print(" remove Delete a baked tool")
1513
+ print(" update Update settings on an existing baked tool")
1514
+ print(" install Create a ~/.local/bin wrapper script")
1515
+ print("\nRun 'mcp2cli bake <command> --help' for command-specific help.")
1516
+ sys.exit(0 if argv else 1)
1509
1517
  sub = argv[0]
1510
1518
  rest = argv[1:]
1511
1519
  dispatch = {
@@ -3074,7 +3082,19 @@ def main():
3074
3082
 
3075
3083
  def _build_main_parser() -> argparse.ArgumentParser:
3076
3084
  """Build the global ArgumentParser for _main_impl."""
3077
- pre = argparse.ArgumentParser(add_help=False, allow_abbrev=False)
3085
+ pre = argparse.ArgumentParser(
3086
+ add_help=False,
3087
+ allow_abbrev=False,
3088
+ epilog=(
3089
+ "subcommands:\n"
3090
+ " bake Manage baked tool configurations\n"
3091
+ " (create, list, show, remove, update, install)\n"
3092
+ " @<name> Run a previously baked tool\n"
3093
+ "\n"
3094
+ "Run 'mcp2cli bake --help' for bake subcommand details."
3095
+ ),
3096
+ formatter_class=argparse.RawDescriptionHelpFormatter,
3097
+ )
3078
3098
  pre.add_argument("--spec", default=None, help="OpenAPI spec URL or file path")
3079
3099
  pre.add_argument("--mcp", default=None, help="MCP server URL (HTTP/SSE)")
3080
3100
  pre.add_argument("--mcp-stdio", default=None, help="MCP server command (stdio)")
File without changes
File without changes
File without changes