You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
speedtestResults ignores count: /api/speedtest/latest returns one result #160
count is described as "Number of recent speedtest results to return", but the tool calls /api/speedtest/latest?limit=N, an endpoint that returns only the single latest result.
Speedtest Tracker's legacy /api/speedtest/latest route takes no limit parameter. Listing results needs the token-protected /api/v1/results endpoint. (Confidence medium: based on the Speedtest Tracker API, not a live run.)
Impact
count: 10 returns one result, so trend questions are answered from a single sample.
Steps to reproduce
Call homelab_speedtestResults with { "count": 10 }: one result object is returned
Suggested fix
Use the paginated results endpoint with an API token setting (for example HOMELAB_SPEEDTEST_TOKEN), or remove count and describe the tool as returning the latest result.
Acceptance criteria
Either count results are returned or the parameter is removed and the description matches
How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
Conventions: see CLAUDE.md and CONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: M. audit-key: bug|mcp-server/src/tools/speedtestResults.ts|count
Activity