Skip to content

Commit 2273811

Browse files
committed
♻️ Update RMCP dependency to use released version
Replace git dependency with published crate version 0.1.5 This change updates our RMCP integration to use the stable released version from crates.io instead of pulling directly from the main branch. Additionally: - Update Tool struct implementations to match new API - Remove optional annotations field no longer needed - Change description field from Option<Cow<str>> to Cow<str> - Update PaginatedRequestParam parameter to be non-optional This improves dependency stability and ensures compatibility with the official RMCP release.
1 parent 2141b7a commit 2273811

File tree

7 files changed

+12
-18
lines changed

7 files changed

+12
-18
lines changed

Diff for: Cargo.lock

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rand = "0.9.0"
4343
ratatui = "0.29.0"
4444
regex = "1.10.6"
4545
reqwest = { version = "0.12.15", features = ["json"] }
46-
rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", branch = "main", features = ["server", "transport-sse-server"] }
46+
rmcp = { version = "0.1.5", features = ["server", "transport-sse-server"] }
4747
schemars = "0.8.21"
4848
serde = { version = "1.0.209", features = ["derive"] }
4949
serde_json = "1.0.127"

Diff for: src/mcp/tools/changelog.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ impl ChangelogTool {
5050
pub fn get_tool_definition() -> Tool {
5151
Tool {
5252
name: Cow::Borrowed("git_iris_changelog"),
53-
description: Some(Cow::Borrowed(
54-
"Generate a detailed changelog between two Git references",
55-
)),
53+
description: Cow::Borrowed("Generate a detailed changelog between two Git references"),
5654
input_schema: cached_schema_for_type::<Self>(),
57-
annotations: None,
5855
}
5956
}
6057
}

Diff for: src/mcp/tools/codereview.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ impl CodeReviewTool {
4848
pub fn get_tool_definition() -> Tool {
4949
Tool {
5050
name: Cow::Borrowed("git_iris_code_review"),
51-
description: Some(Cow::Borrowed(
51+
description: Cow::Borrowed(
5252
"Generate a comprehensive code review with options for staged changes, unstaged changes, or specific commits",
53-
)),
53+
),
5454
input_schema: cached_schema_for_type::<Self>(),
55-
annotations: None,
5655
}
5756
}
5857
}

Diff for: src/mcp/tools/commit.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ impl CommitTool {
5151
pub fn get_tool_definition() -> Tool {
5252
Tool {
5353
name: Cow::Borrowed("git_iris_commit"),
54-
description: Some(Cow::Borrowed(
55-
"Generate commit messages and perform Git commits",
56-
)),
54+
description: Cow::Borrowed("Generate commit messages and perform Git commits"),
5755
input_schema: cached_schema_for_type::<Self>(),
58-
annotations: None,
5956
}
6057
}
6158
}

Diff for: src/mcp/tools/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl ServerHandler for GitIrisHandler {
172172

173173
async fn list_tools(
174174
&self,
175-
_: Option<PaginatedRequestParam>,
175+
_: PaginatedRequestParam,
176176
_: RequestContext<RoleServer>,
177177
) -> Result<ListToolsResult, Error> {
178178
// Use our custom method to get all tools

Diff for: src/mcp/tools/releasenotes.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ impl ReleaseNotesTool {
5050
pub fn get_tool_definition() -> Tool {
5151
Tool {
5252
name: Cow::Borrowed("git_iris_release_notes"),
53-
description: Some(Cow::Borrowed(
53+
description: Cow::Borrowed(
5454
"Generate comprehensive release notes between two Git references",
55-
)),
55+
),
5656
input_schema: cached_schema_for_type::<Self>(),
57-
annotations: None,
5857
}
5958
}
6059
}

0 commit comments

Comments
 (0)