@mcp-b/chrome-devtools-mcp 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,7 +168,7 @@ export class WebMCPToolHub {
168
168
  this.#logger(`⚠️ Warning: ${warning}`);
169
169
  }
170
170
  this.#logger(`Tracking WebMCP tool: ${toolId}`);
171
- // Track tool metadata including schema
171
+ // Track tool metadata including schemas and annotations
172
172
  this.#trackedTools.set(toolId, {
173
173
  page,
174
174
  originalName: tool.name,
@@ -176,6 +176,8 @@ export class WebMCPToolHub {
176
176
  toolId,
177
177
  description: tool.description || '',
178
178
  inputSchema: tool.inputSchema,
179
+ outputSchema: tool.outputSchema,
180
+ annotations: tool.annotations,
179
181
  });
180
182
  // Track tool for this page
181
183
  const pageToolSet = this.#pageTools.get(page) || new Set();
@@ -218,6 +220,8 @@ export class WebMCPToolHub {
218
220
  pageIdx,
219
221
  description: rt.description,
220
222
  inputSchema: rt.inputSchema,
223
+ outputSchema: rt.outputSchema,
224
+ annotations: rt.annotations,
221
225
  });
222
226
  }
223
227
  }
@@ -195,14 +195,24 @@ export const listWebMCPTools = defineTool({
195
195
  response.appendResponseLine(JSON.stringify({ tools: toolSummaries, count: tools.length }, null, 2));
196
196
  }
197
197
  else {
198
- // Full output with schemas
199
- const toolDefinitions = tools.map(tool => ({
200
- name: tool.originalName,
201
- description: tool.description,
202
- inputSchema: tool.inputSchema,
203
- pageIdx: tool.pageIdx,
204
- domain: tool.domain,
205
- }));
198
+ // Full output with schemas and annotations
199
+ const toolDefinitions = tools.map(tool => {
200
+ const def = {
201
+ name: tool.originalName,
202
+ description: tool.description,
203
+ inputSchema: tool.inputSchema,
204
+ pageIdx: tool.pageIdx,
205
+ domain: tool.domain,
206
+ };
207
+ // Only include optional fields if present
208
+ if (tool.outputSchema) {
209
+ def.outputSchema = tool.outputSchema;
210
+ }
211
+ if (tool.annotations) {
212
+ def.annotations = tool.annotations;
213
+ }
214
+ return def;
215
+ });
206
216
  response.appendResponseLine(JSON.stringify({ tools: toolDefinitions, count: tools.length }, null, 2));
207
217
  }
208
218
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/chrome-devtools-mcp",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "MCP server for Chrome DevTools with WebMCP integration for connecting to website MCP tools",
5
5
  "keywords": [
6
6
  "mcp",