You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx
+44-24
Original file line number
Diff line number
Diff line change
@@ -637,54 +637,74 @@ This enables your AI applications to discover and use tools across various servi
637
637
638
638
Create an MCP client using either:
639
639
640
-
-`stdio`: Uses standard input and output streams for communication, ideal for local tool servers running on the same machine (like CLI tools or local services)
641
640
-`SSE` (Server-Sent Events): Uses HTTP-based real-time communication, better suited for remote servers that need to send data over the network
641
+
-`stdio`: Uses standard input and output streams for communication, ideal for local tool servers running on the same machine (like CLI tools or local services)
642
642
- Custom transport: Bring your own transport by implementing the `MCPTransport` interface
643
643
644
+
#### SSE Transport
645
+
646
+
The SSE can be configured using a simple object with a `type` and `url` property:
0 commit comments