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 82a8dfc commit ff0b4c0Copy full SHA for ff0b4c0
src/cmd/root.go
@@ -52,6 +52,11 @@ var rootCmd = &cobra.Command{
52
Long: `Opslevel MCP Server`,
53
54
RunE: func(cmd *cobra.Command, args []string) error {
55
+ token := viper.GetString("api-token")
56
+ if token == "" {
57
+ return fmt.Errorf("no API token was found, use --api-token=XXX or the OPSLEVEL_API_TOKEN environment variable is required")
58
+ }
59
+
60
s := server.NewMCPServer(
61
"OpsLevel",
62
version,
0 commit comments