Resource Usage Leak Detector

Resource Usage Leak Detector MCP Connector for Claude

A+

Monitor agent resource consumption to detect file descriptor or connection leaks.

4 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides a monitoring system designed to track agentic resource consumption and identify potential file descriptor or connection leaks. By detecting breaches in defined threshold limits, it helps prevent agent loops from exhausting system resources. Use record_resource_event to update session state, get_session_status for health snapshots, audit_all_sessions to find leaking processes, and configure_thresholds to adjust alert limits.

resource-trackingleak-detectionagent-healthfile-descriptorsconnections

4 tools expose this connector's capabilities to your AI agent.

audit_all_sessions

Perform a globalThis scan of all tracked sessions to identify any processes currently exhibiting resource leaks

configure_thresholds

Adjust the globalThis limits used to determine when a leak has occurred

get_session_status

Provide a snapshot of the current health and usage levels for a specific agent session

record_resource_event

Pass "OPEN" to increment and "CLOSE" to decrement. Update the internal state of an agent session by recording the opening or closing of a resource

See how to talk to your AI agent using Resource Usage Leak Detector.

Check if session 'session-123' is leaking any resources.

{ "success": true, "usageReport": { "fdCount": 5, "connectionCount": 2 }, "status": "HEALTHY" }

Are there any sessions currently leaking resources?

{ "success": true, "leakingSessions": [ { "sessionId": "session-999", "resourceType": "FD", "usage": 105 } ] }

Record that a new file descriptor was opened for session 'abc'.

{ "success": true, "currentUsage": 1, "isLeaking": false }

A leak is identified when the count for a specific resource type (FD or CONNECTION) within an active session reaches or exceeds the established threshold, which can be configured via `configure_thresholds`.

Related Connectors