You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/consuming/use-rest-api.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ Integration patterns and best practices for building applications that consume M
9
9
**Authentication**: Not required for read-only access
10
10
11
11
-**`GET /v0/servers`** - List all servers with pagination
12
-
-**`GET /v0/servers/{server_id}`** - Get latest version of server by server ID
13
-
-**`GET /v0/servers/{server_id}?version=X.X.X`** - Get specific version of server
14
-
-**`GET /v0/servers/{server_id}/versions`** - List all versions of a server
12
+
-**`GET /v0/servers/{serverName}`** - Get latest version of server by server name (URL-encoded)
13
+
-**`GET /v0/servers/{serverName}/versions/{version}`** - Get specific version of server
14
+
-**`GET /v0/servers/{serverName}/versions`** - List all versions of a server
15
15
16
16
See the [interactive API documentation](https://registry.modelcontextprotocol.io/docs) for complete request/response schemas.
17
17
@@ -22,6 +22,32 @@ See the [interactive API documentation](https://registry.modelcontextprotocol.io
22
22
23
23
For now we recommend scraping the `GET /v0/servers` endpoint on some regular basis. In the future we might provide a filter for updatedAt ([#291](https://github.com/modelcontextprotocol/registry/issues/291)) to get only recently changed servers.
24
24
25
+
### Pagination Example
26
+
27
+
The API uses cursor-based pagination. Here's how to fetch all servers:
**Important**: Always URL-encode cursor values when using them in query parameters.
50
+
25
51
Servers are generally immutable, except for the `status` field which can be updated to `deleted` (among other states). For these packages, we recommend you also update the status field to `deleted` or remove the package from your registry quickly. This is because this status generally indicates it has violated our permissive [moderation guidelines](../administration/moderation-guidelines.md), suggesting it is illegal, malware or spam.
0 commit comments