Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

docs: update recommendation filters for MCP and Enterprise tools (#3041)

Lucas Gomide59032817c759
diff --git a/docs/enterprise/features/integrations.mdx b/docs/enterprise/features/integrations.mdx
index 4e6b6b9a6..b6cd96edf 100644
--- a/docs/enterprise/features/integrations.mdx
+++ b/docs/enterprise/features/integrations.mdx
@@ -124,7 +124,7 @@ from crewai_tools import CrewaiEnterpriseTools
enterprise_tools = CrewaiEnterpriseTools(
actions_list=["gmail_find_email"] # only gmail_find_email tool will be available
)
-gmail_tool = enterprise_tools[0]
+gmail_tool = enterprise_tools["gmail_find_email"]
gmail_agent = Agent(
role="Gmail Manager",
diff --git a/docs/mcp/overview.mdx b/docs/mcp/overview.mdx
index da59c2b3f..cb19143e4 100644
--- a/docs/mcp/overview.mdx
+++ b/docs/mcp/overview.mdx
@@ -85,6 +85,22 @@ with MCPServerAdapter(server_params) as mcp_tools:
```
This general pattern shows how to integrate tools. For specific examples tailored to each transport, refer to the detailed guides below.
+## Filtering Tools
+
+```python
+with MCPServerAdapter(server_params) as mcp_tools:
+ print(f"Available tools: {[tool.name for tool in mcp_tools]}")
+
+ my_agent = Agent(
+ role="MCP Tool User",
+ goal="Utilize tools from an MCP server.",
+ backstory="I can connect to MCP servers and use their tools.",
+ tools=mcp_tools["tool_name"], # Pass the loaded tools to your agent
+ reasoning=True,
+ verbose=True
+ )
+ # ... rest of your crew setup ...
+```
## Explore MCP Integrations
<CardGroup cols={2}>