Repository navigation
Conversation
wwwearlduiker-dotcom
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a read-only
list_user_eventstool in the users toolset so agents can retrieve a user's recent GitHub activity with pagination.Why
Fixes #2420. Query
GET /users/{username}/eventsas requested by the issue. GitHub returns public events for other users and may include private events when querying the authenticated user's own activity, subject to the token's permissions.What changed
MCP impact
list_user_events(username, page?, perPage?)joins the default users toolset. There is no publicOnly option; event visibility follows GitHub's endpoint and the current credentials.Prompts tested (tool changes only)
Representative workflow: "Summarize kaii9's recent GitHub activity." Validation uses equivalent direct MCP requests rather than an LLM prompt run: activity queries, explicit pagination, missing/invalid arguments, legacy JSON, modern JSON, and modern CSV. Live event metadata is compared with an independent call to the same GitHub Events endpoint.
Security / limits
The tool follows the existing repository public-read scope policy; GitHub remains responsible for access checks and fine-grained private Events permissions. Private events are retained when the API returns them, and result confidentiality is derived from returned event visibility. Missing visibility is conservatively private. Payload content remains untrusted. The tool description documents the feed's 300-event, 30-day history limit and possible latency; callers control page size.
Tool renaming
Lint & tests
./script/lint— 0 issues.Also built the binary, regenerated docs, ran CI-mode feature/schema checks without test cache, and validated live read-only MCP calls. Private-event retention and mixed-page confidentiality are covered with simulated GitHub responses; the account's current live sample contained public events.
Docs
Generated README tool documentation and schema snapshots.