Skip to content

Conversation

rekby
Copy link
Member

@rekby rekby commented Aug 11, 2025

The mcp package add auto output schema detection by typehints in 1.10 version
modelcontextprotocol/python-sdk#1005

For our code it break all output, because we have typehint, but not follow recommended struct.
The fix need for fix work in old style.

Better fix with describe scheme #12

…atibility with the MCP package ≥ 1.10), and prevent the MCP server from auto‑updating going forward.
@rekby rekby force-pushed the support-mcp-1.10 branch from 9b37023 to d45b95f Compare August 11, 2025 15:09
@rekby rekby requested review from Copilot and vgvoleg and removed request for vgvoleg August 11, 2025 15:12
Copilot

This comment was marked as outdated.

@rekby rekby requested review from Copilot and vgvoleg August 11, 2025 15:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a compatibility issue with the MCP (Model Context Protocol) package version 1.10, which introduced automatic output schema detection through type hints. The change disables structured output for all tools to maintain backward compatibility with the existing codebase that has type hints but doesn't follow the recommended structure.

  • Adds structured_output=False parameter to all tool registrations to prevent auto-detection
  • Includes a reference to issue #12 for implementing a proper structured output solution

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.
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment should explain why structured_output is disabled, not just reference an issue. Consider: '# Disable structured output due to MCP 1.10 auto-detection breaking existing tools - see issue #12'

Suggested change
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=False, # Disable structured output due to MCP 1.10 auto-detection breaking existing tools - see issue #12

Copilot uses AI. Check for mistakes.

@rekby rekby mentioned this pull request Aug 11, 2025
@vgvoleg vgvoleg merged commit 9be1dfc into main Aug 12, 2025
4 checks passed
@vgvoleg vgvoleg deleted the support-mcp-1.10 branch August 12, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants