fix(hub): use X-MCP-Secret for tool calling
This commit is contained in:
parent
727b431d4b
commit
c3efe69b1b
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
...
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user