Skip to main content
Glama

Current operating environment

getProxyInfo

Retrieve comprehensive details about all active network proxies to analyze and manage your current operating environment's connectivity settings.

Instructions

获取当前网络的所有代理信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • 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: [] } },
  • Input schema definition for the getProxyInfo tool, specifying an empty object with no required properties.
    inputSchema: { type: "object", properties: {}, required: [] }

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/JackXuyi/env-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server