Azure-Samples / Azure-Samples/remote-mcp-functions-typescript

Update devDependencies: @types/node 20→22, TypeScript 4→5

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
59
Forks
28
PR merge metrics
No merged PRs in 30d

Description

## Summary

Update TypeScript MCP template devDependencies to match Node.js 22 runtime.

## Current State

**package.json:**
```json
{
"dependencies": {
"@azure/functions": "4.12.0-preview.2",
"zod": "^3.24.2"
},
"devDependencies": {
"@types/node": "^20.x",
"rimraf": "^5.0.0",
"typescript": "^4.0.0"
},
"main": "dist/src/index.js"
}
```

**infra/main.bicep:** Node 22 ✅ (already current)

## Proposed Changes

**package.json:**
```json
{
"devDependencies": {
"@types/node": "^22.x",
"rimraf": "^5.0.0",
"typescript": "^5.0.0"
}
}
```

## Why These Changes?

| Change | Reason |
|--------|--------|
| `@types/node` 20→22 | Type definitions should match runtime version (Node 22) |
| `typescript` 4→5 | Latest stable with better performance and features |

## Testing Checklist

- [ ] `npm install` succeeds
- [ ] `npm run build` compiles without errors
- [ ] `func start` discovers all MCP tools
- [ ] `azd up` deploys successfully
- [ ] MCP tools respond correctly via HTTP transport

Contributor guide

No contributing guide indexed for this repository

Research direction

Update the devDependencies in package.json while keeping infra/main.bicep's Node 22 runtime aligned. Start with npm install, then run npm run build, func start, and azd up; done means installation, compilation, tool discovery, deployment, and HTTP MCP responses all succeed.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, node.js, typescript
Domain
build-system, cloud
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.