MCPcopy Create free account
hub / github.com/github/copilot-sdk / MCPOauthHandlePendingRequest

Class MCPOauthHandlePendingRequest

python/copilot/generated/rpc.py:17932–17952  ·  view source on GitHub ↗

Pending MCP OAuth request ID and host-provided token or cancellation response.

Source from the content-addressed store, hash-verified

17930# Experimental: this type is part of an experimental API and may change or be removed.
17931@dataclass
17932class MCPOauthHandlePendingRequest:
17933 """Pending MCP OAuth request ID and host-provided token or cancellation response."""
17934
17935 request_id: str
17936 """OAuth request identifier from the mcp.oauth_required event"""
17937
17938 result: MCPOauthPendingRequestResponse
17939 """Host response to the pending OAuth request."""
17940
17941 @staticmethod
17942 def from_dict(obj: Any) -> 'MCPOauthHandlePendingRequest':
17943 assert isinstance(obj, dict)
17944 request_id = from_str(obj.get("requestId"))
17945 result = MCPOauthPendingRequestResponse.from_dict(obj.get("result"))
17946 return MCPOauthHandlePendingRequest(request_id, result)
17947
17948 def to_dict(self) -> dict:
17949 result: dict = {}
17950 result["requestId"] = from_str(self.request_id)
17951 result["result"] = to_class(MCPOauthPendingRequestResponse, self.result)
17952 return result
17953
17954# Experimental: this type is part of an experimental API and may change or be removed.
17955@dataclass

Callers 2

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…