{"record":{"id":"dafc307e1e5d28a9","repo":"github/github-mcp-server","slug":"stdio-server-cmd-is-required","errorCode":null,"errorMessage":"--stdio-server-cmd is required","messagePattern":"--stdio-server-cmd is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/mcpcurl/main.go","lineNumber":112,"sourceCode":"\t}\n)\n\nvar (\n\t// Create root command\n\trootCmd = &cobra.Command{\n\t\tUse:   \"mcpcurl\",\n\t\tShort: \"CLI tool with dynamically generated commands\",\n\t\tLong:  \"A CLI tool for interacting with MCP API based on dynamically loaded schemas\",\n\t\tPersistentPreRunE: func(cmd *cobra.Command, _ []string) error {\n\t\t\t// Skip validation for help and completion commands\n\t\t\tif cmd.Name() == \"help\" || cmd.Name() == \"completion\" {\n\t\t\t\treturn nil\n\t\t\t}\n\n\t\t\t// Check if the required global flag is provided\n\t\t\tserverCmd, _ := cmd.Flags().GetString(\"stdio-server-cmd\")\n\t\t\tif serverCmd == \"\" {\n\t\t\t\treturn fmt.Errorf(\"--stdio-server-cmd is required\")\n\t\t\t}\n\t\t\treturn nil\n\t\t},\n\t}\n\n\t// Add schema command\n\tschemaCmd = &cobra.Command{\n\t\tUse:   \"schema\",\n\t\tShort: \"Fetch schema from MCP server\",\n\t\tLong:  \"Fetches the tools schema from the MCP server specified by --stdio-server-cmd\",\n\t\tRunE: func(cmd *cobra.Command, _ []string) error {\n\t\t\tserverCmd, _ := cmd.Flags().GetString(\"stdio-server-cmd\")\n\t\t\tif serverCmd == \"\" {\n\t\t\t\treturn fmt.Errorf(\"--stdio-server-cmd is required\")\n\t\t\t}\n\n\t\t\t// Build the JSON-RPC request for tools/list\n\t\t\tjsonRequest, err := buildJSONRPCRequest(\"tools/list\", \"\", nil)","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/cmd/mcpcurl/main.go#L94-L130","documentation":"Error \"--stdio-server-cmd is required\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at cmd/mcpcurl/main.go:112 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0ea1f775a7c73eff1bd2e25904d01136756bbfe2","analyzedAt":"2026-08-15T18:10:19.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}