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

supabase / cli / 19194338182

08 Nov 2025 02:29PM UTC coverage: 53.056% (-1.6%) from 54.689%
19194338182

Pull #4383

github

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

0 of 355 new or added lines in 9 files covered. (0.0%)

5 existing lines in 1 file now uncovered.

6388 of 12040 relevant lines covered (53.06%)

5.95 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