π The fast, Pythonic way to build MCP servers and clients.
Finish removing
Jeremiah Lowincdc080819041
diff --git a/src/fastmcp/server/openapi.py b/src/fastmcp/server/openapi.pyindex daeba1ea5..82a04307b 100644--- a/src/fastmcp/server/openapi.py+++ b/src/fastmcp/server/openapi.py@@ -122,7 +122,6 @@ class OpenAPITool(Tool):name: str,description: str,parameters: dict[str, Any],- is_async: bool = True,tags: set[str] = set(),timeout: float | None = None,annotations: ToolAnnotations | None = None,@@ -133,7 +132,6 @@ class OpenAPITool(Tool):description=description,parameters=parameters,fn=self._execute_request, # We'll use an instance method instead of a global function- is_async=is_async,context_kwarg="context", # Default context keyword argumenttags=tags,annotations=annotations,@@ -550,7 +548,6 @@ class FastMCPOpenAPI(FastMCP):name=tool_name,description=enhanced_description,parameters=combined_schema,- is_async=True,tags=set(route.tags or []),timeout=self._timeout,)diff --git a/src/fastmcp/tools/tool.py b/src/fastmcp/tools/tool.pyindex 492dbeaca..4f178a6e8 100644--- a/src/fastmcp/tools/tool.py+++ b/src/fastmcp/tools/tool.py@@ -40,7 +40,6 @@ class Tool(BaseModel):name: str = Field(description="Name of the tool")description: str = Field(description="Description of what the tool does")parameters: dict[str, Any] = Field(description="JSON schema for tool parameters")- is_async: bool = Field(description="Whether the tool is async")context_kwarg: str | None = Field(None, description="Name of the kwarg that should receive context")@@ -74,7 +73,6 @@ class Tool(BaseModel):raise ValueError("You must provide a name for lambda functions")func_doc = description or fn.__doc__ or ""- is_async = inspect.iscoroutinefunction(fn)if inspect.ismethod(fn) and hasattr(fn, "__func__"):sig = inspect.signature(fn.__func__)@@ -96,7 +94,6 @@ class Tool(BaseModel):name=func_name,description=func_doc,parameters=schema,- is_async=is_async,context_kwarg=context_kwarg,tags=tags or set(),annotations=annotations,