We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aba487 commit e61a429Copy full SHA for e61a429
cmd/src/mcp.go
@@ -5,6 +5,7 @@ import (
5
"encoding/json"
6
"flag"
7
"fmt"
8
+ "os"
9
"strings"
10
11
"github.com/sourcegraph/src-cli/internal/api"
@@ -14,11 +15,13 @@ import (
14
15
)
16
17
func init() {
- flagSet := flag.NewFlagSet("mcp", flag.ExitOnError)
18
- commands = append(commands, &command{
19
- flagSet: flagSet,
20
- handler: mcpMain,
21
- })
+ if os.Getenv("SRC_EXPERIMENT_MCP") == "true" {
+ flagSet := flag.NewFlagSet("mcp", flag.ExitOnError)
+ commands = append(commands, &command{
+ flagSet: flagSet,
22
+ handler: mcpMain,
23
+ })
24
+ }
25
}
26
func mcpMain(args []string) error {
27
fmt.Println("NOTE: This command is still experimental")
0 commit comments