xSpeed Cache is officially live! Get 50% OFF during Launch Week — Lifetime starts at just $79Lifetime from $79 — 50% OFF, Launch Week! See Plans →

See Plans →
Features
xSpeed Hub Pricing Docs Blog Scan
Appearance
Get Plugin

Scan a website for speed problems with Kiro

Scanning a site's speed with Kiro means asking it to run an xSpeed Scan, then using the graded report and its ranked failing checks as the basis for tasks in your project.

list_sitesget_speed_scanrun_speed_scan

Last updated: October 2026

Example session · Kiro

You: Use xSpeed Hub to scan shop and turn the top fixes into tasks.

run_speed_scan(site: shop, strategy: both) uses quota
→ Desktop grade C, mobile grade D. Top fixes: page cache, hero image size, render-blocking stylesheet. Report link included.

Kiro: Three tasks added: enable the page cache, compress and resize hero images, and defer the render-blocking stylesheet. Each links to the report. Run the scan again when they are done.

You: Done with all three. Check it.

run_speed_scan(site: shop, fresh: true) uses quota
→ Desktop grade B, mobile grade C. Cache and image checks pass; render-blocking stylesheet still fails. Report link included.

Kiro: Both grades went up one step. The image task is done, and one check on the stylesheet still fails, so I left that task open.

01

How Kiro handles this

Kiro works from specs and tasks, which gives a scan a natural second step. You ask it to scan the site. It calls run_speed_scan through xSpeed Hub, takes the grade out of 100 with the desktop run as headline and the mobile run beside it, and lists the failing checks ranked by points recovered. Then you ask it to turn the top items into tasks in the spec, each linked to the check and its evidence, so the work has a measurable finish line.

After the tasks are done, the same scan is the test. Ask for a fresh run and compare it with the earlier report that get_speed_scan reads from the site's history. If the grade on the same device moved, the task did its job. If it did not, the report names which check still fails.

For a site outside your Hub, the no-account Scan MCP grades any public URL. It is read-only and limited to four scans per caller per ten minutes, which is plenty for a before and after pair. Its report link is the thing to put in the spec, since anyone on the team can open it. Keep the grade you started from in the spec as well, so the finish line is written down before the first task begins and nobody has to remember it later.

02

Set up Kiro once

Already connected? Skip to the prompts. Alternatives and troubleshooting are on the Kiro guide.

1Put your sites in xSpeed Hub

Sign in at app.xspeedcache.com with Google or email; the Hub is free and has no site cap. Then connect each WordPress site from its own dashboard: click Connect Hub in the xSpeed Cache top bar, then Connect via xSpeed Hub. Each site needs the free xSpeed Cache plugin.

2Add xSpeed Hub to mcp.json

Open the command palette and run Kiro: Open user MCP config (JSON), then add this entry. The user file applies in every workspace. A project can carry its own .kiro/settings/mcp.json instead, but Kiro does not load a workspace's MCP config until you trust that workspace. Kiro reconnects servers when you save the file.

~/.kiro/settings/mcp.json
{
  "mcpServers": {
    "xspeedhub": {
      "url": "https://app.xspeedcache.com/xspeed/mcp"
    }
  }
}

3Approve access in the browser

After you save, Kiro opens the xSpeed Hub authorization page. It registers itself through dynamic client registration, so there is no client ID to create. Sign in to the Hub, approve, and check the MCP servers tab in the Kiro panel for a connected xspeedhub. There is no token to paste; Kiro keeps the credentials it receives.

4Add the xSpeed Scan MCP for sites you do not run

Prompts that scan a public URL use the xSpeed Scan MCP, a separate server from the Hub. Add it to Kiro the same way as the Hub above, as a second server (xspeedscan, for example) with the URL https://xspeedcache.com/scan/mcp, and leave out any sign-in setting, such as an OAuth or auth option or an Authorization header, because the Scan MCP needs no account, token or sign-in. On a plan that allows one custom connector, add whichever server the prompts you use need.

Text
https://xspeedcache.com/scan/mcp
1 / 4

Full Kiro setup, sign-in options and FAQ

Before you send a prompt that changes something

