getProxyInfo
Retrieve comprehensive details about all active network proxies to analyze and manage your current operating environment's connectivity settings.
Instructions
获取当前网络的所有代理信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/index.ts:455-468 (handler)The handler implementation for the getProxyInfo tool. It retrieves proxy-related environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY and their lowercase variants) and formats them into a JSON object for response.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)Registration of the getProxyInfo tool in the tools list returned by listTools handler, including its name, description, and input schema (empty object, no parameters).{ name: "getProxyInfo", description: "获取当前网络的所有代理信息", inputSchema: { type: "object", properties: {}, required: [] } },
- src/index.ts:121-125 (schema)Input schema definition for the getProxyInfo tool, specifying an empty object with no required properties.inputSchema: { type: "object", properties: {}, required: [] }