From 1f24e92c534e402fbbba929553cea64e96d5e0b2 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 27 Sep 2025 14:26:31 -0700 Subject: [PATCH] decode_state_hash --- .../proxy/_experimental/mcp_server/discoverable_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py b/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py index 9c4ab70f0de..5e5099426a0 100644 --- a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py @@ -1,5 +1,5 @@ import json -from typing import Optional +from typing import Optional, Tuple from urllib.parse import urlencode, urlparse, urlunparse from fastapi import APIRouter, Form, HTTPException, Request @@ -36,7 +36,7 @@ def encode_state_with_base_url(base_url: str, original_state: str) -> str: return encrypted_state -def decode_state_hash(encrypted_state: str) -> tuple[str, str]: +def decode_state_hash(encrypted_state: str) -> Tuple[str, str]: """ Decode an encrypted state to retrieve the base_url and original state.