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
| Name | Required | Description | Default |
|---|---|---|---|
| proxyPort | No | Proxy port number |
Implementation Reference
- src/httptoolkit-client.ts:77-80 (handler)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)) );