Merge branch 'main' of github.com:modelcontextprotocol/docs into zack-lee/final-qs

This commit is contained in:
Zack Lee 2024-11-22 12:36:32 -05:00
commit 131066f6e4
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(