Skip to content

Commit ff3c404

Browse files
committed
docs(registry): fix incorrect GET tool documentation
- Update COLLECTION_REGISTRY_APP_GET docs to reflect actual behavior - GET always returns LATEST version (is_latest: true) - Version suffix in 'name@version' is accepted but IGNORED - Remove misleading reference to GET supporting specific versions - Clarify that COLLECTION_REGISTRY_APP_VERSIONS should be used for version queries The implementation was correct, only the documentation was inaccurate.
1 parent 9b6bf25 commit ff3c404

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

registry/server/tools/registry-binding.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ const WhereSchema = z
6969
* Input schema para LIST
7070
*
7171
* Note: This tool always returns the latest version of each server (is_latest: true).
72-
* To get a specific version, use COLLECTION_REGISTRY_APP_GET with 'name@version'.
73-
* To get all versions, use COLLECTION_REGISTRY_APP_VERSIONS.
72+
* To get all versions of a server, use COLLECTION_REGISTRY_APP_VERSIONS.
7473
*/
7574
const ListInputSchema = z
7675
.object({
@@ -112,7 +111,9 @@ const ListOutputSchema = z.object({
112111
const GetInputSchema = z.object({
113112
id: z
114113
.string()
115-
.describe("Server ID (format: 'ai.exa/exa' or 'ai.exa/exa@3.1.1')"),
114+
.describe(
115+
"Server name (format: 'ai.exa/exa' or 'ai.exa/exa@3.1.1'). Note: version suffix is ignored, always returns latest version.",
116+
),
116117
});
117118

118119
/**
@@ -274,12 +275,16 @@ export const createListRegistryTool = (_env: Env) =>
274275

275276
/**
276277
* COLLECTION_REGISTRY_GET - Gets a specific server from Supabase
278+
*
279+
* Note: This tool always returns the LATEST version (is_latest: true).
280+
* The version suffix in 'name@version' is accepted but ignored.
281+
* To get all versions of a server, use COLLECTION_REGISTRY_APP_VERSIONS.
277282
*/
278283
export const createGetRegistryTool = (_env: Env) =>
279284
createPrivateTool({
280285
id: "COLLECTION_REGISTRY_APP_GET",
281286
description:
282-
"Gets a specific MCP server from the registry by ID (format: 'name' or 'name@version')",
287+
"Gets the latest version of a specific MCP server from the registry by name (accepts 'name' or 'name@version', but always returns latest)",
283288
inputSchema: GetInputSchema,
284289
outputSchema: GetOutputSchema,
285290
execute: async ({

0 commit comments

Comments
 (0)