File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -252,9 +252,10 @@ async def list_tools(self) -> list[MCPTool]:
252252 tools .extend (await self ._runtime_mcp_tools_generator ())
253253
254254 # Check if there are no duplicated tools
255- if len (tools ) != len (set ([ tool .name for tool in tools ]) ):
255+ if len (tools ) != len ({ tool .name for tool in tools } ):
256256 raise Exception (
257- "There are duplicated tools. Check the for tools with the same name both static and generated at runtime."
257+ "There are duplicated tools. Check the for tools"
258+ "with the same name both static and generated at runtime."
258259 )
259260
260261 return [
Original file line number Diff line number Diff line change 33import pytest
44
55from mcp .server .fastmcp import FastMCP
6- from mcp .shared .memory import create_connected_server_and_client_session
76from mcp .server .fastmcp .tools .base import Tool
7+ from mcp .shared .memory import create_connected_server_and_client_session
88from mcp .types import TextContent
99
1010
You can’t perform that action at this time.
0 commit comments