Skip to content

Commit 9be1dfc

Browse files
rekbyvgvoleg
andauthored
Fix error outputSchema defined but no structured output returned (#11)
* Add support for disabling automatic output‑schema detection (for compatibility with the MCP package ≥ 1.10), and prevent the MCP server from auto‑updating going forward. * Update ydb_mcp/server.py * fix style * Update requirements.txt --------- Co-authored-by: Oleg Ovcharuk <[email protected]>
1 parent cecbbe1 commit 9be1dfc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
ydb>=3.21.0
2-
mcp>=1.6.0
2+
mcp==1.12.4

ydb_mcp/server.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,15 @@ def register_tools(self):
536536

537537
# Register all tools with FastMCP framework
538538
for spec in tool_specs:
539-
self.add_tool(spec["handler"], name=spec["name"], description=spec["description"])
539+
self.add_tool(
540+
spec["handler"],
541+
name=spec["name"],
542+
description=spec["description"],
543+
544+
# Structured output is temporarily disabled until proper schema definitions are implemented.
545+
# See https://github.com/ydb-platform/ydb-mcp/issues/12 for details.
546+
structured_output=False,
547+
)
540548

541549
# Also register with our tool manager
542550
self.tool_manager.register_tool(

0 commit comments

Comments
 (0)