Skip to content

fix(mcp): migrate from rmcp's deprecated ServerInfo to ServerConfig - #1229

Merged
mosuka merged 1 commit into
mainfrom
fix/mcp-rmcp-server-config
Sep 27, 2026
Merged

mosuka merged 1 commit into
mainfrom
fix/mcp-rmcp-server-config

Conversation

@mosuka

@mosuka mosuka commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Summary

Unblocks Dependabot PR #1226, whose Clippy job fails after it moves rmcp from 3.2.0 to 3.4.1.

rmcp 3.4.0 added ServerConfig and deprecated the ServerInfo alias (modelcontextprotocol/rust-sdk#1266, #1156). LaurusMcpServer::get_info still used ServerInfo, so cargo clippy -- -D warnings rejects it. Test All on #1226 fails only because it aggregates the required jobs; all test jobs pass there.

Changes

File Change
laurus-mcp/src/server.rs ServerInfo → ServerConfig in get_info
Cargo.toml rmcp requirement 3.1.2 → 3.4.1 (ServerConfig does not exist before 3.4.0)
Cargo.lock rmcp / rmcp-macros 3.2.0 → 3.4.1; no other packages change

Both aliases name InitializeResult, so behavior does not change. The fix is a separate PR rather than a commit on the Dependabot branch, so Dependabot keeps managing #1226. After this merges, Dependabot rebases #1226 and rmcp drops out of the group.

Verification

Closes #1228
Refs #1226

rmcp 3.4.0 added `ServerConfig` and deprecated the `ServerInfo` alias,
whose name collided with the protocol's `serverInfo` field. Dependabot's
#1226 moves rmcp from 3.2.0 to 3.4.1, and `cargo clippy -- -D warnings`
then rejects `LaurusMcpServer::get_info`.

Both aliases name `InitializeResult`, so the rename does not change
behavior. `ServerConfig` does not exist before 3.4.0, so raise the
workspace requirement to 3.4.1 and update the lock file to match.

Closes #1228
@mosuka mosuka added bug Something isn't working dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Sep 27, 2026
@mosuka
mosuka merged commit 528785d into main Sep 27, 2026
25 checks passed
@mosuka
mosuka deleted the fix/mcp-rmcp-server-config branch September 27, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(mcp): migrate from rmcp's deprecated ServerInfo to ServerConfig

1 participant