feat: add official way to use MCP Tools within a CrewBase

Added a standard way to define and use MCP server tools inside a CrewBase class.
This was necessary because existing methods don't work in this context due to lifecycle mismatches.
MCP tools run asynchronously and start an event loop, which causes the instance state to become desynchronized from the crew.
This change ensures proper integration by aligning the MCP server lifecycle with the CrewBase instance.
This commit is contained in:
Lucas Gomide
2025-06-24 11:48:06 -03:00
parent 060c486948
commit 4a7c21f0e7
5 changed files with 344 additions and 29 deletions

File diff suppressed because one or more lines are too long