fix(hub): use X-MCP-Secret for tool calling

This commit is contained in:
Chris Christiansen 2026-09-05 11:24:55 +00:00
parent 727b431d4b
commit c3efe69b1b
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,6 @@ def _identity_token() -> str:
def _mcp_headers() -> dict:
return {
"Authorization": f"Bearer {_identity_token()}",
"X-MCP-Secret": _MCP_SECRET,
"Content-Type": "application/json",
}

View File

@ -72,7 +72,10 @@ def _identity_token() -> str:
return credentials.token
def _mcp_headers() -> dict:
return {"Authorization": f"Bearer {_identity_token()}", "X-MCP-Secret": _MCP_SECRET, "Content-Type": "application/json"}
return {
"X-MCP-Secret": _MCP_SECRET,
"Content-Type": "application/json",
}
import json
...