flutter_ai_mcp 0.1.4 copy "flutter_ai_mcp: ^0.1.4" to clipboard
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.callTool now 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 #

  • callTool throws McpToolException when a tool returns isError: 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 by mcp_client.
  • mcpToolSpecs(connection) — adapts discovered MCP tools into flutter_ai ToolSpecs so they register in a ToolRegistry and flow through the agent loop alongside native tools.
0
likes
150
points
166
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ai #llm #mcp #tool-calling #agent

License

BSD-3-Clause (license)

Dependencies

flutter_ai_core, flutter_ai_tools, mcp_client

More

Packages that depend on flutter_ai_mcp