Skip to content

Upgrade rmcp from v0.16.0 to v1.7.0 #85

@harsh04044

Description

@harsh04044

We're on rmcp 0.16.0 (picked from their README setup guide). Upstream is now at 1.7.0 on both crates.io and main. We need this upgrade to unblock switching to the progress-aware timeout fork for CEP-22.

What breaks

rmcp v1.7.0 added #[non_exhaustive] to several structs, so struct literal construction no longer compiles from outside the crate. All 21 compile errors are in tests and examples only - library code builds clean on v1.7.0.

Affected structs → new API:

  • ServerInfo / InitializeResultServerInfo::new(caps).with_server_info(...).with_instructions(...)
  • ImplementationImplementation::new(name, version).with_title(...).with_description(...)
  • CallToolRequestParamsCallToolRequestParams::new(name).with_arguments(...)
  • ReadResourceResultReadResourceResult::new(contents)
  • ReadResourceRequestParamsReadResourceRequestParams::new(uri)
  • ServerJsonRpcMessage::error()id param changed from RequestId to Option<RequestId>

Affected files

  • Cargo.toml - bump "0.16.0""1.7.0"
  • src/rmcp_transport/pipeline_tests.rs - 3 changes
  • tests/integration.rs - 4 changes
  • tests/e2e_happy_path.rs - 4 changes
  • examples/native_echo_server.rs - 1 change
  • examples/native_echo_client.rs - 1 change
  • examples/rmcp_integration_test.rs - 3 changes

Notes

  • All changes are mechanical - struct literals to builder APIs, no logic changes
  • ErrorData and ListResourcesResult are still exhaustive, no change needed
  • ProtocolVersion::LATEST silently moves from 2024-11-05 to 2025-11-25 (correct behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions