From f2517fe14b23a881ff4fb4ef692c20e11716ee9e Mon Sep 17 00:00:00 2001 From: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> Date: Mon, 24 Nov 2025 16:59:48 +0000 Subject: [PATCH] fix: url for spec (#1659) --- src/mcp/shared/tool_name_validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp/shared/tool_name_validation.py b/src/mcp/shared/tool_name_validation.py index 188d5fb1..f35efa5a 100644 --- a/src/mcp/shared/tool_name_validation.py +++ b/src/mcp/shared/tool_name_validation.py @@ -6,7 +6,7 @@ Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits (0-9), underscore (_), dash (-), and dot (.). Tool names SHOULD NOT contain spaces, commas, or other special characters. -See: https://modelcontextprotocol.io/specification/draft/server/tools#tool-names +See: https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names """ from __future__ import annotations @@ -21,7 +21,7 @@ logger = logging.getLogger(__name__) TOOL_NAME_REGEX = re.compile(r"^[A-Za-z0-9._-]{1,128}$") # SEP reference URL for warning messages -SEP_986_URL = "https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986" +SEP_986_URL = "https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names" @dataclass