Skip to main content
Glama

IT Tools MCP Server

index.ts•1.57 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export function registerDeviceInfo(server: McpServer) { server.registerTool("show_device_info", { description: "Get basic device/system information", inputSchema: {}, // VS Code compliance annotations annotations: { title: "Show Device Info", description: "Get basic device/system information", readOnlyHint: true } }, async () => { try { const info = { platform: process.platform, arch: process.arch, nodeVersion: process.version, userAgent: 'IT Tools MCP Server', timestamp: new Date().toISOString(), timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, language: 'en-US' // Default for server environment }; return { content: [ { type: "text", text: `Device Information: Platform: ${info.platform} Architecture: ${info.arch} Node.js Version: ${info.nodeVersion} User Agent: ${info.userAgent} Current Time: ${info.timestamp} Timezone: ${info.timezone} Language: ${info.language} Note: This is basic server environment information. For detailed client device info, use a browser-based tool.`, }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error getting device info: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], }; } } ); }

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/wrenchpilot/it-tools-mcp'

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