interceptor_status
Check active targets and details for a specific interceptor in the proxy-mcp server to monitor network traffic capture and modification status.
Instructions
Get detailed status of a specific interceptor, including all active targets and their details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interceptor_id | Yes | Interceptor ID (e.g., 'chrome', 'terminal', 'android-adb', 'android-frida', 'docker') |
Implementation Reference
- src/tools/interceptors.ts:95-118 (handler)The tool `interceptor_status` is implemented as an MCP tool using `server.tool`. It retrieves a specific interceptor from the `interceptorManager` and calls its `getMetadata()` method to return the status information.
server.tool( "interceptor_status", "Get detailed status of a specific interceptor, including all active targets and their details.", { interceptor_id: z.string().describe("Interceptor ID (e.g., 'chrome', 'terminal', 'android-adb', 'android-frida', 'docker')"), }, async ({ interceptor_id }) => { try { const interceptor = interceptorManager.get(interceptor_id); if (!interceptor) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: `Interceptor '${interceptor_id}' not found` }) }] }; } const meta = await interceptor.getMetadata(); return { content: [{ type: "text", text: JSON.stringify({ status: "success", ...meta }), }], }; } catch (e) { return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] }; } }, );