refactor: address code review feedback on MCP tool calling

This commit is contained in:
copilot-swe-agent[bot]
2026-07-25 12:52:42 +00:00
committed by GitHub
parent 76c6086db3
commit 51188fe3bd
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class ToolClient:
def _headers(self) -> dict[str, str]:
headers: dict[str, str] = {"Accept": "application/json"}
if self._api_key:
headers["Authorization"] = "Bearer " + self._api_key
headers["Authorization"] = "Bearer " + self._api_key.strip()
return headers
async def get_spec(self) -> dict[str, Any]: