Add missing capabilities fields

This commit is contained in:
Justin Spahr-Summers 2024-11-21 23:38:52 +00:00
commit 9ff0153b0e
No known key found for this signature in database

View file

@ -64,6 +64,8 @@ Use stdio when:
const server = new Server({
name: "example-server",
version: "1.0.0"
}, {
capabilities: {}
});
const transport = new StdioServerTransport();
@ -75,6 +77,8 @@ Use stdio when:
const client = new Client({
name: "example-client",
version: "1.0.0"
}, {
capabilities: {}
});
const transport = new StdioClientTransport({
@ -125,6 +129,8 @@ Use SSE when:
const server = new Server({
name: "example-server",
version: "1.0.0"
}, {
capabilities: {}
});
const transport = new SSEServerTransport("/message", response);
@ -136,6 +142,8 @@ Use SSE when:
const client = new Client({
name: "example-client",
version: "1.0.0"
}, {
capabilities: {}
});
const transport = new SSEClientTransport(