Merge pull request #26 from modelcontextprotocol/justin/fix-capabilities

Add missing `capabilities` fields
This commit is contained in:
Justin Spahr-Summers 2024-11-21 23:39:49 +00:00 • committed by GitHub
commit be2ef96db5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(