Skip to main content
Glama
arjshiv

Local Utilities MCP Server

by arjshiv

get_node_version

Retrieve the Node.js version details for the environment hosting the Local Utilities MCP Server. Use this tool to verify the runtime environment version directly through the MCP server interface.

Instructions

Returns the Node.js version information of the environment running the MCP server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_node_version' tool. It calls getNodeVersionInfo() and returns the version information as a JSON-formatted text response.
    async () => { // Error handling simplified, process.version/versions are generally safe const versionInfo = getNodeVersionInfo(); return { content: [{ type: "text", text: JSON.stringify(versionInfo, null, 2) // Keep JSON for structured data }] }; }
  • TypeScript interface defining the structure of Node.js version information used by the tool.
    interface INodeVersionInfo { nodeVersion: string; details: NodeJS.ProcessVersions; }
  • Registration of the 'get_node_version' tool on the MCP server using server.tool().
    server.tool( "get_node_version", "Returns the Node.js version information of the environment running the MCP server.", async () => { // Error handling simplified, process.version/versions are generally safe const versionInfo = getNodeVersionInfo(); return { content: [{ type: "text", text: JSON.stringify(versionInfo, null, 2) // Keep JSON for structured data }] }; } );
  • Helper function that retrieves the current Node.js version and process versions.
    export function getNodeVersionInfo(): INodeVersionInfo { // Export for testing return { nodeVersion: process.version, details: process.versions, }; }

Other Tools

Related Tools

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/arjshiv/localutils-mcp-server'

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