We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5ca5a commit 1529fd4Copy full SHA for 1529fd4
src/McpResponse.ts
@@ -319,7 +319,15 @@ Call ${handleDialog.name} to handle it before continuing.`);
319
}
320
321
if (this.#consoleDataOptions?.include) {
322
- const messages = this.#consoleMessagesData ?? [];
+ let messages = this.#consoleMessagesData ?? [];
323
+
324
+ // Apply type filtering if specified
325
+ if (this.#consoleDataOptions.types?.length) {
326
+ const normalizedTypes = new Set(
327
+ this.#consoleDataOptions.types,
328
+ );
329
+ messages = messages.filter(message => normalizedTypes.has(message.type));
330
+ }
331
332
response.push('## Console messages');
333
if (messages.length) {
0 commit comments