{"record":{"id":"744b9736d08dd3e1","repo":"multica-ai/multica","slug":"seed-cursor-mcp-auth-file-w","errorCode":null,"errorMessage":"seed cursor mcp auth file: %w","messagePattern":"seed cursor mcp auth file: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/cursor_mcp.go","lineNumber":129,"sourceCode":"\t\tif err := seedCursorMcpAuthFile(projectDataDir, mcpAuthSource); err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\t}\n\n\treturn cursorDataDir, nil\n}\n\nfunc seedCursorMcpAuthFile(projectDataDir, source string) error {\n\tsourcePath, err := resolveCursorMcpAuthSource(source)\n\tif err != nil {\n\t\treturn err\n\t}\n\ttarget := filepath.Join(projectDataDir, cursorMcpAuthFile)\n\tif err := os.Symlink(sourcePath, target); err == nil {\n\t\treturn nil\n\t}\n\tif err := copyCursorMcpAuthFile(target, sourcePath); err != nil {\n\t\treturn fmt.Errorf(\"seed cursor mcp auth file: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc removeCursorMcpAuthFile(projectDataDir string) error {\n\ttarget := filepath.Join(projectDataDir, cursorMcpAuthFile)\n\tif err := os.Remove(target); err != nil && !errors.Is(err, fs.ErrNotExist) {\n\t\treturn fmt.Errorf(\"remove prior cursor mcp auth file: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc resolveCursorMcpAuthSource(source string) (string, error) {\n\tsource = strings.TrimSpace(source)\n\tif source == \"\" {\n\t\treturn \"\", fmt.Errorf(\"%s is empty\", CursorMcpAuthSourceEnv)\n\t}\n\tif source == \"~\" || strings.HasPrefix(source, \"~/\") {","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/cursor_mcp.go#L111-L147","documentation":"Error \"seed cursor mcp auth file: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/cursor_mcp.go:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check permissions to write the cursor mcp auth file."],"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-15T17:31:12.345Z"}