Skip to content

feat: mcp tool support#122

Merged
adi-wan-askui merged 9 commits intomainfrom
feat/mcp-server-support
Aug 20, 2025
Merged

feat: mcp tool support#122
adi-wan-askui merged 9 commits intomainfrom
feat/mcp-server-support

Conversation

@adi-wan-askui
Copy link
Contributor

Adds basic support for using MCP tools to both chat and BaseAgent.act() by specifying fastmcp.Client as a parameter to ToolCollection.

@adi-wan-askui adi-wan-askui force-pushed the feat/mcp-server-support branch 2 times, most recently from 8597bf6 to 9f3db28 Compare August 19, 2025 09:31
@adi-wan-askui adi-wan-askui marked this pull request as ready for review August 19, 2025 09:31
adi-wan-askui and others added 9 commits August 20, 2025 22:04
BREAKING CHANGE:
- the `tools` parameter of `ActModel.act()` is
  now a `ToolCollection` instead of a list of
  `Tool` so that classes that extend `ActModel`
  need to update the implementation of their
  `act()` method to accept a `ToolCollection`
- default tools of agents, e.g., `VisionAgent`,
  are no longer overridden by the `tools` parameter
  but are prepended to the tools parameter
- limit number of MCP configs to 100
- switch from Threading to anyio to make it possible to syncify
  listing and calling tools
- no filtering of servers or tools
Co-authored-by: danyalxahid-askui <150019098+danyalxahid-askui@users.noreply.github.com>
@adi-wan-askui adi-wan-askui force-pushed the feat/mcp-server-support branch from 6986c16 to b4220ea Compare August 20, 2025 20:10
@adi-wan-askui adi-wan-askui merged commit 7e6b32a into main Aug 20, 2025
1 check passed
@adi-wan-askui adi-wan-askui deleted the feat/mcp-server-support branch August 20, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants