Skip to content

Commit c0e24da

Browse files
committed
fix(mcp): correct server.json schema compliance for registry publishing
- Change registry_type to registryType (camelCase as per schema) - Change file_sha256 to fileSha256 (camelCase as per schema) - Shorten description from 170 to 88 characters (within 100 char limit) - Remove unsupported 'status' field from server.json Fixes 422 validation errors when publishing to MCP Registry. The registry API requires camelCase field names and enforces a 100 character limit on descriptions.
1 parent 0e1f7d4 commit c0e24da

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

scripts/update-server-json.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ try {
2727
// Update packages
2828
if (server.packages && server.packages.length > 0) {
2929
// Update npm package (first entry)
30-
if (server.packages[0].registry_type === 'npm') {
30+
if (server.packages[0].registryType === 'npm') {
3131
server.packages[0].version = pkg.version;
3232
}
3333

3434
// Update MCPB package (second entry)
3535
if (
3636
server.packages.length > 1 &&
37-
server.packages[1].registry_type === 'mcpb'
37+
server.packages[1].registryType === 'mcpb'
3838
) {
3939
server.packages[1].version = pkg.version;
4040
server.packages[1].identifier = `https://github.com/VectifyAI/pageindex-mcp/releases/download/v${pkg.version}/pageindex-mcp-${pkg.version}.mcpb`;
41-
server.packages[1].file_sha256 = hash;
41+
server.packages[1].fileSha256 = hash;
4242
server.packages[1].transport = {
4343
type: 'stdio',
4444
};

server.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
33
"name": "io.github.vectifyai/pageindex-mcp",
44
"title": "PageIndex MCP",
5-
"description": "MCP server for PageIndex - a reasoning-based RAG system for chatting with long PDFs. Supports local and online PDFs with unlimited conversations and free 1000 pages.",
6-
"status": "active",
5+
"description": "Reasoning-based RAG system for chatting with long PDFs. Supports local and online files.",
76
"repository": {
87
"url": "https://github.com/VectifyAI/pageindex-mcp",
98
"source": "github"
109
},
1110
"version": "1.6.0",
1211
"packages": [
1312
{
14-
"registry_type": "npm",
13+
"registryType": "npm",
1514
"version": "1.6.0",
1615
"identifier": "pageindex-mcp",
1716
"transport": {
1817
"type": "stdio"
1918
}
2019
},
2120
{
22-
"registry_type": "mcpb",
21+
"registryType": "mcpb",
2322
"version": "1.6.0",
24-
"identifier": "https://github.com/VectifyAI/pageindex-mcp/releases/download/v1.6.0/pageindex-mcp-1.6.0.mcpb",
25-
"file_sha256": "3985f8b4dbca16eb7fcae75a574f65e5c668ca6e6a255cdd016e933fde7aa9f3",
23+
"identifier": "https://github.com/VectifyAI/pageindex-mcp/releases/download/v1.5.0/pageindex-mcp-1.5.1.mcpb",
24+
"fileSha256": "",
2625
"transport": {
2726
"type": "stdio"
2827
}

0 commit comments

Comments
 (0)