-
Notifications
You must be signed in to change notification settings - Fork 355
make context available in hooks, add OnRegisterSession hook #92
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
Conversation
feat: new hook: OnRegisterSession
WalkthroughSeveral files have been updated to add a Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (7)
🧰 Additional context used🧬 Code Definitions (2)examples/everything/main.go (2)
server/hooks.go (2)
🔇 Additional comments (15)
✨ 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 (
|
Hi,
I wanted to make use of the sessionId generated by the McpServer to manage my own session data. The issue I was facing was, I could not get the sessionId from the
/sse
route and correlate to the message's sessionId. Also, I had no way of accessing the session information in the hooks.SSEContextFunc
combined withOnRegisterSession
will allow us to connect the initial/sse
session to all messages outside the library.I think
context
should be available on all hooks to trace it back to the request which may contain context information added by upstream http middlewares.Summary by CodeRabbit
New Features
Refactor