mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 23:04:25 +01:00
feat: implement MCP-Protocol-Version header requirement for HTTP transport (#898)
This commit is contained in:
@@ -24,6 +24,14 @@ for reference.
|
||||
|
||||
LATEST_PROTOCOL_VERSION = "2025-03-26"
|
||||
|
||||
"""
|
||||
The default negotiated version of the Model Context Protocol when no version is specified.
|
||||
We need this to satisfy the MCP specification, which requires the server to assume a
|
||||
specific version if none is provided by the client. See section "Protocol Version Header" at
|
||||
https://modelcontextprotocol.io/specification
|
||||
"""
|
||||
DEFAULT_NEGOTIATED_VERSION = "2025-03-26"
|
||||
|
||||
ProgressToken = str | int
|
||||
Cursor = str
|
||||
Role = Literal["user", "assistant"]
|
||||
|
||||
Reference in New Issue
Block a user