Skip to main content
Glama

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

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 }); }, );
  • 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); }
  • Zod input schema defining the required 'correlation_id' string parameter.
    inputSchema: { correlation_id: z.string() },
  • 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, }; }

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