diff --git a/server.json b/server.json index 3736f7e..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's governed workflow: approvals, access control, data masking, and audit logging stay on your Bytebase instance.", + "description": "Query, inspect, and change databases through Bytebase's governed workflow with audit logging.", "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}`); + } +});