Skip to main content
Glama

get_config

Retrieve HTTP Toolkit proxy configuration details including certificate paths, network interfaces, system proxy settings, and DNS servers for debugging and intercepting HTTP(S) traffic.

Instructions

Get HTTP Toolkit proxy configuration including certificate paths, network interfaces, system proxy, and DNS servers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proxyPortNoProxy port number

Implementation Reference

  • The actual implementation of the getConfig method which performs the API request.
    async getConfig(proxyPort?: number): Promise<{ config: Record<string, unknown> }> {
      const query = proxyPort ? `?proxyPort=${proxyPort}` : '';
      return this.request('GET', `/config${query}`);
    }
  • src/index.ts:42-53 (registration)
    Registration of the get_config tool in the MCP server.
    server.registerTool(
      'get_config',
      {
        title: 'Get Proxy Configuration',
        description:
          'Get HTTP Toolkit proxy configuration including certificate paths, network interfaces, system proxy, and DNS servers',
        inputSchema: z.object({
          proxyPort: z.number().optional().describe('Proxy port number'),
        }),
      },
      async ({ proxyPort }) => jsonResult(await client.getConfig(proxyPort))
    );

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