The client, core and server packages become ^2.0.0 peers and client is now a required peer (App and AppBridge extend its Protocol class); server stays optional for View-only consumers. Examples move to zod ^4.2.0 to match the library peer range. The root package is not yet published at 2.0.0, so the lockfile now links the examples' @modelcontextprotocol/ext-apps dependency to the repository root instead of a registry copy. This drops the stale 1.x tarball (and its sdk 1.x peer) from the lockfile and makes scripts/link-self.mjs a no-op.
59 lines
2.2 KiB
JSON
59 lines
2.2 KiB
JSON
{
|
|
"name": "@modelcontextprotocol/server-pdf",
|
|
"version": "2.0.0",
|
|
"type": "module",
|
|
"description": "MCP server for loading and extracting text from PDF files with chunked pagination and interactive viewer",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modelcontextprotocol/ext-apps",
|
|
"directory": "examples/pdf-server"
|
|
},
|
|
"license": "MIT",
|
|
"main": "dist/server.js",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build && tsc -p tsconfig.server.json && bun build pdfjs-polyfill.ts --outdir dist --target node && bun build server.ts --outdir dist --target node --external pdfjs-dist --external \"./pdfjs-polyfill.js\" && bun build main.ts --outfile dist/index.js --target node --external \"./server.js\" --external pdfjs-dist --banner \"#!/usr/bin/env node\"",
|
|
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
|
|
"serve": "bun --watch main.ts --enable-interact",
|
|
"serve:stdio": "bun main.ts --stdio",
|
|
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
|
|
"start:stdio": "cross-env NODE_ENV=development npm run build 1>&2 && npm run serve:stdio",
|
|
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve\"",
|
|
"prepublishOnly": "npm run build",
|
|
"build:mcpb": "npm run build && node build-mcpb.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@cantoo/pdf-lib": "^2.6.5",
|
|
"@modelcontextprotocol/client": "2.0.0",
|
|
"@modelcontextprotocol/express": "2.0.0",
|
|
"@modelcontextprotocol/ext-apps": "^2.0.0",
|
|
"@modelcontextprotocol/node": "2.0.0",
|
|
"@modelcontextprotocol/server": "2.0.0",
|
|
"cors": "^2.8.5",
|
|
"express": "^5.1.0",
|
|
"pdfjs-dist": "^5.0.0",
|
|
"zod": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "22.10.0",
|
|
"concurrently": "^9.2.1",
|
|
"cross-env": "^10.1.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^6.0.0",
|
|
"vite-plugin-singlefile": "^2.3.0"
|
|
},
|
|
"types": "dist/server.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/server.d.ts",
|
|
"default": "./dist/server.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"mcp-pdf-server": "dist/index.js"
|
|
}
|
|
}
|