Skip to main content
Glama

list_interactsh_sessions

View cached interactsh sessions to monitor captured DNS and HTTP interactions for security testing and verification workflows.

Instructions

Lists interactsh sessions cached in memory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.js:333-340 (registration)
    Registration of the 'list_interactsh_sessions' MCP tool, including metadata (title, description) and the inline handler function that executes service.listSessions() and returns it wrapped in a result object.
    server.registerTool( 'list_interactsh_sessions', { title: 'List sessions', description: 'Lists interactsh sessions cached in memory.', }, async () => result(service.listSessions()), );
  • The core logic for listing interactsh sessions: iterates over the in-memory Map of sessions and collects their toJSON() outputs into a plain object.
    listSessions() { const result = {}; for (const [key, session] of this.sessions.entries()) { result[key] = session.toJSON(); } return result; }
  • Utility function used by tool handlers to format output as MCP-compatible response with both 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