Skip to content

Commit e5121b3

Browse files
committed
Release v0.27.0
1 parent eeb7070 commit e5121b3

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

examples/simple_client/main.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ func main() {
4747
// Create command and stdio transport
4848
command := args[0]
4949
cmdArgs := args[1:]
50-
50+
5151
// Create stdio transport with verbose logging
5252
stdioTransport := transport.NewStdio(command, nil, cmdArgs...)
53-
53+
5454
// Start the transport
5555
if err := stdioTransport.Start(ctx); err != nil {
5656
log.Fatalf("Failed to start stdio transport: %v", err)
5757
}
58-
58+
5959
// Create client with the transport
6060
c = client.NewClient(stdioTransport)
61-
61+
6262
// Set up logging for stderr if available
6363
if stderr, ok := client.GetStderr(c); ok {
6464
go func() {
@@ -84,12 +84,12 @@ func main() {
8484
if err != nil {
8585
log.Fatalf("Failed to create SSE transport: %v", err)
8686
}
87-
87+
8888
// Start the transport
8989
if err := sseTransport.Start(ctx); err != nil {
9090
log.Fatalf("Failed to start SSE transport: %v", err)
9191
}
92-
92+
9393
// Create client with the transport
9494
c = client.NewClient(sseTransport)
9595
}
@@ -108,15 +108,15 @@ func main() {
108108
Version: "1.0.0",
109109
}
110110
initRequest.Params.Capabilities = mcp.ClientCapabilities{}
111-
111+
112112
serverInfo, err := c.Initialize(ctx, initRequest)
113113
if err != nil {
114114
log.Fatalf("Failed to initialize: %v", err)
115115
}
116116

117117
// Display server information
118-
fmt.Printf("Connected to server: %s (version %s)\n",
119-
serverInfo.ServerInfo.Name,
118+
fmt.Printf("Connected to server: %s (version %s)\n",
119+
serverInfo.ServerInfo.Name,
120120
serverInfo.ServerInfo.Version)
121121
fmt.Printf("Server capabilities: %+v\n", serverInfo.Capabilities)
122122

@@ -190,4 +190,4 @@ func parseCommand(cmd string) []string {
190190
}
191191

192192
return result
193-
}
193+
}

server/resource_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ func TestMCPServer_RemoveResource(t *testing.T) {
135135
// verify that no notifications were sent
136136
assert.Empty(t, notifications)
137137

138-
139138
// The original resource should still be there
140139
resp, ok := resourcesList.(mcp.JSONRPCResponse)
141140
assert.True(t, ok)

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (s *MCPServer) RemoveResource(uri string) {
341341
}
342342
s.resourcesMu.Unlock()
343343

344-
// Send notification to all initialized sessions if listChanged capability is enabled and we actually remove a resource
344+
// Send notification to all initialized sessions if listChanged capability is enabled and we actually remove a resource
345345
if exists && s.capabilities.resources != nil && s.capabilities.resources.listChanged {
346346
s.SendNotificationToAllClients(mcp.MethodNotificationResourcesListChanged, nil)
347347
}

0 commit comments

Comments
 (0)