flutter_ai_mcp 0.1.4
flutter_ai_mcp: ^0.1.4 copied to clipboard
Model Context Protocol (MCP) integration for flutter_ai: connect to MCP servers over Streamable HTTP and expose their tools as flutter_ai tools that flow through the agent loop.
Changelog #
0.1.4 #
- Fix:
StreamableHttpMcpConnection.callToolnow has a per-call timeout (callTimeout, default 60s). The underlying transport only bounds the response headers, not the SSE body read, so a stalled server previously left the tool future unresolved and wedged the agent turn indefinitely; a timed-out call now surfaces as an error result instead.
0.1.3 #
- Docs: refreshed the README listing with a hero image, screenshot gallery, and badges (consistent across the package family). No code changes.
0.1.2 #
- Declares supported
platforms:(all 6) for the pub.dev listing.
0.1.1 #
callToolthrowsMcpToolExceptionwhen a tool returnsisError: true(so the failure reaches the model) and prefers the server's structured content.
0.1.0 #
Initial release.
McpConnection/McpToolInfo— a transport-agnostic contract for listing and calling MCP server tools.StreamableHttpMcpConnection.connect(...)— connects to an MCP server over Streamable HTTP (the right transport for mobile/web), backed bymcp_client.mcpToolSpecs(connection)— adapts discovered MCP tools into flutter_aiToolSpecs so they register in aToolRegistryand flow through the agent loop alongside native tools.