Repository navigation
Fixes #37271: move the MCP server to Java SDK 2.1.0 (backport 2.1 #37273) - #37585
Conversation
* 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
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved 🟡 Medium riskUpgrading 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Backport of #37273 to
2.1. Fixes #37271.2.1branched before Fixes 37271: move the MCP server to Java SDK 2.1.0 #37273 merged, so it still ships SDK 1.1.5.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. Collate2.1CI builds against the head of OpenMetadata2.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:
Tests:
git range-diff:2b93ea72729is the same patch as243b64d3883.mainexcept the2.1.0-rc2version line in the rootpom.xml.main: 37 passed, 34 skipped, 1 failed (Validate PR Metadata, which checks the linked issue's project fields, not code).Checklist:
Fixes #37271above.2.1-specific question was whether2.1differs frommainin the touched files, and it does not.docs/decisions/come with it.Summary by Gitar
tools/listper request, applied liveHttpServletStatelessServerTransportanswers non-JSON POST bodies with 415 after authenticationMcpUtilsstrips top-leveldescriptionandexampleskeys; a tool with an invalid schema is skippedvalidateToolInputs(false)keeps loose argument shapes accepted by toolsinitializereports name and version from MCP settingsThis will update automatically on new commits.