Repository navigation
Conversation
5 of 13 tasks
9 of 13 tasks
laozhej
force-pushed
the
fix/160-speedtest-result-count
branch
from
November 26, 2026 04:13
c496c30 to
79a9a40
Compare
Owner
Signed-off-by: Asahi Arataki <[email protected]>
Signed-off-by: Asahi Arataki <[email protected]>
laozhej
force-pushed
the
fix/160-speedtest-result-count
branch
from
November 27, 2026 06:03
79a9a40 to
8f98922
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
homelab_speedtestResults({ count: 10 })now requests up to ten results, newest first, from/api/v1/resultsinstead of calling the single-result legacy endpoint with an ignored limit. The tool preserves the paginated JSON response, including itsdataarray.Configure
HOMELAB_SPEEDTEST_TOKENwith a Speedtest Tracker API token that hasresults:readpermission. Token and port settings support per-node overrides. Missing credentials and HTTP errors explain the required configuration; tokens are shell-quoted and redacted from error and dry-run output. Configuration examples and CHANGELOG are updated.Why
Fixes #160. The request uses
page[size]andsort=-created_at, matching the upstream controller and its JSON API paginator. Brackets are URL-encoded so curl does not treat them as glob syntax. The v1 API also requiresAccept: application/jsonand bearer authentication.Type
Testing
cd mcp-server && npm run build && npm testpasses: 626 passed, 10 live-Pi tests skippedcd mcp-server && npm run typecheckpassespytest tests/ -v --tb=shortpasses: 273 passedFocused handler tests pass. Nine fail against the original implementation. Coverage includes default/custom/maximum counts, newest-first requests, empty results, node-specific settings, missing credentials, HTTP/connection/timeout errors, shell quoting, and redaction in both dry-run and command-failure output. Request/response tests use mocked SSH; a local shell with stubbed curl verifies token quoting. Tested on macOS with Node 22.23.0.
Checklist
Prepared with OpenAI Codex assistance. The commit includes the required DCO sign-off.