Skip to content

Commit 3723b53

Browse files
fix: some help message not updated (#60)
1 parent 3ff1c95 commit 3723b53

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

pages/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ verify_installation() {
141141
echo
142142
echo -e "${DARK_GREEN}To get started with MCPM, try:${NC}"
143143
echo -e " ${LIGHT_GREEN}mcpm --help${NC} # Show available commands"
144-
echo -e " ${LIGHT_GREEN}mcpm list${NC} # List local MCP servers"
144+
echo -e " ${LIGHT_GREEN}mcpm ls${NC} # List local MCP servers"
145145
echo -e " ${LIGHT_GREEN}mcpm add <server>${NC} # Install an MCP server"
146146
echo
147147
echo -e "For more information, visit ${DARK_GREEN}https://mcpm.sh${NC}"

src/mcpm/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def main(ctx, help_flag, version):
9797
active_client = client_config_manager.get_active_client()
9898
if not active_client:
9999
console.print("[bold red]Error:[/] No active client set.")
100-
console.print("Please run 'mcpm client <client-name>' to set an active client.")
100+
console.print("Please run 'mcpm client set <client-name>' to set an active client.")
101101
console.print("Available clients:")
102102

103103
# Show available clients
@@ -124,7 +124,7 @@ def main(ctx, help_flag, version):
124124
client_status = "[green]✓[/]" if installed_clients.get(active_client, False) else "[yellow]⚠[/]"
125125
console.print(f"[bold magenta]Active client:[/] [yellow]{active_client}[/] {client_status}")
126126
else:
127-
console.print("[bold red]No active client set![/] Please run 'mcpm client <client-name>' to set one.")
127+
console.print("[bold red]No active client set![/] Please run 'mcpm client set <client-name>' to set one.")
128128
console.print("")
129129

130130
# Display usage info

src/mcpm/commands/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def set_client(client_name):
114114
# Provide information about what this means
115115
panel = Panel(
116116
f"The active client ({client_name}) will be used for all MCP operations.\n"
117-
f"Commands like 'mcpm list', 'mcpm status', and 'mcpm install' will now operate on {client_name}.",
117+
f"Commands like 'mcpm ls', 'mcpm add', 'mcpm rm', 'mcpm stash', and 'mcpm pop' will now operate on {client_name}.",
118118
title="Active Client Changed",
119119
border_style="green",
120120
)

src/mcpm/commands/list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
client_config_manager = ClientConfigManager()
1818

1919

20-
@click.command(name="list")
20+
@click.command()
2121
@click.option("--target", "-t", help="Target to list servers from")
2222
@click.help_option("-h", "--help")
2323
def list(target: str | None = None):
@@ -26,8 +26,8 @@ def list(target: str | None = None):
2626
Examples:
2727
2828
\b
29-
mcpm list
30-
mcpm list -t @cursor
29+
mcpm ls
30+
mcpm ls -t @cursor
3131
"""
3232
if target is None:
3333
target = ClientRegistry.determine_active_scope()

src/mcpm/commands/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def apply(profile, server):
183183
# Check if client is supported
184184
if client_manager is None:
185185
console.print("[bold red]Error:[/] Unsupported active client")
186-
console.print("Please switch to a supported client using 'mcpm client <client-name>'")
186+
console.print("Please switch to a supported client using 'mcpm client set <client-name>'")
187187
return
188188

189189
# Check if the server exists in the active client

src/mcpm/commands/server_operations/pop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def pop(server_name):
6161
# Check if client is supported
6262
if client_manager is None:
6363
console.print("[bold red]Error:[/] Unsupported active client")
64-
console.print("Please switch to a supported client using 'mcpm client <client-name>'")
64+
console.print("Please switch to a supported client using 'mcpm client set <client-name>'")
6565
return
6666

6767
server_config = client_manager.from_client_format(server_name, server_data)

src/mcpm/utils/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def print_error(message, details=None):
9595
def print_client_error():
9696
"""Print a standardized client-related error message."""
9797
console.print("[bold red]Error:[/] Unsupported active client")
98-
console.print("Please switch to a supported client using 'mcpm client <client-name>'")
98+
console.print("Please switch to a supported client using 'mcpm client set <client-name>'")
9999

100100

101101
def print_active_scope(scope: str):

0 commit comments

Comments
 (0)