ai_sdk_mcp 1.0.0+1
ai_sdk_mcp: ^1.0.0+1 copied to clipboard
MCP (Model Context Protocol) client for AI SDK Dart. Connect to MCP servers via SSE or stdio, discover tools, and use them with any LLM provider.
1.0.0+1 #
- Improved pubspec descriptions for better pub.dev discoverability.
- Added
example/example.mdwith usage examples and links to runnable apps.
1.0.0 #
First stable release. Depends on ai_sdk_dart 1.0.0.
MCPClient— manages a session with any MCP server via pluggable transport.SseClientTransport— HTTP SSE transport for remote MCP servers; supports custom headers and separate POST URL.StdioMCPTransport— stdio transport that spawns a local process and communicates via stdin/stdout.initialize()— MCP protocol 2024-11-05 handshake with idempotency guard.tools()— discovers available tools and returns aToolSetcompatible withgenerateText/streamText.callTool()— invokes a named tool with structured arguments; throwsMCPExceptionon server-side errors.MCPException— typed exception withmessagefield.
0.2.0 #
- Initial release.
MCPClient— manages a connection to an MCP server via any transport.SseClientTransport— HTTP SSE transport for remote MCP servers.StdioMCPTransport— stdio transport for local MCP server processes.tools()— discovers available tools and returns a typedToolSet.callTool()— invokes a named tool with structured arguments.- MCP protocol 2024-11-05 initialize handshake.
MCPExceptionfor server-side errors.