Skip to content

Commit 715d3bb

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 99f0833 commit 715d3bb

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({
@@ -113,7 +112,9 @@ const ListOutputSchema = z.object({
113112
const GetInputSchema = z.object({
114113
id: z
115114
.string()
116-
.describe("Server ID (format: 'ai.exa/exa' or 'ai.exa/exa@3.1.1')"),
115+
.describe(
116+
"Server name (format: 'ai.exa/exa' or 'ai.exa/exa@3.1.1'). Note: version suffix is ignored, always returns latest version.",
117+
),
117118
});
118119

119120
/**
@@ -275,12 +276,16 @@ export const createListRegistryTool = (_env: Env) =>
275276

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

0 commit comments

Comments
 (0)