Skip to main content
Glama
JackXuyi

Current operating environment

getNetworkInfo

Retrieve network configuration details from your current system to diagnose connectivity issues and monitor network status.

Instructions

获取当前系统的网络信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'getNetworkInfo' tool. Retrieves network interfaces using Node.js 'os.networkInterfaces()' and returns the data as a JSON-formatted text response.
    case "getNetworkInfo": { const networkInfo = { networkInterfaces: os.networkInterfaces() }; return { content: [{ type: "text", text: JSON.stringify(networkInfo, null, 2) }] }; }
  • src/index.ts:56-63 (registration)
    Registration of the 'getNetworkInfo' tool in the listTools handler response. Defines the tool name, description, and input schema (empty object).
    name: "getNetworkInfo", description: "获取当前系统的网络信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema definition for the 'getNetworkInfo' 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