stop_crash_session
Terminate an active crash analysis session to stop resource usage and complete debugging tasks.
Instructions
Terminates an active crash session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Implementation Reference
- src/crash_mcp/server.py:138-150 (handler)The main handler function for the 'stop_crash_session' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function terminates the specified crash analysis session by closing it and removing it from the global sessions dictionary.@mcp.tool() def stop_crash_session(session_id: str) -> str: """ Terminates an active crash session. """ if session_id not in sessions: return f"Error: Session ID {session_id} not found." session = sessions[session_id] session.close() del sessions[session_id] return f"Session {session_id} closed."