Agent-Hellboy / Agent-Hellboy/posix-system-mcp
Enhancement
- 主要語言
- Go
- 星號
- 2
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
- Make tests cross‑platform: TestGetProcessInfo assumes PID 1 exists (Linux‑specific) and can fail on macOS; pick a PID from
process.ProcessesWithContext instead or skip when not found in main_test.go.
- Add input validation errors for tool args: clamp limit but also return a clear error if sort_by is unknown or interval_ms is out of range
instead of silently clamping in main.go.
- Expose JSON schemas for tool args: MCP supports richer schemas; adding validation and docs improves client UX (esp. Cursor/Claude) in
main.go.
- Improve process sampling: limit*2 can still bias results for CPU/memory; consider iterating all processes when sort_by is cpu/memory and
limit is small, or make sampling strategy configurable in get_process_info.
- Add OS‑specific behavior notes or skips in tests: temperature sensors or load averages aren’t always available; handle missing metrics
explicitly in main.go and in tests to reduce flaky failures.
- Separate tool registration from data gathering: move the get* functions to a package (e.g., internal/metrics) to simplify testing and
keep main.go focused on MCP wiring.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。