Skip to main content
Glama
getNetwork.ts454 B
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; export async function getNetwork(): Promise<CallToolResult> { const network = process.env.MVX_NETWORK; return { content: [ { type: "text", text: `The current used network is ${network}.`, }, ], }; } export const getNetworkToolName = "get-network"; export const getNetworkToolDescription = "Get the network set in the environment config";

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/multiversx/mx-mcp'

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