Skip to content

Commit 2f291f5

Browse files
committed
Add post command tips
1 parent cd0118e commit 2f291f5

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

cmd/docker-mcp/catalog/ls.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ func humanPrintCatalog(cfg Config) {
4747
for name, catalog := range cfg.Catalogs {
4848
fmt.Printf("%s: %s\n", name, catalog.DisplayName)
4949
}
50+
fmt.Println("\033[36mTip: Use \033[1;3m'docker mcp catalog show <name>'\033[0;36m to browse a catalog's servers\033[0m")
5051
}

cmd/docker-mcp/catalog/show.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ func Show(ctx context.Context, name string, format Format, mcpOAuthDcrEnabled bo
153153
fmt.Printf(" %s\n", strings.Repeat("─", headerLineWidth))
154154
fmt.Printf(" %d servers total\n", serverCount)
155155
fmt.Println()
156+
fmt.Println("\033[36mTip: \033[1;3mdocker mcp server inspect <server-name>\033[0;36m to view server details, \033[1;3mdocker mcp server enable <server-name>\033[0;36m to add servers\033[0m")
157+
fmt.Println()
156158

157159
return nil
158160
}

cmd/docker-mcp/client/connect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ func Connect(ctx context.Context, cwd string, config Config, vendor string, glob
3333
return err
3434
}
3535
fmt.Printf("You might have to restart '%s'.\n", vendor)
36+
fmt.Println("\033[36mTip: Your client is now connected! Try \033[1;3m'docker mcp tools ls'\033[0;36m to see available tools\033[0m")
3637
return nil
3738
}

cmd/docker-mcp/commands/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ func serverCommand(docker docker.Client, dockerCli command.Cli) *cobra.Command {
4242
fmt.Fprintln(cmd.OutOrStdout(), "No server is enabled")
4343
} else {
4444
fmt.Fprintln(cmd.OutOrStdout(), strings.Join(list, ", "))
45+
fmt.Fprintln(cmd.OutOrStdout(), "\033[36mTip: Connect to Claude/Cursor to use these servers with \033[1;3m'docker mcp client connect <client-name>'\033[0m")
46+
fmt.Fprintln(cmd.OutOrStdout(), "")
4547
}
4648

4749
return nil

cmd/docker-mcp/server/enable.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,15 @@ func update(ctx context.Context, docker docker.Client, add []string, remove []st
9494
return fmt.Errorf("writing registry config: %w", err)
9595
}
9696

97+
if len(add) > 0 {
98+
fmt.Println("\033[32m✓\033[0m \033[36mServer enabled. Run \033[1;3m'docker mcp server ls'\033[0;36m to view servers\033[0m")
99+
fmt.Println()
100+
}
101+
102+
if len(remove) > 0 {
103+
fmt.Println("\033[32m✓\033[0m \033[36mServer disabled. Run \033[1;3m'docker mcp server ls'\033[0;36m to see remaining enabled servers\033[0m")
104+
fmt.Println()
105+
}
106+
97107
return nil
98108
}

cmd/docker-mcp/tools/list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ func List(ctx context.Context, version string, gatewayArgs []string, debug bool,
5050
for _, tool := range response.Tools {
5151
fmt.Println(" -", tool.Name, "-", toolDescription(tool))
5252
}
53+
fmt.Println("\033[36mTip: Use \033[1;3m'docker mcp tools inspect <tool-name>'\033[0;36m to see tool details, or \033[1;3m'docker mcp tools call <tool-name>'\033[0;36m to test it\033[0m")
5354
}
5455
case "count":
5556
if format == "json" {
5657
fmt.Printf("{\"count\": %d}\n", len(response.Tools))
5758
} else {
5859
fmt.Println(len(response.Tools), "tools")
60+
fmt.Println("\033[36mTip: Run \033[1;3m'docker mcp tools ls'\033[0;36m to see all available tools\033[0m")
5961
}
6062
case "inspect":
6163
var found *mcp.Tool

0 commit comments

Comments
 (0)