Skip to content

Commit 026d8fc

Browse files
authored
Merge pull request #479 from controlplaneio-fluxcd/fix-mcp-debug-cmd
mcp: fix error message in debug scopes command
2 parents fc584a6 + efb3bdb commit 026d8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/mcp/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func debugScopesCmdRun(cmd *cobra.Command, args []string) error {
351351
client := mcp.NewClient(mcpImpl, nil)
352352
cs, err := client.Connect(ctx, &mcp.StreamableClientTransport{Endpoint: endpoint.String()}, nil)
353353
if err != nil {
354-
return fmt.Errorf("failed to create MCP client for: %w", err)
354+
return fmt.Errorf("failed to create MCP client for %s: %w", endpoint, err)
355355
}
356356
defer cs.Close()
357357

0 commit comments

Comments
 (0)