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