@@ -60,7 +60,7 @@ func main() {
6060 }
6161
6262 // Get a specific server by name
63- gmailServers , err := client.Servers .GetByName (ctx, " ai.waystation/gmail" )
63+ gmailServers , _ , err := client.Servers .ListByName (ctx, " ai.waystation/gmail" )
6464 if err != nil {
6565 log.Fatal (err)
6666 }
@@ -108,23 +108,23 @@ opts := &mcp.ServerListOptions{
108108servers , resp , err := client.Servers .List (ctx, opts)
109109
110110// Get all servers (handles pagination automatically)
111- allServers , err := client.Servers .ListAll (ctx, nil )
111+ allServers , _ , err := client.Servers .ListAll (ctx, nil )
112112```
113113
114114### Getting Servers by Name
115115
116116``` go
117117// Get all versions of a server
118- servers , err := client.Servers .GetByName (ctx, " ai.waystation/gmail" )
118+ servers , _ , err := client.Servers .ListByName (ctx, " ai.waystation/gmail" )
119119
120120// Get latest version only
121- server , err := client.Servers .GetByNameLatest (ctx, " ai.waystation/gmail" )
121+ server , _ , err := client.Servers .GetByNameLatest (ctx, " ai.waystation/gmail" )
122122
123123// Get specific version
124- server , err := client.Servers .GetByNameExactVersion (ctx, " ai.waystation/gmail" , " 0.3.1" )
124+ server , _ , err := client.Servers .GetByNameExactVersion (ctx, " ai.waystation/gmail" , " 0.3.1" )
125125
126126// Get latest active version (uses semantic versioning)
127- server , err := client.Servers .GetByNameLatestActiveVersion (ctx, " ai.waystation/gmail" )
127+ server , _ , err := client.Servers .GetByNameLatestActiveVersion (ctx, " ai.waystation/gmail" )
128128```
129129
130130### Manual Pagination
@@ -184,9 +184,11 @@ if resp.Rate.Limit > 0 {
184184| Method | Description |
185185| --------| -------------|
186186| ` List(ctx, opts) ` | List servers with pagination and filtering |
187- | ` Get(ctx, id ) ` | Get server by ID |
187+ | ` Get(ctx, serverID, opts ) ` | Get server by ID with optional version |
188188| ` ListAll(ctx, opts) ` | Get all servers (automatic pagination) |
189- | ` GetByName(ctx, name) ` | Get all versions of a named server |
189+ | ` ListByName(ctx, name) ` | Get all versions of a named server |
190+ | ` ListByServerID(ctx, serverID) ` | Get all versions of a server by server ID |
191+ | ` ListByUpdatedSince(ctx, since) ` | Get servers updated since timestamp |
190192| ` GetByNameLatest(ctx, name) ` | Get latest version using API filter |
191193| ` GetByNameExactVersion(ctx, name, version) ` | Get specific version |
192194| ` GetByNameLatestActiveVersion(ctx, name) ` | Get latest active version by semver |
@@ -223,7 +225,7 @@ go test -cover ./...
223225INTEGRATION_TESTS=true go test ./test/integration/
224226
225227# Specific test
226- go test -v ./mcp -run TestServersService_GetByName
228+ go test -v ./mcp -run TestServersService_ListByName
227229```
228230
229231### Building
0 commit comments