From f9c07ffca18e059f38a0d623a5579f6befc668e5 Mon Sep 17 00:00:00 2001 From: Novice Date: Thu, 26 Jun 2025 15:40:07 +0800 Subject: [PATCH] chore: update the mcp support version --- api/core/mcp/entities.py | 2 +- api/core/mcp/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/mcp/entities.py b/api/core/mcp/entities.py index 9afac96b12..7553c10a2e 100644 --- a/api/core/mcp/entities.py +++ b/api/core/mcp/entities.py @@ -4,7 +4,7 @@ from typing import Any, Generic, TypeVar from core.mcp.session.base_session import BaseSession from core.mcp.types import LATEST_PROTOCOL_VERSION, RequestId, RequestParams -SUPPORTED_PROTOCOL_VERSIONS: tuple[int, str] = (1, LATEST_PROTOCOL_VERSION) +SUPPORTED_PROTOCOL_VERSIONS: list[str] = ["2024-11-05", LATEST_PROTOCOL_VERSION] SessionT = TypeVar("SessionT", bound=BaseSession[Any, Any, Any, Any, Any]) diff --git a/api/core/mcp/types.py b/api/core/mcp/types.py index bf12ae2a95..75c063f7dd 100644 --- a/api/core/mcp/types.py +++ b/api/core/mcp/types.py @@ -31,7 +31,7 @@ for reference. not separate types in the schema. """ -LATEST_PROTOCOL_VERSION = "2024-11-05" +LATEST_PROTOCOL_VERSION = "2025-03-26" ProgressToken = str | int Cursor = str