Skip to main content
Glama
JackXuyi

Current operating environment

getProxyInfo

Retrieve proxy configuration details from your current network environment to understand connection settings and troubleshoot network access issues.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: [] } },
  • The inputSchema definition for the getProxyInfo tool, specifying an empty object schema with no properties or requirements.
    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