Skip to main content
Glama

intercept_electron

Launch Electron applications while intercepting their HTTP(S) traffic for debugging and inspection purposes.

Instructions

Launch an Electron application with all its HTTP(S) traffic intercepted. Use get_interceptor_metadata with id "electron" to list available Electron apps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proxyPortYesProxy port to route traffic through
pathToApplicationYesPath to the Electron application to launch

Implementation Reference

  • src/index.ts:315-327 (registration)
    Registration of the 'intercept_electron' tool in the MCP server.
    server.registerTool(
      'intercept_electron',
      {
        title: 'Intercept Electron App',
        description: 'Launch an Electron application with all its HTTP(S) traffic intercepted. Use get_interceptor_metadata with id "electron" to list available Electron apps.',
        inputSchema: z.object({
          proxyPort: z.number().describe('Proxy port to route traffic through'),
          pathToApplication: z.string().describe('Path to the Electron application to launch'),
        }),
      },
      async ({ proxyPort, pathToApplication }) =>
        jsonResult(await client.activateInterceptor('electron', proxyPort, { pathToApplication }))
    );
  • The handler implementation that makes the HTTP request to the HTTP Toolkit server to activate an interceptor.
    async activateInterceptor(
      id: string,
      proxyPort: number,
      options?: unknown
    ): Promise<{ result: { success: boolean; metadata?: unknown } }> {
      return this.request(
        'POST',
        `/interceptors/${encodeURIComponent(id)}/activate/${proxyPort}`,
        options || {}
      );

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/fdciabdul/httptoolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server