Skip to content

Conversation

@elliette
Copy link
Contributor

@elliette elliette commented Dec 8, 2025

Fixes #327

Registers the samplingRequest service extension with a service name that is unique to each MCP client. E.g.

  • DartMcpServer_gemini_cli_1234abcd.samplingRequest
  • DartMcpServer_gemini_cli_5678efgh.samplingRequest
  • DartMcpServer_github_copilot_9123ijkl.samplingRequest

Note: This is slightly different than the proposal in #327 which suggested using a unique method name for each MCP client, when in fact per the DTD spec we require a unique service name. See https://github.com/dart-lang/sdk/blob/86463ec2ed9599e331f23a38a2418911be9f4da0/pkg/dtd/lib/src/dart_tooling_daemon.dart#L91-L94

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@elliette elliette merged commit 8488dea into dart-lang:main Dec 10, 2025
15 checks passed
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.

Sampling service extension should include client identifier in method name

2 participants