Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions test/config.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
});
Loading