-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
This is a tracking issue for implementation of SEP-1577.
Summary
This extension adds tools and toolChoice parameters to sampling/createMessage, enabling MCP servers to run their own agentic loops using the client's tokens under user supervision. The Python SDK needs to implement:
- New
toolsandtoolChoiceparameters inCreateMessageRequest - New content types:
ToolUseContentandToolResultContentinSamplingMessage - Updated
CreateMessageResultwith array content support and explicitstopReasonvalues - New client capability:
sampling.tools - Soft-deprecation of
includeContext(now fenced bysampling.contextcapability)
This reduces complexity for client implementations while unlocking agentic tool-calling patterns in sampling requests.
Related Issues & PRs
- Implementation PRs: Implement SEP-1577 - Sampling With Tools #1594
- Related PRs: SEP-1577 - Sampling With Tools modelcontextprotocol#1796
- Related Issues: n/a
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In progress