Reads change nothing on your sites, though contact_support emails xSpeed support. Writes run once your connection allows them, so your client's approval prompt and a read-only connection (the token's Read-only everywhere switch, or a Viewer sign-in) are the gates that matter. Kiro prompts before it runs an MCP tool unless a rule allows it. Rules live in two places: autoApprove in the server's mcp.json entry, which lists tool names, and mcp rules in permissions.yaml, such as a match of xspeedhub/get_* with effect allow. Allow the reads and keep purge_cache, update_settings, toggle_cache and the other write tools off both lists, because the Hub itself runs a write as soon as your connection allows it. Putting "*" in autoApprove skips the prompt for every Hub tool, writes included. In a workspace you have not trusted, Kiro asks before every MCP call even when autoApprove lists the tool.

03

What do I ask?

Three prompts written for Kiro. More for this job are below.

Prompt for Kiro
Use xSpeed Hub to scan the site, then add the top three failing checks to the spec as tasks with the report link in each.
Prompt for Kiro
The tasks are done. With xSpeed Hub, run a fresh scan and tell me which checks still fail.
Prompt for Kiro
Ask xSpeed Hub for the scan history of shop and add a note to the spec with the grade trend.
04

What happens, step by step

An xSpeed Scan grades a site from 0 to 100 using server probes (time to first byte, compression, cache evidence, redirects, platform detection) plus a Lighthouse run, and names the fix for every failing check. An agent can start one two ways. Through xSpeed Hub, run_speed_scan scans a site you have connected. Through the no-account Scan MCP at https://xspeedcache.com/scan/mcp, it scans any public URL and cannot change anything. Either way you get a report link to share.

01

Check what the site already scored

get_speed_scan without a scan id returns the site's scan history, newest first, plus a summary of the latest report. It starts nothing and spends nothing, so the Hub tells the agent to read it first when you ask what a site scored.

02

Start a scan

run_speed_scan runs the full scan on a site you connected to the Hub. strategy is both (the default), desktop or mobile; one device alone costs half the engine's quota. The scan takes 20 to 60 seconds. The Hub waits about 50 seconds and, if the scan is still running, hands back a scan id.

03

Poll if it is still running

Call get_speed_scan with scan_id. While the scan runs it returns the running status and a note to ask again in about 20 seconds. The report page is live from the start and refreshes itself.

04

Read the result

The summary carries the grade, the four dimension scores, what was measured and the top fixes ranked by points recoverable, each with the xSpeed feature that fixes it. The headline grade is the desktop run. The mobile run is graded alongside it, so the agent should mention both when they differ.

05

Scan a site you do not run

For any other public URL, the agent uses the Scan MCP at https://xspeedcache.com/scan/mcp. There is no account and no sign-in. It takes a url, returns the same graded report and a link at xspeedcache.com/scan/r/<id>, and is limited to 4 scans per caller per 10 minutes.

06

Fix, wait, re-scan

After a change, wait several minutes and scan again with fresh: true. Without it, the scan service reuses any report from the last 10 minutes and the agent will show you the old number.

05

Reference

Hub routerun_speed_scan, then get_speed_scan with scan_id; only for sites connected to your Hub
Scan MCP routehttps://xspeedcache.com/scan/mcp, no account, 5 tools, read-only, any public URL
Scan MCP limit4 scans per caller per 10 minutes
Why run_speed_scan is a writeIt spends a shared scan allowance and stores a report; it changes nothing on the site
Read-only Hub connectionrun_speed_scan is refused; get_speed_scan still works. Applies to the connection token with Read-only everywhere on and to a Viewer sign-in; an OAuth sign-in gets the scopes the client asks for
Duration20 to 60 seconds; the Hub waits about 50 seconds, then returns a scan id
Poll argumentscan_id on the Hub tool, scanId on the Scan MCP tool
strategyboth (default), desktop or mobile; one device costs half the quota and becomes the headline
freshtrue forces a new measurement; otherwise a report from the last 10 minutes is reused
Report linkxspeedcache.com/scan/r/<id>; add .md for a Markdown twin an agent can read
Report visibilityHub scans are filed unlisted; Scan MCP scans are public in the scan directory by default
06

Rules worth keeping

  • Read before you spend. Ask for the scan history first; start a new scan only when you want a fresh measurement or something changed.
  • A report link is not private. An unlisted report is kept out of the scan directory and search, but anyone with the URL can open it. A scan started through the Scan MCP is public by default.
  • run_speed_scan changes nothing on your site, but the Hub classes it a write, so a read-only connection (the connection token with Read-only everywhere on, or a Viewer sign-in) refuses it and your client may prompt for it. Use get_speed_scan, or the Scan MCP for a public URL, when you want a strictly read-only route.
  • Compare like with like. A scan that lost its Lighthouse run is marked partial and is not comparable with a full one, and the lab grade is not the same as real-visitor Core Web Vitals, which the report shows separately.
  • A scan cannot reach private, local or password-protected sites, and a site behind a bot challenge returns a report that says its server checks were not measured.

Good to know with Kiro

Kiro prompts before running an MCP tool unless a rule allows it. Rules live in autoApprove on the server entry, which lists tool names, and in mcp rules in permissions.yaml. That suits this job: allow get_speed_scan, because it reads history and spends nothing, and keep run_speed_scan off both lists. The Hub classes run_speed_scan as a write tool, since every scan spends the shared speed-test allowance. Putting it on a list, or putting * in autoApprove, means a spec that says to scan after every task will do exactly that, unprompted. You can also hide run_speed_scan with disabledTools. In a workspace you have not trusted, Kiro asks before every MCP call even when autoApprove lists the tool.

07

More prompts for this job

Prompts about your own sites work in any client connected to xSpeed Hub. A prompt that scans a site you do not run, or names the scan server, needs the xSpeed Scan MCP from the setup above.

Prompt
Using xSpeed Hub, what did the shop site score on its last speed scan? Do not start a new one.
Prompt
Use xSpeed Hub to run a speed scan on blog and give me the three fixes that recover the most points, plus the report link.
Prompt
With xSpeed Hub, scan only the mobile view of shop and tell me the grade.
Prompt
I changed the theme this morning. Use xSpeed Hub to run a fresh scan on docs and compare it with the previous report.
Prompt
Use the xSpeed Scan MCP to grade [competitor URL] and tell me what its biggest weaknesses are.
Prompt
The speed scan on shop is still running. Ask xSpeed Hub to check it again and tell me when it finishes.
08

Frequently asked questions

get_speed_scan is the safe one: it reads a report or the scan history and starts nothing. Keep run_speed_scan off the auto-approve list, because it starts a real measurement and spends the shared speed-test allowance on the Hub.

Yes, in the sense of a before and after measurement. Scan before the tasks, scan fresh after, and compare the grade on the same device. A grade is lab data, so check the real-visitor numbers in the report before you claim a Core Web Vitals pass.

run_speed_scan runs the full xSpeed Scan: server probes plus Lighthouse, a 0 to 100 grade across four dimensions, the fix for every failing check and a shareable report link. run_speed_test returns a raw PageSpeed Insights score with Core Web Vitals and no graded report.

Yes, through the xSpeed Scan MCP at https://xspeedcache.com/scan/mcp. It needs no account and no sign-in, accepts any public URL and is read-only. The Hub route only scans sites you connected to your own workspace.

The Scan MCP allows 4 scans per caller per 10 minutes. Scanning the same URL again within 10 minutes returns the existing report unless the agent passes fresh: true. A Hub scan spends a shared allowance of the scan service, which is why the Hub treats it as a write tool.

Reports started from the Hub are filed as unlisted, which keeps them out of the public scan directory and search results, but the link itself still opens for anyone who has it. Reports started through the Scan MCP are public by default.

The headline grade is the desktop run, because it is the one you can reproduce in your own browser. The mobile run is graded on the same rubric and returned alongside it. Google ranks on mobile, so when the two differ the agent should tell you both.

09

Keep going

Scan a site's speed with other agents

More with Kiro

Documentation

From the blog

Scan a site's speed, from Kiro.

xSpeed Hub is free and has no site cap. Connect your sites once and ask from the agent you already use.