• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 19043045070

03 Nov 2025 05:11PM UTC coverage: 53.318% (-1.4%) from 54.728%
19043045070

Pull #4383

github

web-flow
Merge 321c707b4 into df557dc33
Pull Request #4383: feat(mcp): add `supabase mcp init` command to configure MCP clients

0 of 297 new or added lines in 8 files covered. (0.0%)

26 existing lines in 4 files now uncovered.

6388 of 11981 relevant lines covered (53.32%)

5.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/mcp_init.go
1
package cmd
2

3
import (
4
        "github.com/spf13/afero"
5
        "github.com/spf13/cobra"
6
        mcpinit "github.com/supabase/cli/internal/mcp/init"
7
)
8

9
var (
10
        mcpInitCmd = &cobra.Command{
11
                Use:   "init",
12
                Short: "Configure Supabase MCP server for AI assistant clients",
13
                Long: `Configure the Supabase MCP server for your AI assistant clients.
14

15
This command will detect installed MCP clients and guide you through the setup process.
16
Currently supports: Claude Code, Cursor, VS Code (with more clients coming soon).
17

18
The Supabase MCP server allows AI assistants to interact with your Supabase projects,
19
providing tools for database operations, edge functions, storage, and more.
20

21
Examples:
22
  # Auto-detect and configure installed clients
23
  supabase mcp init
24

25
  # Configure a specific client
26
  supabase mcp init --client claude-code
27
  supabase mcp init --client cursor
28
  supabase mcp init --client vscode`,
NEW
29
                RunE: func(cmd *cobra.Command, args []string) error {
×
NEW
30
                        client, _ := cmd.Flags().GetString("client")
×
NEW
31
                        return mcpinit.Run(cmd.Context(), afero.NewOsFs(), client)
×
NEW
32
                },
×
33
        }
34
)
35

NEW
36
func init() {
×
NEW
37
        mcpInitCmd.Flags().StringP("client", "c", "", "Target specific client (e.g., claude-code)")
×
NEW
38
        mcpCmd.AddCommand(mcpInitCmd)
×
NEW
39
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc