-
Notifications
You must be signed in to change notification settings - Fork 486
Export SendNotificationToAllClients #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export SendNotificationToAllClients #176
Conversation
[First PR to project] Export sendNotificationToAllClients so it can be called from the MCP server to send unsolicited notifications to all clients (sessions). I have a use-case for my MCP server where I need to send notifications of state change to all sessions. My MCP server is fronting a device hub, and the device's on the hub would like to send notifications up to the LLM. There is probably a reason why this was not exported, so please forgive this PR if that's the case. I just could not figure out what the spec says about this. In any case, I added a test and tested with the Inspector. The Inspectory sees the unsolicited notifications. Cool! I also tried with Cursor and Claude, but neither seem to recognize notifications, no matter how hard I tried to convince them.
WalkthroughThis change makes the Changes
Possibly related PRs
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)server/server_test.go (2)
🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[First PR to project]
Export sendNotificationToAllClients so it can be called from the MCP server to send unsolicited notifications to all clients (sessions).
I have a use-case for my MCP server where I need to send notifications of state change to all sessions. My MCP server is fronting a device hub, and the device's on the hub would like to send notifications up to the LLM.
There is probably a reason why this was not exported, so please forgive this PR if that's the case. I just could not figure out what the spec says about this.
In any case, I added a test and tested with the Inspector. The Inspectory sees the unsolicited notifications. Cool! I also tried with Cursor and Claude, but neither seem to recognize notifications, no matter how hard I tried to convince them.
Summary by CodeRabbit