Skip to content

Commit 1933eb1

Browse files
committed
bug: fix compatebility issue and update syncable cli
1 parent 870c6f5 commit 1933eb1

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

rust-mcp-server-syncable-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
3535
tokio = { version = "1", features = ["full"] }
3636
env_logger = "0.11"
37-
syncable-cli = "0.13.0"
37+
syncable-cli = "0.15.0"
3838
axum = { version = "0.8.4", features = ["json"] }
3939
futures = "0.3.31"
4040
bytes = "1.10.1"

rust-mcp-server-syncable-cli/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub async fn start_stdio() -> SdkResult<()> {
2222
let server_details = InitializeResult {
2323
server_info: Implementation {
2424
name: "Syncable-MCP-Server".to_string(),
25+
title: Some("Syncable MCP Server".to_string()),
2526
version: env!("CARGO_PKG_VERSION").to_string(),
2627
},
2728
capabilities: ServerCapabilities {
@@ -74,6 +75,7 @@ pub async fn start_sse() -> SdkResult<()> {
7475
let server_details = InitializeResult {
7576
server_info: Implementation {
7677
name: "Rust MCP Server (SSE)".to_string(),
78+
title: Some("Rust MCP Server (SSE)".to_string()),
7779
version: env!("CARGO_PKG_VERSION").to_string(),
7880
},
7981
capabilities: ServerCapabilities {

rust-mcp-server-syncable-cli/src/tools.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// src/tools.rs
22

3-
use rust_mcp_sdk::schema::{schema_utils::CallToolError, CallToolResult};
3+
use rust_mcp_sdk::schema::{schema_utils::CallToolError, CallToolResult, TextContent};
44
use rust_mcp_sdk::{
55
macros::{mcp_tool, JsonSchema},
66
tool_box,
@@ -58,7 +58,7 @@ impl AboutInfoTool {
5858
\t{BOLD}Customization{RESET}: You can add arguments to check for licenses or filter vulnerabilities by severity level.\n\n\
5959
This server empowers you to maintain high standards of code quality, security, and dependency management with simple, powerful commands.\n"
6060
);
61-
Ok(CallToolResult::text_content(info, None))
61+
Ok(CallToolResult::text_content(vec![TextContent::new(info, None, None)]))
6262
}
6363
}
6464

@@ -105,7 +105,7 @@ impl AnalysisScanTool {
105105
e
106106
)
107107
});
108-
Ok(CallToolResult::text_content(json_output, None))
108+
Ok(CallToolResult::text_content(vec![TextContent::new(json_output, None, None)]))
109109
}
110110
Err(e) => {
111111
let error_message = format!("Failed to analyze project: {}", e);
@@ -148,7 +148,7 @@ impl SecurityScanTool {
148148
e
149149
)
150150
});
151-
Ok(CallToolResult::text_content(json_output, None))
151+
Ok(CallToolResult::text_content(vec![TextContent::new(json_output, None, None)]))
152152
}
153153
Err(e) => {
154154
let error_message = format!("Failed to analyze project for security: {}", e);
@@ -187,7 +187,7 @@ impl DependencyScanTool {
187187
e
188188
)
189189
});
190-
Ok(CallToolResult::text_content(json_output, None))
190+
Ok(CallToolResult::text_content(vec![TextContent::new(json_output, None, None)]))
191191
}
192192
Err(e) => {
193193
let error_message = format!("Failed to analyze project for dependencies: {}", e);

0 commit comments

Comments
 (0)