Skip to main content
Glama

intercept_fresh_terminal

Open a terminal to automatically intercept HTTP(S) traffic from launched processes and Docker containers for debugging purposes.

Instructions

Open a new terminal window where all launched processes and Docker containers will have their HTTP(S) traffic intercepted automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proxyPortYesProxy port to route traffic through

Implementation Reference

  • Registration of the 'intercept_fresh_terminal' tool, which uses 'client.activateInterceptor' to handle the request.
    server.registerTool(
      'intercept_fresh_terminal',
      {
        title: 'Open Intercepted Terminal',
        description: 'Open a new terminal window where all launched processes and Docker containers will have their HTTP(S) traffic intercepted automatically.',
        inputSchema: z.object({
          proxyPort: z.number().describe('Proxy port to route traffic through'),
        }),
      },
      async ({ proxyPort }) => jsonResult(await client.activateInterceptor('fresh-terminal', proxyPort))
    );
  • The underlying 'activateInterceptor' method in HttpToolkitClient that makes the API call to activate the specified 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