From d45b95f1606b8a4083f9c14d47230c5dfa4fb293 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Mon, 11 Aug 2025 17:53:20 +0300 Subject: [PATCH 1/4] =?UTF-8?q?Add=20support=20for=20disabling=20automatic?= =?UTF-8?q?=20output=E2=80=91schema=20detection=20(for=20compatibility=20w?= =?UTF-8?q?ith=20the=20MCP=20package=20=E2=89=A5=E2=80=AF1.10),=20and=20pr?= =?UTF-8?q?event=20the=20MCP=20server=20from=20auto=E2=80=91updating=20goi?= =?UTF-8?q?ng=20forward.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 2 +- ydb_mcp/server.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8a4c5b9..03db174 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ ydb>=3.21.0 -mcp>=1.6.0 \ No newline at end of file +mcp=1.12.4 diff --git a/ydb_mcp/server.py b/ydb_mcp/server.py index 8426b1a..7ec8ab1 100644 --- a/ydb_mcp/server.py +++ b/ydb_mcp/server.py @@ -536,7 +536,12 @@ def register_tools(self): # Register all tools with FastMCP framework for spec in tool_specs: - self.add_tool(spec["handler"], name=spec["name"], description=spec["description"]) + self.add_tool( + spec["handler"], + name=spec["name"], + description=spec["description"], + structured_output=False, # https://github.com/ydb-platform/ydb-mcp/issues/12 + ) # Also register with our tool manager self.tool_manager.register_tool( From 82001d45a507c294b438e1196fd6a8af90d0f30d Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Mon, 11 Aug 2025 18:15:26 +0300 Subject: [PATCH 2/4] Update ydb_mcp/server.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ydb_mcp/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb_mcp/server.py b/ydb_mcp/server.py index 7ec8ab1..cb9a720 100644 --- a/ydb_mcp/server.py +++ b/ydb_mcp/server.py @@ -540,7 +540,7 @@ def register_tools(self): spec["handler"], name=spec["name"], description=spec["description"], - structured_output=False, # https://github.com/ydb-platform/ydb-mcp/issues/12 + structured_output=False, # Structured output is temporarily disabled until proper schema definitions are implemented. See https://github.com/ydb-platform/ydb-mcp/issues/12 for details. ) # Also register with our tool manager From e4479bc7b38747017a47e2a7c34ac2c4a2afccc7 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Tue, 12 Aug 2025 11:47:55 +0300 Subject: [PATCH 3/4] fix style --- ydb_mcp/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ydb_mcp/server.py b/ydb_mcp/server.py index cb9a720..97137a4 100644 --- a/ydb_mcp/server.py +++ b/ydb_mcp/server.py @@ -540,7 +540,10 @@ def register_tools(self): spec["handler"], name=spec["name"], description=spec["description"], - structured_output=False, # Structured output is temporarily disabled until proper schema definitions are implemented. See https://github.com/ydb-platform/ydb-mcp/issues/12 for details. + + # Structured output is temporarily disabled until proper schema definitions are implemented. + # See https://github.com/ydb-platform/ydb-mcp/issues/12 for details. + structured_output=False, ) # Also register with our tool manager From ae38f1ae506c1661918a610056590919758c980a Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Tue, 12 Aug 2025 12:46:57 +0300 Subject: [PATCH 4/4] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 03db174..f782d22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ ydb>=3.21.0 -mcp=1.12.4 +mcp==1.12.4