vercel-labs / vercel-labs/mcp-handler

mcp-api-handler.ts setInterval NOT unref()'ed = process can't exit

Open
#129 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.