Skip to content

Commit 8663542

Browse files
fixes
1 parent 583888f commit 8663542

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/McpResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ Call ${handleDialog.name} to handle it before continuing.`);
899899
}
900900

901901
if (this.#heapSnapshotOptions?.include) {
902+
response.push('## Heap Snapshot Data');
902903
const stats = this.#heapSnapshotOptions.stats;
903904
const staticData = this.#heapSnapshotOptions.staticData;
904905
if (stats) {

src/tools/categories.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export enum ToolCategory {
1313
DEBUGGING = 'debugging',
1414
EXTENSIONS = 'extensions',
1515
IN_PAGE = 'in-page',
16+
MEMORY = 'memory',
1617
}
1718

1819
export const labels = {
@@ -24,4 +25,5 @@ export const labels = {
2425
[ToolCategory.DEBUGGING]: 'Debugging',
2526
[ToolCategory.EXTENSIONS]: 'Extensions',
2627
[ToolCategory.IN_PAGE]: 'In-page tools',
28+
[ToolCategory.MEMORY]: 'Memory',
2729
};

src/tools/memory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const exploreMemorySnapshot = defineTool({
4040
description:
4141
'Loads a memory heapsnapshot and returns snapshot summary stats. ',
4242
annotations: {
43-
category: ToolCategory.PERFORMANCE,
43+
category: ToolCategory.MEMORY,
4444
readOnlyHint: true,
4545
},
4646
schema: {

0 commit comments

Comments
 (0)