MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / bridge_token_valid

Method bridge_token_valid

e2e/mcp-conformance/host-bridge.py:120–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 self.send_json(status, {"error": "invalid_bridge_request", "detail": detail})
119
120 def bridge_token_valid(self) -> bool:
121 supplied = self.headers.get(TOKEN_HEADER, "")
122 return hmac.compare_digest(supplied, BRIDGE_TOKEN)
123
124 def request_body_length(self) -> int | None:
125 raw_length = self.headers.get("content-length")

Callers 1

do_POSTMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected