Skip to main content
Glama
LassiterJ
by LassiterJ
system-info.ts1.09 kB
import * as os from "os"; import type { RegisterableModule } from "../registry/types.js"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; const systemInfoModule: RegisterableModule = { type: "resource", name: "system-info", description: "Get basic system information about the server", register(server: McpServer) { server.resource( "system-info", "system://info", { name: "System Information", description: "Get basic system information about the server", }, () => { return { contents: [ { uri: "system://info", mimeType: "application/json", text: JSON.stringify({ platform: os.platform(), architecture: os.arch(), nodeVersion: process.version, uptime: os.uptime(), totalMemory: os.totalmem(), freeMemory: os.freemem(), }, null, 2), }, ], }; } ); } }; export default systemInfoModule;

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/LassiterJ/mcp-playground'

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