ownerResourceHandler had two related bugs in the user→org fallback: - when GetOrg failed with orgResp==nil (network/DNS/context-cancel), the handler returned MapForgejoError(uri, userErr), masking the real transport error behind the original user 404; - if userErr happened to be nil (u==nil, err==nil SDK edge), the same call produced MapForgejoError(nil)==nil and the handler returned (nil, nil), violating MCP semantics. Surface orgErr on transport failure. On both-404 (or any other ambiguous outcome) return an explicit *ResourceError with code -32003. Closes forgejo-mcp-91j. Ref PR #172 review https://codeberg.org/goern/forgejo-mcp/pulls/172#issuecomment-16022165 |
||
|---|---|---|
| .. | ||
| notification.go | ||
| notification_test.go | ||
| resources_owner.go | ||
| resources_owner_test.go | ||
| user.go | ||