Drop MCP sampling before the SEP-2577 deprecation window closes #1935

Open
opened 2026-11-12 16:45:09 +00:00 by sam · 0 comments
Owner

MCP protocol 2026-07-28 deprecates sampling (SEP-2577); the Go SDK keeps it working for at least twelve months and marks ClientOptions.CreateMessageHandler and the CreateMessage* types deprecated. Archie answers sampling from the chat model (gateway) and the task model (agent worker), through sdkSampling in internal/tools/provider/mcp, the only code that touches the deprecated API.

Done when: the SDK or spec removes sampling, or Archie decides to stop advertising it first, the adapter and both sampling handlers (archiegateway/mcp_sampling.go, taskmcp/mcp_sampling.go, modelloop/sampling.go) are deleted, and an MCP server that asks for sampling gets the SDK's standard refusal.

MCP protocol 2026-07-28 deprecates sampling (SEP-2577); the Go SDK keeps it working for at least twelve months and marks `ClientOptions.CreateMessageHandler` and the `CreateMessage*` types deprecated. Archie answers sampling from the chat model (gateway) and the task model (agent worker), through `sdkSampling` in `internal/tools/provider/mcp`, the only code that touches the deprecated API. Done when: the SDK or spec removes sampling, or Archie decides to stop advertising it first, the adapter and both sampling handlers (`archiegateway/mcp_sampling.go`, `taskmcp/mcp_sampling.go`, `modelloop/sampling.go`) are deleted, and an MCP server that asks for sampling gets the SDK's standard refusal.
sam added the chorelow labels 2026-11-12 16:45:09 +00:00
sam added the deferred label 2026-11-15 17:26:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1935