proxy_session_stop
Stop persistent on-disk capture and finalize the active session to complete traffic recording.
Instructions
Stop persistent on-disk capture and finalize the active session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/sessions.ts:63-77 (handler)The MCP tool handler for 'proxy_session_stop'. It calls proxyManager.stopSession() to finalize the active on-disk session capture and returns the session manifest.
server.tool( "proxy_session_stop", "Stop persistent on-disk capture and finalize the active session.", {}, async () => { try { const session = await proxyManager.stopSession(); return { content: [{ type: "text", text: JSON.stringify({ status: "success", session }) }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: toError(e) }) }] }; } }, ); - src/tools/sessions.ts:66-66 (schema)The schema for 'proxy_session_stop' is an empty object (no input parameters). The tool takes no arguments.
{}, - src/tools/sessions.ts:20-20 (registration)The registration function that registers all session tools including 'proxy_session_stop' via server.tool().
export function registerSessionTools(server: McpServer): void { - src/index.ts:70-70 (registration)Where registerSessionTools is called during server initialization, registering 'proxy_session_stop' on the MCP server.
registerSessionTools(server); - src/state.ts:715-717 (helper)ProxyManager.stopSession() delegates to sessionStore.stopSession() which finalizes the active session.
async stopSession(): Promise<SessionManifest | null> { return await this.sessionStore.stopSession(); }