Skip to content

Commit 78b1f0b

Browse files
authored
feat(share): add simple share command to reverse proxy a single local mcp server (pathintegral-institute#140)
* feat(share): add simple share command Add simple share command to reverse proxy a single local mcp server. For easier access to local mcp server for development.
1 parent 4567486 commit 78b1f0b

File tree

3 files changed

+564
-0
lines changed

3 files changed

+564
-0
lines changed

src/mcpm/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
stash,
2525
transfer,
2626
)
27+
from mcpm.commands.share import share
2728

2829
console = Console()
2930
client_config_manager = ClientConfigManager()
@@ -158,6 +159,7 @@ def main(ctx, help_flag, version):
158159
commands_table.add_row(" [cyan]ls[/]", "List all installed MCP servers.")
159160
commands_table.add_row(" [cyan]stash[/]", "Temporarily store a server configuration aside.")
160161
commands_table.add_row(" [cyan]pop[/]", "Restore a previously stashed server configuration.")
162+
commands_table.add_row(" [cyan]share[/]", "Share a single MCP server through a tunnel.")
161163

162164
commands_table.add_row("[yellow]profile[/]")
163165
commands_table.add_row(" [cyan]profile[/]", "Manage MCPM profiles.")
@@ -197,6 +199,7 @@ def main(ctx, help_flag, version):
197199
main.add_command(profile.deactivate)
198200
main.add_command(router.router, name="router")
199201
main.add_command(custom.import_server, name="import")
202+
main.add_command(share)
200203

201204
if __name__ == "__main__":
202205
main()

0 commit comments

Comments
 (0)