{"record":{"id":"43c85caaac14cd53","repo":"dapr/dapr","slug":"mcpserver-q-stdio-command-not-resolvable-w","errorCode":null,"errorMessage":"MCPServer %q: stdio.command not resolvable: %w","messagePattern":"MCPServer %q: stdio\\.command not resolvable: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/internal/loader/validate/mcpserver.go","lineNumber":79,"sourceCode":"\t}\n\n\treturn nil\n}\n\n// validateStdioCommand rejects relative commands that resolve outside pwd.\n// Bare commands (no separator) are deferred to exec.LookPath at run time;\n// absolute paths are explicit user choice and pass through.\nfunc validateStdioCommand(serverName, command string) error {\n\tif !strings.ContainsRune(command, filepath.Separator) || filepath.IsAbs(command) {\n\t\treturn nil\n\t}\n\tpwd, err := os.Getwd()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"MCPServer %q: cannot determine working directory: %w\", serverName, err)\n\t}\n\tabs, err := filepath.Abs(command)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"MCPServer %q: stdio.command not resolvable: %w\", serverName, err)\n\t}\n\tresolved, err := filepath.EvalSymlinks(abs)\n\tif err != nil {\n\t\tif !errors.Is(err, os.ErrNotExist) {\n\t\t\treturn fmt.Errorf(\"MCPServer %q: stdio.command path: %w\", serverName, err)\n\t\t}\n\t\tresolved = abs\n\t}\n\trel, err := filepath.Rel(pwd, resolved)\n\tif err != nil || strings.HasPrefix(rel, \"..\") {\n\t\treturn fmt.Errorf(\"MCPServer %q: stdio.command must not escape working directory\", serverName)\n\t}\n\treturn nil\n}\n\nfunc validateMCPURL(serverName, transport, rawURL string) error {\n\tu, err := url.Parse(rawURL)\n\tif err != nil {","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/dapr/dapr/blob/74ad41702745709bb15fe2114ff693b8c59bc3cc/pkg/internal/loader/validate/mcpserver.go#L61-L97","documentation":"Error \"MCPServer %q: stdio.command not resolvable: %w\" thrown in dapr/dapr.","triggerScenarios":"Thrown at pkg/internal/loader/validate/mcpserver.go:79 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":"74ad41702745709bb15fe2114ff693b8c59bc3cc","analyzedAt":"2026-08-16T04:22:26.543Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}