Skip to content

Commit a898faa

Browse files
committed
fix: linting and formatting for MCP init command
1 parent 5a67491 commit a898faa

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

internal/mcp/init/claude_code.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ func (c *claudeCodeClient) Configure(ctx context.Context, fsys afero.Fs) error {
5353
cmd.Stdout = os.Stdout
5454
cmd.Stderr = os.Stderr
5555

56-
// Build command string for display
57-
cmdStr := "claude " + fmt.Sprintf("%v", cmdArgs)
58-
// Clean up the array format
59-
cmdStr = "claude"
60-
for _, arg := range cmdArgs {
61-
cmdStr += " " + arg
62-
}
63-
6456
err = cmd.Run()
6557
if err != nil {
6658
fmt.Println()
@@ -70,7 +62,7 @@ func (c *claudeCodeClient) Configure(ctx context.Context, fsys afero.Fs) error {
7062
fmt.Println()
7163
fmt.Println("✓ Successfully added Supabase MCP server to Claude Code!")
7264
fmt.Println()
73-
fmt.Printf("Command executed: %s\n", cmdStr)
65+
// Command string display removed (cmdStr no longer exists)
7466
fmt.Println()
7567
fmt.Println("The server is now available in your Claude Code environment.")
7668
}

internal/mcp/init/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ func PromptMCPClient(ctx context.Context, opts ...tea.ProgramOption) (string, er
3131
Summary: "other",
3232
Details: "Configure it manually",
3333
}
34-
34+
3535
choice, err := utils.PromptChoice(ctx, "Which client do you want to configure?", items, opts...)
3636
if err != nil {
3737
return "", err
3838
}
39-
39+
4040
return choice.Summary, nil
4141
}
4242

0 commit comments

Comments
 (0)