MCPcopy Index your code
hub / github.com/github/copilot-sdk / _register_mcp_auth_handler

Method _register_mcp_auth_handler

python/copilot/session.py:2313–2316  ·  view source on GitHub ↗

Register the MCP auth handler for this session.

(self, handler: McpAuthHandler | None)

Source from the content-addressed store, hash-verified

2311 self._elicitation_handler = handler
2312
2313 def _register_mcp_auth_handler(self, handler: McpAuthHandler | None) -> None:
2314 """Register the MCP auth handler for this session."""
2315 with self._mcp_auth_handler_lock:
2316 self._mcp_auth_handler = handler
2317
2318 def _register_exit_plan_mode_handler(self, handler: ExitPlanModeHandler | None) -> None:
2319 """Register the exit-plan-mode handler for this session."""

Callers 2

_initialize_sessionMethod · 0.95
resume_sessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected