{"record":{"id":"b6d31e10777ed689","repo":"multica-ai/multica","slug":"s-must-point-at-s-got-s","errorCode":null,"errorMessage":"%s must point at %s, got %s","messagePattern":"(.+?) must point at (.+?), got (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/cursor_mcp.go","lineNumber":177,"sourceCode":"\t\treturn \"\", fmt.Errorf(\"%s must be an absolute path to %s or its containing Cursor project directory\", CursorMcpAuthSourceEnv, cursorMcpAuthFile)\n\t}\n\tsource = filepath.Clean(source)\n\tinfo, err := os.Stat(source)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"stat %s: %w\", CursorMcpAuthSourceEnv, err)\n\t}\n\tif info.IsDir() {\n\t\tsource = filepath.Join(source, cursorMcpAuthFile)\n\t\tinfo, err = os.Stat(source)\n\t\tif err != nil {\n\t\t\treturn \"\", fmt.Errorf(\"stat %s %s: %w\", CursorMcpAuthSourceEnv, cursorMcpAuthFile, err)\n\t\t}\n\t}\n\tif info.IsDir() {\n\t\treturn \"\", fmt.Errorf(\"%s must resolve to a file, got directory %s\", CursorMcpAuthSourceEnv, source)\n\t}\n\tif filepath.Base(source) != cursorMcpAuthFile {\n\t\treturn \"\", fmt.Errorf(\"%s must point at %s, got %s\", CursorMcpAuthSourceEnv, cursorMcpAuthFile, filepath.Base(source))\n\t}\n\treturn source, nil\n}\n\nfunc copyCursorMcpAuthFile(target, source string) error {\n\tin, err := os.Open(source)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer in.Close()\n\n\tout, err := os.OpenFile(target, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0o600)\n\tif err != nil {\n\t\treturn err\n\t}\n\t_, copyErr := io.Copy(out, in)\n\tcloseErr := out.Close()\n\tif copyErr != nil {","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/cursor_mcp.go#L159-L195","documentation":"Error \"%s must point at %s, got %s\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/cursor_mcp.go:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point the setting at the expected file name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}