Class SessionMcpHeadersApi
java.lang.Object
com.github.copilot.generated.rpc.SessionMcpHeadersApi
API methods for the
mcp.headers namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionhandlePendingHeadersRefreshRequest(SessionMcpHeadersHandlePendingHeadersRefreshRequestParams params) Responds to a pending MCP dynamic headers refresh request.
-
Method Details
-
handlePendingHeadersRefreshRequest
@CopilotExperimental public CompletableFuture<SessionMcpHeadersHandlePendingHeadersRefreshRequestResult> handlePendingHeadersRefreshRequest(SessionMcpHeadersHandlePendingHeadersRefreshRequestParams params) Responds to a pending MCP dynamic headers refresh request. Hosts that subscribe to `mcp.headers_refresh_required` use this to provide short-lived per-server headers or to indicate that no dynamic headers are available for this refresh.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-