deregister_interactsh_session
Remove an active Interactsh session and clear it from local cache to manage callback domains used for security testing and interaction verification.
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 input schema and inline handler function that delegates to service.deregisterSession.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:90-104 (handler)Core handler logic for deregistering an Interactsh session: retrieves session, sends POST request to /deregister endpoint with correlation-id and secret-key, then removes from local sessions Map.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); }
- src/server.js:382-382 (schema)Zod input schema defining the required 'correlation_id' string parameter.inputSchema: { correlation_id: z.string() },
- src/server.js:276-286 (helper)Helper function used by the tool handler to format the response with text and structured content.function result(structured) { return { content: [ { type: 'text', text: JSON.stringify(structured, null, 2), }, ], structuredContent: structured, }; }