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.
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/PKG-INFO +1 -1
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/pyproject.toml +1 -1
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/src/mcp2cli/__init__.py +25 -5
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/README.md +0 -0
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/src/mcp2cli/__main__.py +0 -0
- {mcp2cli-2.6.1 → mcp2cli-2.7.0}/src/mcp2cli/py.typed +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
__version__ = "2.
|
|
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 <
|
|
1508
|
-
|
|
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(
|
|
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
|