Merge pull request #26 from modelcontextprotocol/justin/fix-capabilities
Add missing `capabilities` fields
This commit is contained in:
commit
be2ef96db5
1 changed files with 8 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue