getProxyInfo
Retrieve proxy configuration details from your current network environment to understand connection settings and troubleshoot network access issues.
Instructions
获取当前网络的所有代理信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:455-468 (handler)The switch case in handleCallToolRequest that executes the getProxyInfo tool. It reads proxy-related environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) and returns a JSON-formatted response with their values.case "getProxyInfo": { const proxyInfo = { httpProxy: process.env.HTTP_PROXY || process.env.http_proxy || '未配置', httpsProxy: process.env.HTTPS_PROXY || process.env.https_proxy || '未配置', noProxy: process.env.NO_PROXY || process.env.no_proxy || '未配置' }; return { content: [{ type: "text", text: JSON.stringify(proxyInfo, null, 2) }] }; }
- src/index.ts:118-126 (registration)The tool definition in the handleRequest function (listTools handler), which lists the getProxyInfo tool with its name, description, and input schema (empty object).{ name: "getProxyInfo", description: "获取当前网络的所有代理信息", inputSchema: { type: "object", properties: {}, required: [] } },
- src/index.ts:121-125 (schema)The inputSchema definition for the getProxyInfo tool, specifying an empty object schema with no properties or requirements.inputSchema: { type: "object", properties: {}, required: [] }