From 6c922cd313815262d3cc8bc15e170d320d28ef12 Mon Sep 17 00:00:00 2001 From: zchpeter Date: Tue, 24 Nov 2026 07:36:02 -0500 Subject: [PATCH 1/2] Fit server.json's description in the MCP Registry's 100-character limit The registry refused 0.1.0 with 422 (description was 165 characters). A test now checks every length limit the registry schema sets on server.json. Co-Authored-By: Claude Opus 5.5 --- server.json | 2 +- test/config.test.mjs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/server.json b/server.json index 3736f7e..4fa8590 100644 --- a/server.json +++ b/server.json @@ -2,7 +2,7 @@ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.bytebase/bytebase-mcp", "title": "Bytebase", - "description": "Query, inspect, and change databases through Bytebase's governed workflow: approvals, access control, data masking, and audit logging stay on your Bytebase instance.", + "description": "Query, inspect, and change databases through Bytebase, under its approvals, masking, and audit.", "repository": { "url": "https://github.com/bytebase/bytebase-mcp", "source": "github" diff --git a/test/config.test.mjs b/test/config.test.mjs index 249596a..7877978 100644 --- a/test/config.test.mjs +++ b/test/config.test.mjs @@ -33,3 +33,13 @@ test("loadConfig keeps sign-ins in ~/.bytebase-mcp, not under XDG config", async assert.equal(loadConfig({ XDG_CONFIG_HOME: "/tmp/xdg" }).home, path.join(os.homedir(), ".bytebase-mcp")); assert.equal(loadConfig({ BYTEBASE_MCP_HOME: "/tmp/elsewhere" }).home, "/tmp/elsewhere"); }); + +test("server.json fits the MCP Registry schema's length limits", async () => { + const { readFile } = await import("node:fs/promises"); + const server = JSON.parse(await readFile(new URL("../server.json", import.meta.url), "utf8")); + // maxLength in https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json (ServerDetail). + const limits = { name: 200, title: 100, description: 100, version: 255 }; + for (const [field, max] of Object.entries(limits)) { + assert.ok(server[field].length <= max, `${field} is ${server[field].length} characters; the registry allows ${max}`); + } +}); From c53257f72053875e41b0b1b4bec8fb39a3fcb2df Mon Sep 17 00:00:00 2001 From: zchpeter Date: Tue, 24 Nov 2026 07:40:12 -0500 Subject: [PATCH 2/2] Describe the server as Bytebase's governed workflow with audit logging Co-Authored-By: Claude Opus 5.5 --- server.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.json b/server.json index 4fa8590..d1840c6 100644 --- a/server.json +++ b/server.json @@ -2,7 +2,7 @@ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.bytebase/bytebase-mcp", "title": "Bytebase", - "description": "Query, inspect, and change databases through Bytebase, under its approvals, masking, and audit.", + "description": "Query, inspect, and change databases through Bytebase's governed workflow with audit logging.", "repository": { "url": "https://github.com/bytebase/bytebase-mcp", "source": "github"