Skip to content

WebMCP: Implement tool name validation#59676

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7744064
May 6, 2026
Merged

WebMCP: Implement tool name validation#59676
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7744064

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 5, 2026

The spec PR webmachinelearning/webmcp#152 is
tightening tool name validation to match what the MCP specification
accepts 1, and we think it's reasonable for the web platform to throw
exceptions when tool names do not match this criteria, which is what
this CL does.

R=masonf

Bug: 489045948
Change-Id: I7d1af5d8cd18e5be7db5ddc9f9ce6d28e73cfd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7744064
Commit-Queue: Dominic Farolino <dom@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1625865}

The spec PR webmachinelearning/webmcp#152 is
tightening tool name validation to match what the MCP specification
accepts [1], and we think it's reasonable for the web platform to throw
exceptions when tool names do not match this criteria, which is what
this CL does.

[1]:
https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names

R=masonf

Bug: 489045948
Change-Id: I7d1af5d8cd18e5be7db5ddc9f9ce6d28e73cfd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7744064
Commit-Queue: Dominic Farolino <dom@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1625865}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 65569c0 into master May 6, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7744064 branch May 6, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants