close_contam_bridge_session
End an active CONTAM bridge session to release the spawned process and socket resources.
Instructions
Use this when you want to end an active ContamX bridge-mode session and release the spawned process and socket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes |
Implementation Reference
- contam-mcp/src/server.js:2729-2746 (handler)The handler for the 'close_contam_bridge_session' tool, which retrieves a bridge session by ID, fetches its final summary, removes it from the 'bridgeSessions' map, and calls the session's 'close' method to clean up the process and socket.
"close_contam_bridge_session", "Use this when you want to end an active ContamX bridge-mode session and release the spawned process and socket.", { sessionId: z.string() }, async ({ sessionId }) => { const session = bridgeSessions.get(sessionId); if (!session) { throw new Error(`Bridge session not found: ${sessionId}`); } const summary = session.getSummary(); bridgeSessions.delete(sessionId); await session.close(); return toolResponse("Closed the ContamX bridge session.", summary); } );