github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

MCP Server Post/Comment Attribution

Open jamesastound opened this issue 8 months ago • 2 comments

Describe the feature or problem you'd like to solve

When the GitHub MCP Server posts comments (on issues, pull requests, etc.) on behalf of a user, there is no indication to other repository participants that the comment was generated by an AI agent rather than written directly by the user. This creates a transparency gap: reviewers and collaborators have few ways to know whether a comment reflects the user's own words or was autonomously generated and posted by an agent acting on their behalf.

Proposed solution

Add an opt-in configuration option that appends a short disclosure footer to any comment or review body created via the MCP Server. For example:

---
*This comment was posted by an AI agent via the [GitHub MCP Server](https://github.com/github/github-mcp-server) on behalf of @username.*

jamesastound avatar Mar 11 '26 17:03 jamesastound

Hey @jamesastound, thanks for the suggestion. I agree with the aim of improving transparency here, however I think this is better handled at the agent/harness level rather than in the MCP server itself.

The agent/harness has the context to know whether a comment was generated by an AI agent, was written by the user or user-approved before posting.

For example, I could ask within Copilot CLI to "Please leave a comment on PR 967 saying "Looks good to me!" which, while carried out by an agent, was a comment authored by me, the user.

RossTarrant avatar May 27 '26 09:05 RossTarrant

The auth layer should eventually convey "on behalf of" but we aren't quite there yet.

SamMorrowDrums avatar May 27 '26 18:05 SamMorrowDrums