{"record":{"id":"07424e451f8f0594","repo":"multica-ai/multica","slug":"marshal-cursor-workspace-trust-w","errorCode":null,"errorMessage":"marshal cursor workspace trust: %w","messagePattern":"marshal cursor workspace trust: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/execenv/cursor_mcp.go","lineNumber":105,"sourceCode":"\t}\n\tapprovals, err := cursorMcpApprovalKeys(projectRoot, servers)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tapprovalData, err := json.MarshalIndent(approvals, \"\", \"  \")\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"marshal cursor mcp approvals: %w\", err)\n\t}\n\tif err := os.WriteFile(filepath.Join(projectDataDir, \"mcp-approvals.json\"), approvalData, 0o600); err != nil {\n\t\treturn \"\", fmt.Errorf(\"write cursor mcp approvals: %w\", err)\n\t}\n\ttrustData, err := json.MarshalIndent(map[string]string{\n\t\t\"trustedAt\":     \"1970-01-01T00:00:00Z\",\n\t\t\"workspacePath\": projectRoot,\n\t\t\"trustMethod\":   \"multica-managed\",\n\t}, \"\", \"  \")\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"marshal cursor workspace trust: %w\", err)\n\t}\n\tif err := os.WriteFile(filepath.Join(projectDataDir, cursorWorkspaceTrustedFile), trustData, 0o600); err != nil {\n\t\treturn \"\", fmt.Errorf(\"write cursor workspace trust: %w\", err)\n\t}\n\tif strings.TrimSpace(mcpAuthSource) != \"\" {\n\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}","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/execenv/cursor_mcp.go#L87-L123","documentation":"Error \"marshal cursor workspace trust: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/execenv/cursor_mcp.go:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry; the cursor workspace trust payload could not be serialized."],"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"}