Skip to content

Fixes #37271: move the MCP server to Java SDK 2.1.0 (backport 2.1 #37273) - #37585

Merged
Vishnuujain merged 1 commit into
2.1from
backport/2.1/mcp-sdk
Nov 11, 2026
Merged

Vishnuujain merged 1 commit into
2.1from
backport/2.1/mcp-sdk

Conversation

@Vishnuujain

@Vishnuujain Vishnuujain commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of #37273 to 2.1. Fixes #37271.

Merge order: the companion Collate backport https://github.com/open-metadata/openmetadata-collate/pull/8471 merges first, then this one right after, the same as on main. Collate 2.1 CI builds against the head of OpenMetadata 2.1, and this PR's code calls SDK 2.x-only methods that Collate's current 1.1.5 pin does not have.

Cherry-picked from 243b64d3883, applied cleanly with no conflicts.

Type of change:

  • Improvement

Tests:

  • git range-diff: 2b93ea72729 is the same patch as 243b64d3883.
  • After the pick, every file it touches is byte-identical to main except the 2.1.0-rc2 version line in the root pom.xml.
  • Fixes 37271: move the MCP server to Java SDK 2.1.0 #37273's CI on main: 37 passed, 34 skipped, 1 failed (Validate PR Metadata, which checks the linked issue's project fields, not code).
  • Not run locally on this branch: no build or tests.

Checklist:


Summary by Gitar

  • Tool filtering:
    • Read-only mode and disabled tools now filter tools/list per request, applied live
  • Transport:
    • HttpServletStatelessServerTransport answers non-JSON POST bodies with 415 after authentication
  • Tool schemas:
    • McpUtils strips top-level description and examples keys; a tool with an invalid schema is skipped
  • Validation:
    • validateToolInputs(false) keeps loose argument shapes accepted by tools
  • Server info:
    • initialize reports name and version from MCP settings

This will update automatically on new commits.

* chore(mcp): upgrade java sdk to 2.1.0

* skip bad tool schemas

* fix test comment

* Fixes 37248: MCP follow-ups after the Java SDK 2.x upgrade (#37274)

* feat(mcp): update tools/list live when read-only or disabled tools change

* drop deprecated sdk calls

* reject non-json posts

* keep tool argument coercion

* record content-type rule

* clearer init failure log

* use configured server info

* pin 401 before 415
@Vishnuujain
Vishnuujain requested a review from a team as a code owner November 11, 2026 14:54
@Vishnuujain
Vishnuujain requested review from anuj-kumary and removed request for a team November 11, 2026 14:54
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Upgrading the MCP server to SDK 2.1.0 changes tool discovery and request/schema handling, which could hide tools or reject previously accepted client requests.

Moves the MCP server from Java SDK 1.1.5 to 2.1.0 on the 2.1 branch, adding per-request read-only and disabled-tool filtering for tools/list, 415 handling for non-JSON POST bodies, schema cleanup in McpUtils, and server info drawn from MCP settings. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Vishnuujain
Vishnuujain merged commit 05ca8db into 2.1 Nov 11, 2026
48 of 59 checks passed
@Vishnuujain
Vishnuujain deleted the backport/2.1/mcp-sdk branch November 11, 2026 15:13
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