Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- **`rmcp` 2.2.0** — Breaking change upstream: bump `rmcp` from 1.8.0 to 2.2.0 to align with the MCP 2025-11-25 spec. `rmcp::model::RawResource` and the `Annotated<RawResource>` wrapper were merged into a single flat `rmcp::model::Resource` struct; `McplsServer::list_resources` updated accordingly.

### Fixed

- **RUSTSEC-2026-0204** — bump transitive `crossbeam-epoch` dependency (pulled in via `ignore`) from 0.9.18 to 0.9.20 to resolve an invalid pointer dereference in `fmt::Pointer` impls for `Atomic`/`Shared`
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ignore = "0.4"
lsp-types = "0.97"
mcpls-core = { path = "crates/mcpls-core", version = "0.3.7" }
predicates = "3.1"
rmcp = "1.8.0"
rmcp = "2.2.0"
rstest = "0.26"
schemars = "1.2"
serde = "1.0"
Expand Down
13 changes: 7 additions & 6 deletions crates/mcpls-core/src/mcp/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use std::sync::Arc;

use rmcp::handler::server::wrapper::Parameters;
use rmcp::model::{
Implementation, ListResourcesResult, RawResource, ReadResourceRequestParams,
ReadResourceResult, ResourceContents, ServerCapabilities, ServerInfo, SubscribeRequestParams,
Implementation, ListResourcesResult, ReadResourceRequestParams, ReadResourceResult, Resource,
ResourceContents, ServerCapabilities, ServerInfo, SubscribeRequestParams,
UnsubscribeRequestParams,
};
use rmcp::{ErrorData as McpError, RoleServer, ServerHandler, tool, tool_handler, tool_router};
Expand Down Expand Up @@ -569,10 +569,11 @@ impl ServerHandler for McplsServer {
.and_then(|n| n.to_str())
.unwrap_or("unknown")
.to_string();
let raw = RawResource::new(uri, name)
.with_mime_type("application/json")
.with_description("LSP diagnostics for this file");
Some(rmcp::model::Annotated::new(raw, None))
Some(
Resource::new(uri, name)
.with_mime_type("application/json")
.with_description("LSP diagnostics for this file"),
)
})
.collect()
};
Expand Down
Loading