deregister_interactsh_session
Remove a session from interactsh and local cache to clean up resources after completing out-of-band interaction testing for security workflows.
Instructions
Removes a session from interactsh and local cache.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| correlation_id | Yes |
Implementation Reference
- src/server.js:377-388 (registration)Registration of the 'deregister_interactsh_session' MCP tool, including title, description, input schema, and inline handler function.server.registerTool( 'deregister_interactsh_session', { title: 'Deregister session', description: 'Removes a session from interactsh and local cache.', inputSchema: { correlation_id: z.string() }, }, async ({ correlation_id }) => { await service.deregisterSession(correlation_id); return result({ status: 'deregistered', correlation_id }); }, );
- src/server.js:384-387 (handler)Inline handler function for the tool that invokes the service's deregisterSession method and returns a success result.async ({ correlation_id }) => { await service.deregisterSession(correlation_id); return result({ status: 'deregistered', correlation_id }); },
- src/server.js:382-382 (schema)Input schema definition using Zod: requires a 'correlation_id' string.inputSchema: { correlation_id: z.string() },
- src/server.js:90-104 (helper)Core helper method in InteractshService class that performs the deregistration by POSTing to interactsh /deregister endpoint with session credentials and removes the session from local Map cache.async deregisterSession(correlationId) { const session = this.#requireSession(correlationId); const url = new URL('/deregister', this.baseUrl); await this.#request(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ 'correlation-id': session.correlationId, 'secret-key': session.secretKey, }), }); this.sessions.delete(correlationId); }