[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-11-25 12:08:58 +00:00 committed by GitHub
parent f2ea86875d
commit e569623575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -180,7 +180,9 @@ class MCPClientWithAuthRetry(MCPClient):
"""
return self._execute_with_retry(super().list_tools)
def invoke_tool(self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None) -> CallToolResult:
def invoke_tool(
self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None
) -> CallToolResult:
"""
Invoke a tool on the MCP server with auth retry.

View File

@ -96,7 +96,9 @@ class MCPClient:
response = self._session.list_tools()
return response.tools
def invoke_tool(self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None) -> CallToolResult:
def invoke_tool(
self, tool_name: str, tool_args: dict[str, Any], _meta: dict[str, Any] | None = None
) -> CallToolResult:
"""Call a tool"""
if not self._session:
raise ValueError("Session not initialized.")