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
1 change: 1 addition & 0 deletions crates/rmcp/src/model/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct Tool {
pub description: Option<Cow<'static, str>>,
/// A JSON Schema object defining the expected parameters for the tool
pub input_schema: Arc<JsonObject>,
#[serde(skip_serializing_if = "Option::is_none")]
/// Optional additional tool information.
pub annotations: Option<ToolAnnotations>,
}
Expand Down
3 changes: 2 additions & 1 deletion crates/rmcp/tests/test_with_js/client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";

const transport = new SSEClientTransport( new URL(`http://127.0.0.1:8000/sse`));
const transport = new SSEClientTransport(new URL(`http://127.0.0.1:8000/sse`));

const client = new Client(
{
Expand All @@ -26,3 +26,4 @@ console.log(templates);
const prompts = await client.listPrompts();
console.log(prompts);
await client.close();
await transport.close();
2 changes: 1 addition & 1 deletion crates/rmcp/tests/test_with_js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ server.tool(
);

const transport = new StdioServerTransport();
await server.connect(transport);
await server.connect(transport);
Loading