From 26aa3dacc68cbf79a1de8abd1f4c23b31e1f49e3 Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Fri, 8 May 2026 21:58:30 +0300 Subject: [PATCH] fix(bedesten): include itemTypeList in fetch metadata search The fetch tool's metadata lookup constructed BedestenSearchData without the required itemTypeList field, causing a Pydantic validation error and losing the chance to enrich the response with a proper title. --- mcp_server_main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mcp_server_main.py b/mcp_server_main.py index cd34de7..3c6a7a1 100644 --- a/mcp_server_main.py +++ b/mcp_server_main.py @@ -2633,6 +2633,7 @@ async def fetch( BedestenSearchRequest( data=BedestenSearchData( phrase=id, # Search by document ID + itemTypeList=["YARGITAYKARARI", "DANISTAYKARAR", "YERELHUKUK", "ISTINAFHUKUK", "KYB"], pageSize=1, pageNumber=1 )