Title: Add discussion comment write operations to discussions toolset · Issue #1908 · github/github-mcp-server · GitHub
Open Graph Title: Add discussion comment write operations to discussions toolset · Issue #1908 · github/github-mcp-server
X Title: Add discussion comment write operations to discussions toolset · Issue #1908 · github/github-mcp-server
Description: Describe the feature or problem you'd like to solve The discussions toolset currently only supports read operations. There's no way for AI agents to participate in GitHub Discussions — posting comments, marking answers, or managing their...
Open Graph Description: Describe the feature or problem you'd like to solve The discussions toolset currently only supports read operations. There's no way for AI agents to participate in GitHub Discussions — posting comm...
X Description: Describe the feature or problem you'd like to solve The discussions toolset currently only supports read operations. There's no way for AI agents to participate in GitHub Discussions — post...
Opengraph URL: https://github.com/github/github-mcp-server/issues/1908
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add discussion comment write operations to discussions toolset","articleBody":"### Describe the feature or problem you'd like to solve\n\nThe `discussions` toolset currently only supports read operations. There's no way for AI agents to participate in GitHub Discussions — posting comments, marking answers, or managing their own replies.\n\nI ran into this while trying to contribute to a spec discussion ([modelcontextprotocol#1772](https://github.com/modelcontextprotocol/modelcontextprotocol/discussions/1772)). My agent could read the thread but couldn't post. The `add_issue_comment` tool returned 404 because Discussions use GraphQL, not the REST Issues API.\n\n### Proposed solution\n\nAdd comment-level write operations to the `discussions` toolset:\n\n| Tool | GraphQL Mutation |\n|------|------------------|\n| `add_discussion_comment` | `addDiscussionComment` |\n| `update_discussion_comment` | `updateDiscussionComment` |\n| `delete_discussion_comment` | `deleteDiscussionComment` |\n| `mark_discussion_comment_as_answer` | `markDiscussionCommentAsAnswer` |\n\nThis mirrors the existing pattern for issues (`add_issue_comment`, `update_issue_comment`).\n\n### Example prompts or workflows\n\n1. \"Read the latest comments on discussion #42 and post a summary of the key points\"\n2. \"Find unanswered questions in the Q\u0026A category and draft helpful responses\"\n3. \"Add a comment to discussion #1772 with my implementation feedback\"\n4. \"Mark the most upvoted comment as the answer on discussion #15\"\n5. \"Fix the typo in my last comment on discussion #30\"\n\n### Additional context\n\nThe GraphQL client (`githubv4`) is already used in `pkg/github/discussions.go` for read operations. Happy to submit a PR if this feature is accepted.","author":{"url":"https://github.com/gfortaine","@type":"Person","name":"gfortaine"},"datePublished":"2026-01-27T11:17:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1908/github-mcp-server/issues/1908"}
| 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:23559c1b-7daa-1ea6-10a0-7f731d135aa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B926:2F48FC:7231FE:9BBBDC:6A6124E4 |
| html-safe-nonce | 9f3edec1ca9391a73ab0b0763804757f63ef57213ea6761b686c48a512fc80a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTI2OjJGNDhGQzo3MjMxRkU6OUJCQkRDOjZBNjEyNEU0IiwidmlzaXRvcl9pZCI6IjE2ODE5OTc0MzkyOTY0MTQ5NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d86ca394edbfef77220e4b345df3e7293cef1bf12e4e0754acedf011d770b41b |
| hovercard-subject-tag | issue:3860086122 |
| 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/1908/issue_layout |
| twitter:image | https://opengraph.githubassets.com/840cbaf95953cb7e601371ef2b0be179b0ee9cfbc76f9122bf314cc5d153c873/github/github-mcp-server/issues/1908 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/840cbaf95953cb7e601371ef2b0be179b0ee9cfbc76f9122bf314cc5d153c873/github/github-mcp-server/issues/1908 |
| og:image:alt | Describe the feature or problem you'd like to solve The discussions toolset currently only supports read operations. There's no way for AI agents to participate in GitHub Discussions — posting comm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gfortaine |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d9987c85f924dc5597480f737e023a6e985b0316e672f00513eb4ba440d87ba |
| 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 | d38dc1dac7b5a5d0788e068e080820de6de90a28 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width