From 59032817c7590e2e6c3610980c7ddbccaa880505 Mon Sep 17 00:00:00 2001 From: Lucas Gomide Date: Fri, 20 Jun 2025 14:35:26 -0300 Subject: [PATCH] docs: update recommendation filters for MCP and Enterprise tools (#3041) --- docs/enterprise/features/integrations.mdx | 2 +- docs/mcp/overview.mdx | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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