Skip to content

feat: Add MCP tools for heap snapshot comparison - #2198

Merged
dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/compare-snapshots
Jun 30, 2026
Merged

dinfuehr merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/compare-snapshots

Conversation

@dinfuehr

@dinfuehr dinfuehr commented Jun 11, 2026 •

Copy link
Copy Markdown
Collaborator

This commit adds two MCP tools for comparing heap snapshots. compare_heapsnapshot_summary compares two memory snapshot and returns which classes have new/deleted objects. compare_heapsnapshot_class_nodes can then be used to list the object ids added and deleted for a specific class.

@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch 13 times, most recently from 9ba38a1 to 21e6969 Compare June 16, 2026 12:58
@dinfuehr dinfuehr changed the title feat: Add MCP tool for heap snapshot comparison feat: Add MCP tools for heap snapshot comparison Jun 16, 2026
@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch 3 times, most recently from 4965039 to da38526 Compare June 17, 2026 05:55
@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch from da38526 to d64820a Compare June 18, 2026 06:30
@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch from 69dedbb to 1fffe65 Compare June 25, 2026 16:12
@dinfuehr

Copy link
Copy Markdown
Collaborator Author

I've rebased the PR again. Should be ready for review again.

@Lightning00Blade Lightning00Blade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with 2 small comments.

Comment thread src/HeapSnapshotManager.ts Resolved
Comment thread src/HeapSnapshotManager.ts Resolved
@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch from 1fffe65 to f17199e Compare June 30, 2026 09:54
@dinfuehr

Copy link
Copy Markdown
Collaborator Author

Sorry, I missed that you already reviewed this PR. I've addressed your comments now. PTALA

@Lightning00Blade Lightning00Blade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dinfuehr
dinfuehr force-pushed the di/compare-snapshots branch from f17199e to 0eb6d7d Compare June 30, 2026 12:56
@dinfuehr
dinfuehr added this pull request to the merge queue Jun 30, 2026
@dinfuehr

Copy link
Copy Markdown
Collaborator Author

Thanks for the reviews!

Merged via the queue into ChromeDevTools:main with commit 5d7b656 Jun 30, 2026
27 of 29 checks passed
@dinfuehr
dinfuehr deleted the di/compare-snapshots branch June 30, 2026 13:33
pull Bot pushed a commit to CrazyForks/chrome-devtools-mcp that referenced this pull request Jul 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.5.0](ChromeDevTools/chrome-devtools-mcp@chrome-devtools-mcp-v1.4.0...chrome-devtools-mcp-v1.5.0)
(2026-07-03)


### 🎉 Features

* Add get_heapsnapshot_duplicate_strings MCP tool
([ChromeDevTools#2280](ChromeDevTools#2280))
([67a56c0](ChromeDevTools@67a56c0))
* Add MCP tools for heap snapshot comparison
([ChromeDevTools#2198](ChromeDevTools#2198))
([5d7b656](ChromeDevTools@5d7b656))


### 🛠️ Fixes

* **cli:** improve error messages to guide AI agents and developers
([ChromeDevTools#2161](ChromeDevTools#2161))
([cf00305](ChromeDevTools@cf00305))
* create PID directory with secure permissions (0o700)
([ChromeDevTools#2262](ChromeDevTools#2262))
([7fa95d3](ChromeDevTools@7fa95d3))
* respecte allow/block list in loadResouce
([ChromeDevTools#2254](ChromeDevTools#2254))
([6a94663](ChromeDevTools@6a94663))
* validate extension-enforced output paths
([ChromeDevTools#2269](ChromeDevTools#2269))
([a922814](ChromeDevTools@a922814))


### 📄 Documentation

* fix Antigravity config -y flag before npx positional args
([ChromeDevTools#2272](ChromeDevTools#2272))
([604b38f](ChromeDevTools@604b38f))
* fix formatting and indentation of tool descriptions
([ChromeDevTools#2275](ChromeDevTools#2275))
([8d8cf12](ChromeDevTools@8d8cf12))


### ⚡ Performance

* use concurrent reads for `loadIssueDescriptions`
([ChromeDevTools#2249](ChromeDevTools#2249))
([d144965](ChromeDevTools@d144965))


### 🏗️ Refactor

* Merge MCP tools for comparing heap snapshots
([ChromeDevTools#2281](ChromeDevTools#2281))
([3f4a49a](ChromeDevTools@3f4a49a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants