Skip to content

Add issue status changes as MCP Events for agent subscriptions #3692

Open

Description

@RobertoPrivat

Describe the feature or problem you’d like to solve

Agents need to react automatically when an issue’s status changes (opened, closed, reopened, labeled, assigned, etc.). Today the server only offers on-demand tools (issue_read, issue_write, list_issues) and polling via the notifications toolset. There is no way to subscribe to issue status changes as events so an agent can be woken up and take action.

Proposed solution

Expose issue status changes (and ideally other key issue/PR lifecycle events) as MCP Events (following the experimental Events extension / SEP). Support at least:

  • Subscription by repository + optional filters (labels, assignees, specific issue number, action types)
  • Delivery via webhook and/or push stream
  • Payload containing the issue number, action, new state, actor, and relevant fields

This would enable autonomous agent workflows (triage, notifications, status updates, follow-up actions) without constant polling.

Example prompts or workflows

  1. “Watch this repository and automatically comment on any new bug labeled ‘priority:high’.”
  2. “When issue Issue: Fix incorrect VS Code installation URL (both buttons point to Insiders) #123 is closed, open a follow-up issue summarizing the resolution and assign it to the original reporter.”
  3. “Subscribe to all issues assigned to me and summarize status changes every morning.”
  4. “When a PR is merged, close related issues and post a release note draft.”

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions