-
Notifications
You must be signed in to change notification settings - Fork 216
SSE: Add support for SSE handler options #508
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
examples/server/sse/main.go
Outdated
return nil | ||
} | ||
}) | ||
}, &mcp.SSEOptions{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use nil
mcp/sse_test.go
Outdated
sseHandler := NewSSEHandler(func(*http.Request) *Server { return server }) | ||
sseOptions := &SSEOptions{} | ||
|
||
sseHandler := NewSSEHandler(func(*http.Request) *Server { return server }, sseOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use nil
mcp/sse: add support to provide for options for SSE transport
Fixes #507, #503