Pending MCP OAuth request ID and host-provided token or cancellation response.
| 17930 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 17931 | @dataclass |
| 17932 | class 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…