Skip to main content
Glama

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
NameRequiredDescriptionDefault
correlation_idYes

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 }); }, );
  • 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 }); },
  • Input schema definition using Zod: requires a 'correlation_id' string.
    inputSchema: { correlation_id: z.string() },
  • 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); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tachote/mcp-interactsh'

If you have feedback or need assistance with the MCP directory API, please join our Discord server