get_system_info
Retrieve essential system details via the MCP server to monitor and manage hardware or software configuration efficiently.
Instructions
Get basic system information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:67-74 (registration)Registration of the 'get_system_info' tool in the ListTools handler, including description and input schema (empty object).{ name: 'get_system_info', description: 'Get basic system information', inputSchema: { type: 'object', properties: {}, }, },
- server.js:125-143 (handler)Handler for 'get_system_info' tool: dynamically imports 'os' module, gathers system info (platform, arch, node version, uptime, memory), and returns formatted text response.case 'get_system_info': const os = await import('os'); const systemInfo = { platform: os.platform(), arch: os.arch(), nodeVersion: process.version, uptime: os.uptime(), totalMemory: os.totalmem(), freeMemory: os.freemem(), }; return { content: [ { type: 'text', text: `System Information:\n${JSON.stringify(systemInfo, null, 2)}`, }, ], };