Skip to content

Commit 07e6b72

Browse files
authored
fix: mcp structured output validation breaks with decorator (#142)
1 parent 49db3c8 commit 07e6b72

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ requires-python = ">=3.11"
3737

3838
dependencies = [
3939
"fastapi",
40-
"mcp",
40+
"mcp>=1.10.1",
4141
"httpx",
4242
"pydantic>=2.0.0",
4343
"pyyaml",

src/deepset_mcp/tool_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,4 +470,4 @@ def register_tools(
470470
# Create enhanced tool
471471
enhanced_tool = create_enhanced_tool(base_func, config, workspace_mode, workspace)
472472

473-
mcp.add_tool(enhanced_tool, name=tool_name)
473+
mcp.add_tool(enhanced_tool, name=tool_name, structured_output=False)

uv.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)