Skip to content

Commit be2ef96

Browse files
Merge pull request modelcontextprotocol#26 from modelcontextprotocol/justin/fix-capabilities
Add missing `capabilities` fields
2 parents 6ce9dd9 + 9ff0153 commit be2ef96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/concepts/transports.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Use stdio when:
6464
const server = new Server({
6565
name: "example-server",
6666
version: "1.0.0"
67+
}, {
68+
capabilities: {}
6769
});
6870

6971
const transport = new StdioServerTransport();
@@ -75,6 +77,8 @@ Use stdio when:
7577
const client = new Client({
7678
name: "example-client",
7779
version: "1.0.0"
80+
}, {
81+
capabilities: {}
7882
});
7983

8084
const transport = new StdioClientTransport({
@@ -125,6 +129,8 @@ Use SSE when:
125129
const server = new Server({
126130
name: "example-server",
127131
version: "1.0.0"
132+
}, {
133+
capabilities: {}
128134
});
129135

130136
const transport = new SSEServerTransport("/message", response);
@@ -136,6 +142,8 @@ Use SSE when:
136142
const client = new Client({
137143
name: "example-client",
138144
version: "1.0.0"
145+
}, {
146+
capabilities: {}
139147
});
140148

141149
const transport = new SSEClientTransport(

0 commit comments

Comments
 (0)