3 Commits

Author SHA1 Message Date
Samiya Caur 4454ae0a8a feat: add get_css_style tool (#2612)
Add `get_css_styles` tool which exposes matched styles and the CSS
cascade to empower accurate CSS debugging workflows.

It integrates `CssFormatter` into `McpPage` and `McpResponse`, adding
container query resolution and rule pagination support.

Co-authored-by: Samiya Caur <samiyac@chromium.org>
2026-09-11 07:51:16 +00:00
yulunz 71d897b27e chore: add a new profiler scenario for get_console_messages. (#2491)
To see the heap size increase the scenario has to be run with
warmup-iterations=0. I have made the number of iterations different by
scenario, unless they are overriden through the command line.

Once we have the fixes all merged, I will add an assert somewhere and
see if this can be added into the test suite.
2026-08-07 10:24:40 +00:00
yulunz 884c8dee7c chore: refactor the profiler into scenarios. (#2488)
This is mostly a refactor except:
- the url param is removed. The source map server is always turned on.
We can always manually connect the mcp server to an external site and
check for memory usage / leaks. Testing should be deterministic and not
rely on outside resources.
- the reports are now stored by scenario. Console still prints out
report for each scenario, alongside a final report giving a one line
summary per scenario.

Still a bit rough, but useful.
2026-08-07 09:41:23 +00:00