Oriel — AI & technology worth noticing, every day.

A WebMCP Tool Is Registered but Failing: Debug the Contract in Chrome

Post · https://dev.to/gde/a-webmcp-tool-is-registered-but-failing-debug-the-contract-in-chrome-187k

The agent finds the right tool. Chrome shows a registration. The application still returns...

First seen by Oriel on .

AI summary

This debugging guide shows how an advertised id parameter mismatching a callback’s expected eventId causes INVALID_ARGUMENTS, using Chrome WebMCP tooling and TypeScript tests to isolate the contract failure.

  • The fixture’s tests confirm that id fails, eventId succeeds, and unknown resources or extra properties are rejected independently of any agent’s behavior.
  • Debugging should verify registration first, then compare submitted arguments with runtime validation, inspect callback results, and separately confirm any user-visible state changes.
  • The example pins chrome-devtools-mcp@1.13.0 and enables both the server’s experimental WebMCP category and Chrome’s WebMCP browser feature.
  • Tools marked debugging: true require --categoryExperimentalThirdParty; visibility differences may therefore reflect category configuration rather than faulty registration.
  • The correction changes the advertised property and required list to eventId without weakening validation; native DevTools execution has not yet been performed for the companion.

#webmcp #chrome devtools #typescript #mcp

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 26, latest observation ; +4 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 22, latest observation ; +7 over observed period since

Aliases

SourceExternal IDURL
DEV Community5096618https://dev.to/gde/a-webmcp-tool-is-registered-but-failing-debug-the-contract-in-chrome-187k Read discussion