ext-apps/examples/system-monitor-server/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner 9acebd7f9f
Separate static and dynamic data in system-monitor-server tools
The two-tool architecture previously had both tools returning identical
`SystemStats` data. This refactors them to properly separate concerns:

- `get-system-info` (Model-visible): Returns static system configuration
  (hostname, platform, CPU model/count, total memory) sent once via
  `ontoolresult`

- `poll-system-stats` (App-only): Returns dynamic metrics (per-core CPU
  timing, memory usage, uptime) polled every 2 seconds

Moves `formatBytes()` and `formatUptime()` utilities to the client since
the server now returns raw values for client-side formatting.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 11:04:35 -06:00
..
global.css Add system-monitor-server example 2025-12-04 14:32:41 -06:00
mcp-app.css Fix widget layout to use full available width 2025-12-08 14:01:28 +00:00
mcp-app.ts Separate static and dynamic data in system-monitor-server tools 2026-01-28 11:04:35 -06:00