Back to course

Daily Repetition 10: The 'System Stats' Tool

Model Context Protocol (MCP) Server Engineering

Daily Repetition: Tool #10

Let the AI know your hardware status. Use the os module in Node.js.

Implementation

Return free memory, CPU usage, and uptime.

Assignment: Ask the AI "Is my computer running out of RAM?"