deactivate_interceptor
Stop capturing HTTP(S) traffic by deactivating a running interceptor in HTTP Toolkit. Use this tool to end traffic inspection and debugging sessions.
Instructions
Deactivate a running interceptor and stop capturing its traffic
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Interceptor ID to deactivate | |
| proxyPort | Yes | Proxy port the interceptor is active on |
Implementation Reference
- src/index.ts:126-129 (handler)The MCP tool handler for 'deactivate_interceptor', which calls the client method.
async ({ id, proxyPort }) => { const result = await client.deactivateInterceptor(id, proxyPort); return jsonResult({ success: result }); } - src/httptoolkit-client.ts:113-124 (handler)The client method 'deactivateInterceptor' which executes the GraphQL mutation.
async deactivateInterceptor( id: string, proxyPort: number ): Promise<boolean> { const data = await this.graphql<{ deactivateInterceptor: boolean }>( `mutation DeactivateInterceptor($id: ID!, $proxyPort: Int!) { deactivateInterceptor(id: $id, proxyPort: $proxyPort) }`, { id, proxyPort } ); return data.deactivateInterceptor; } - src/index.ts:116-125 (registration)The registration of the 'deactivate_interceptor' tool.
server.registerTool( 'deactivate_interceptor', { title: 'Deactivate Interceptor', description: 'Deactivate a running interceptor and stop capturing its traffic', inputSchema: z.object({ id: z.string().describe('Interceptor ID to deactivate'), proxyPort: z.number().describe('Proxy port the interceptor is active on'), }), },