context_server: Update types to reflect latest protocol version (2025-03-26
) (#32377)
This updates the `types.rs` file to reflect the latest version of the MCP spec. Next up is making use of some of these new capabilities. Would also be great to add support for [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) Release Notes: - N/A
This commit is contained in:
parent
16e901fb8f
commit
4ff41ba62e
3 changed files with 45 additions and 5 deletions
|
@ -20,9 +20,10 @@ impl ModelContextProtocol {
|
|||
}
|
||||
|
||||
fn supported_protocols() -> Vec<types::ProtocolVersion> {
|
||||
vec![types::ProtocolVersion(
|
||||
types::LATEST_PROTOCOL_VERSION.to_string(),
|
||||
)]
|
||||
vec![
|
||||
types::ProtocolVersion(types::LATEST_PROTOCOL_VERSION.to_string()),
|
||||
types::ProtocolVersion(types::VERSION_2024_11_05.to_string()),
|
||||
]
|
||||
}
|
||||
|
||||
pub async fn initialize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue