Skip to content

Add channel notification support for push-based webhook alerts #34

@liplus-lin-lay

Description

@liplus-lin-lay

Summary

Add notifications/claude/channel support to the MCP server so that new webhook events are pushed into the Claude session in real-time, instead of requiring polling.

Motivation

Currently, the MCP server is poll-based — Claude must call get_pending_status or list_pending_events to check for new events. With Claude Code v2.1.80's channel notification support, the server can proactively push notifications when new events arrive.

Approach

  1. Register experimental: { 'claude/channel': {} } capability on the MCP server.
  2. Watch events.json for changes using fs.watch.
  3. When new pending events are detected, send notifications/claude/channel with event summary.
  4. Track previously seen event IDs to avoid duplicate notifications.

Scope

  • Experimental / test branch only initially.
  • No changes to existing tool behavior.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions