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

Method reject

e2e/mcp-conformance/host-bridge.py:115–118  ·  view source on GitHub ↗
(self, status: int, detail: str)

Source from the content-addressed store, hash-verified

113 self.wfile.write(encoded)
114
115 def reject(self, status: int, detail: str) -> None:
116 self.close_connection = True
117 log(f"rejecting bridge request from {self.client_address[0]}: {detail}")
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, "")

Callers 3

request_body_lengthMethod · 0.95
read_request_payloadMethod · 0.95
do_POSTMethod · 0.95

Calls 2

send_jsonMethod · 0.95
logFunction · 0.70

Tested by

no test coverage detected