File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ func NewMCPServer() *MCPServer {
125
125
func (s * MCPServer ) ServeSSE (addr string ) * server.SSEServer {
126
126
return server .NewSSEServer (s .server ,
127
127
server .WithBaseURL (fmt .Sprintf ("http://%s" , addr )),
128
- server .WithSSEContextFunc (authFromRequest ),
128
+ server .WithHTTPContextFunc (authFromRequest ),
129
129
)
130
130
}
131
131
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ func WithSSEEndpoint(endpoint string) SSEOption {
185
185
// WithSSEContextFunc sets a function that will be called to customise the context
186
186
// to the server using the incoming request.
187
187
//
188
- // Deprecated: Use WithContextFunc instead. This will be removed in a future version.
188
+ // Deprecated: Use WithHTTPContextFunc instead. This will be removed in a future version.
189
189
//
190
190
//go:deprecated
191
191
func WithSSEContextFunc (fn SSEContextFunc ) SSEOption {
Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ func TestSSEServer(t *testing.T) {
579
579
return mcp .NewToolResultText (testVal ), nil
580
580
})
581
581
582
- testServer := NewTestServer (mcpServer , WithSSEContextFunc (setTestValFromRequest ))
582
+ testServer := NewTestServer (mcpServer , WithHTTPContextFunc (setTestValFromRequest ))
583
583
defer testServer .Close ()
584
584
585
585
// Connect to SSE endpoint
You can’t perform that action at this time.
0 commit comments