Title: Missing author_association field in list_issues and pull request responses · Issue #2250 · github/github-mcp-server · GitHub
Open Graph Title: Missing author_association field in list_issues and pull request responses · Issue #2250 · github/github-mcp-server
X Title: Missing author_association field in list_issues and pull request responses · Issue #2250 · github/github-mcp-server
Description: Summary The author_association field is missing from several MCP response types, which prevents downstream consumers from determining author permissions (e.g., OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, NONE). Affected Endpoints 1. list_i...
Open Graph Description: Summary The author_association field is missing from several MCP response types, which prevents downstream consumers from determining author permissions (e.g., OWNER, MEMBER, COLLABORATOR, CONTRIBU...
X Description: Summary The author_association field is missing from several MCP response types, which prevents downstream consumers from determining author permissions (e.g., OWNER, MEMBER, COLLABORATOR, CONTRIBU...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2250
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing author_association field in list_issues and pull request responses","articleBody":"## Summary\n\nThe `author_association` field is missing from several MCP response types, which prevents downstream consumers from determining author permissions (e.g., OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, NONE).\n\n## Affected Endpoints\n\n### 1. `list_issues` (GraphQL path)\n- `IssueFragment` struct does not request `authorAssociation` in the GraphQL query\n- `fragmentToMinimalIssue()` does not populate `AuthorAssociation` in `MinimalIssue`\n- Note: The REST path in `convertToMinimalIssue()` correctly sets `AuthorAssociation: issue.GetAuthorAssociation()`\n\n### 2. `list_pull_requests` and `pull_request_read` (REST path)\n- `MinimalPullRequest` struct is missing the `author_association` field entirely\n- `convertToMinimalPullRequest()` does not set it\n- The raw `*github.PullRequest` from the go-github library has `AuthorAssociation` available via `pr.GetAuthorAssociation()`\n\n### Already Working\n- `issue_read` (single issue GET) — uses REST `convertToMinimalIssue()` which includes `author_association` ✅\n- `get_review_comments` — `MinimalPullRequestReview` includes `author_association` ✅\n\n## Impact\n\nConsumers that rely on `author_association` to determine author trust level (OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, NONE) cannot make correct decisions when this field is missing from `list_issues` and pull request responses.\n\nFor example, a repo admin's issues are incorrectly treated as untrusted because their `author_association` of \"MEMBER\" is not present in the response.\n\n## Suggested Fix\n\n### For `list_issues` (GraphQL):\n1. Add `AuthorAssociation githubv4.String` to `IssueFragment` struct in `issues.go`\n2. Set `AuthorAssociation: string(fragment.AuthorAssociation)` in `fragmentToMinimalIssue()` in `minimal_types.go`\n\n### For pull requests (REST):\n1. Add `AuthorAssociation string \\x60json:\"author_association,omitempty\"\\x60` to `MinimalPullRequest` struct in `minimal_types.go`\n2. Set `AuthorAssociation: pr.GetAuthorAssociation()` in `convertToMinimalPullRequest()` in `minimal_types.go`\n\n## References\n- `pkg/github/issues.go` — `IssueFragment` struct\n- `pkg/github/minimal_types.go` — `MinimalIssue`, `MinimalPullRequest`, `fragmentToMinimalIssue()`, `convertToMinimalPullRequest()`\n","author":{"url":"https://github.com/lpcox","@type":"Person","name":"lpcox"},"datePublished":"2026-03-22T18:50:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2250/github-mcp-server/issues/2250"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d701f75f-dc5b-f30d-19c1-70de674fabc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D934:184DC8:6B30E9:932994:6A61B3C0 |
| html-safe-nonce | 21ea7fe96145af90193dc71765a10c24deadbbdd20749908e0b253cc4c49c304 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTM0OjE4NERDODo2QjMwRTk6OTMyOTk0OjZBNjFCM0MwIiwidmlzaXRvcl9pZCI6IjgxNDE0OTk2MzEwOTQ4MzgyMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29408baf58773ef9f2008509b81521b64031e21a8502758d65d4ea412bf885b2 |
| hovercard-subject-tag | issue:4116798871 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/2250/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bb654897d6e21d51d4c563a32c52ef29aeaa40a8bb510e52a13e24958f84746/github/github-mcp-server/issues/2250 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bb654897d6e21d51d4c563a32c52ef29aeaa40a8bb510e52a13e24958f84746/github/github-mcp-server/issues/2250 |
| og:image:alt | Summary The author_association field is missing from several MCP response types, which prevents downstream consumers from determining author permissions (e.g., OWNER, MEMBER, COLLABORATOR, CONTRIBU... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpcox |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width