Skip to content

Commit 0006f25

Browse files
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 <[email protected]>
1 parent 6b14864 commit 0006f25

File tree

4 files changed

+27
-8
lines changed

4 files changed

+27
-8
lines changed

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@
1212
"test:ui": "vitest --ui"
1313
},
1414
"dependencies": {
15-
"react": "^18.2.0",
16-
"react-dom": "^18.2.0",
1715
"@modelcontextprotocol/sdk": "^1.0.0",
18-
"uuid": "^10.0.0",
1916
"clsx": "^2.0.0",
20-
"lucide-react": "^0.344.0"
17+
"lucide-react": "^0.344.0",
18+
"react": "^18.2.0",
19+
"react-dom": "^18.2.0",
20+
"uuid": "^10.0.0"
2121
},
2222
"devDependencies": {
23+
"@types/node": "^24.0.10",
2324
"@types/react": "^18.2.55",
2425
"@types/react-dom": "^18.2.19",
2526
"@types/uuid": "^10.0.0",
2627
"@typescript-eslint/eslint-plugin": "^6.21.0",
2728
"@typescript-eslint/parser": "^6.21.0",
2829
"@vitejs/plugin-react": "^4.2.1",
30+
"@vitest/ui": "^1.2.0",
2931
"autoprefixer": "^10.4.17",
3032
"eslint": "^8.56.0",
3133
"eslint-plugin-react-hooks": "^4.6.0",
@@ -34,7 +36,6 @@
3436
"tailwindcss": "^3.4.1",
3537
"typescript": "^5.2.2",
3638
"vite": "^5.1.0",
37-
"vitest": "^1.2.0",
38-
"@vitest/ui": "^1.2.0"
39+
"vitest": "^1.2.0"
3940
}
40-
}
41+
}

src/mcp/servers/test/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export function createServer() {
1212
// Add an addition tool
1313
server.registerTool("add",
1414
{
15-
title: "Addition Tool",
1615
description: "Add two numbers",
1716
inputSchema: { a: z.number(), b: z.number() },
1817
},

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2020",
44
"useDefineForClassFields": true,
55
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"types": ["node"],
67
"module": "ESNext",
78
"skipLibCheck": true,
89

0 commit comments

Comments
 (0)