Skip to content

Commit 2bfeb17

Browse files
committed
mcp heap string
1 parent 67bd5b6 commit 2bfeb17

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

crates/mcp/src/resources/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#[derive(Clone, Debug)]
22
pub struct Resource {
3-
pub name: &'static str,
3+
pub name: String,
44
}
55

66
pub fn get_resources() -> Vec<Resource> {
7-
vec![] // Add resources as needed
7+
vec![]
88
}

crates/mcp/src/tools/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ pub mod schema;
55

66
#[derive(Clone, Debug)]
77
pub struct Tool {
8-
pub name: &'static str,
9-
pub description: &'static str,
8+
pub name: String,
9+
pub description: String,
1010
pub input_schema: Value,
1111
}
1212

crates/mcp/src/tools/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use crate::types::{JsonRpcError, JsonRpcRequest, JsonRpcResponse, JSONRPC_VERSIO
99

1010
pub fn get_tool() -> Tool {
1111
Tool {
12-
name: "query",
13-
description: "Execute a SQL query on the database",
12+
name: "query".to_string(),
13+
description: "Execute a SQL query on the database".to_string(),
1414
input_schema: json!({
1515
"type": "object",
1616
"properties": {

crates/mcp/src/tools/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use crate::types::{JsonRpcError, JsonRpcRequest, JsonRpcResponse, JSONRPC_VERSIO
88

99
pub fn get_tool() -> Tool {
1010
Tool {
11-
name: "schema",
12-
description: "Retrieve the database schema including tables, columns, and their types",
11+
name: "schema".to_string(),
12+
description: "Retrieve the database schema including tables, columns, and their types".to_string(),
1313
input_schema: json!({
1414
"type": "object",
1515
"properties": {

0 commit comments

Comments
 (0)