File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ func (s *MCPServer) AddTools(tools ...ServerTool) {
416
416
}
417
417
s .mu .Unlock ()
418
418
419
- // Send notification to all initialized sessionizer
419
+ // Send notification to all initialized sessions
420
420
s .sendNotificationToAllClients ("notifications/tools/list_changed" , nil )
421
421
}
422
422
@@ -436,7 +436,7 @@ func (s *MCPServer) DeleteTools(names ...string) {
436
436
}
437
437
s .mu .Unlock ()
438
438
439
- // Send notification to all initialized sessionizer
439
+ // Send notification to all initialized sessions
440
440
s .sendNotificationToAllClients ("notifications/tools/list_changed" , nil )
441
441
}
442
442
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ func TestMCPServer_Tools(t *testing.T) {
153
153
validate func (* testing.T , []mcp.JSONRPCNotification , mcp.JSONRPCMessage )
154
154
}{
155
155
{
156
- name : "SetTools sends no notifications/tools/list_changed without active sessionizer " ,
156
+ name : "SetTools sends no notifications/tools/list_changed without active sessions " ,
157
157
action : func (t * testing.T , server * MCPServer , notificationChannel chan mcp.JSONRPCNotification ) {
158
158
server .SetTools (ServerTool {
159
159
Tool : mcp .NewTool ("test-tool-1" ),
@@ -216,7 +216,7 @@ func TestMCPServer_Tools(t *testing.T) {
216
216
})
217
217
require .NoError (t , err )
218
218
}
219
- // also let's register inactive sessionizer
219
+ // also let's register inactive sessions
220
220
for i := range 5 {
221
221
err := server .RegisterSession (& fakeSession {
222
222
sessionID : fmt .Sprintf ("test%d" , i + 5 ),
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ func (s *SSEServer) Start(addr string) error {
167
167
return s .srv .ListenAndServe ()
168
168
}
169
169
170
- // Shutdown gracefully stops the SSE server, closing all active sessionizer
170
+ // Shutdown gracefully stops the SSE server, closing all active sessions
171
171
// and shutting down the HTTP server.
172
172
func (s * SSEServer ) Shutdown (ctx context.Context ) error {
173
173
if s .srv != nil {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func TestSSEServer(t *testing.T) {
122
122
}
123
123
})
124
124
125
- t .Run ("Can handle multiple sessionizer " , func (t * testing.T ) {
125
+ t .Run ("Can handle multiple sessions " , func (t * testing.T ) {
126
126
mcpServer := NewMCPServer ("test" , "1.0.0" ,
127
127
WithResourceCapabilities (true , true ),
128
128
)
@@ -238,9 +238,9 @@ func TestSSEServer(t *testing.T) {
238
238
239
239
select {
240
240
case <- done :
241
- // All sessionizer completed successfully
241
+ // All sessions completed successfully
242
242
case <- time .After (5 * time .Second ):
243
- t .Fatal ("Timeout waiting for sessionizer to complete" )
243
+ t .Fatal ("Timeout waiting for sessions to complete" )
244
244
}
245
245
})
246
246
You can’t perform that action at this time.
0 commit comments