vercel-labs / vercel-labs/mcp-handler
mcp-api-handler.ts setInterval NOT unref()'ed = process can't exit
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 670
- Forks
- 89
- Avg merge
- 3m
- Merged PRs (30d)
- 5
Description
if (!cleanupInterval) {
cleanupInterval = setInterval(() => {
// cleanups...
}, 30 * 1000); // Run every 30 seconds
}
cleanupInterval wants clearInterval()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read mcp-api-handler.ts and locate the cleanupInterval setInterval call. Check how the interval is cleaned up, then ensure the process can exit when the cleanup work is no longer needed. Confirm the interval is properly cleared and does not keep the process running.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100