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
| Name | Required | Description | Default |
|---|---|---|---|
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()), );
- src/server.js:65-71 (helper)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; }
- src/server.js:276-286 (helper)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, }; }