Fix TypeScript build errors

- Add @types/node dependency for NodeJS namespace types
- Remove unsupported 'title' property from MCP tool registration
- Add Node.js types to tsconfig.json for proper type resolution
- Ensure build succeeds for GitHub Pages deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jerome 2025-07-03 11:47:45 +01:00
commit 0006f25269
No known key found for this signature in database
4 changed files with 27 additions and 8 deletions

18
package-lock.json generated
View file

@ -16,6 +16,7 @@
"uuid": "^10.0.0"
},
"devDependencies": {
"@types/node": "^24.0.10",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/uuid": "^10.0.0",
@ -1453,6 +1454,16 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.0.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.10.tgz",
"integrity": "sha512-ENHwaH+JIRTDIEEbDK6QSQntAYGtbvdDXnMXnZaZ6k13Du1dPMmprkEHIL7ok2Wl2aZevetwTAb5S+7yIF+enA==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.8.0"
}
},
"node_modules/@types/prop-types": {
"version": "15.7.15",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
@ -5673,6 +5684,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/undici-types": {
"version": "7.8.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
"integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
"dev": true,
"license": "MIT"
},
"node_modules/unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",

View file

@ -12,20 +12,22 @@
"test:ui": "vitest --ui"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"clsx": "^2.0.0",
"lucide-react": "^0.344.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@modelcontextprotocol/sdk": "^1.0.0",
"uuid": "^10.0.0",
"clsx": "^2.0.0",
"lucide-react": "^0.344.0"
"uuid": "^10.0.0"
},
"devDependencies": {
"@types/node": "^24.0.10",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/ui": "^1.2.0",
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
@ -34,7 +36,6 @@
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.1.0",
"vitest": "^1.2.0",
"@vitest/ui": "^1.2.0"
"vitest": "^1.2.0"
}
}

View file

@ -12,7 +12,6 @@ export function createServer() {
// Add an addition tool
server.registerTool("add",
{
title: "Addition Tool",
description: "Add two numbers",
inputSchema: { a: z.number(), b: z.number() },
},

View file

@ -3,6 +3,7 @@
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"types": ["node"],
"module": "ESNext",
"skipLibCheck": true,