MCPcopy Index your code
hub / github.com/github/github-mcp-server / sessionPrompter

Struct sessionPrompter

internal/ghmcp/oauth.go:17–19  ·  view source on GitHub ↗

sessionPrompter adapts an MCP server session to oauth.Prompter, presenting authorization prompts to the user via elicitation. Keeping the prompt on the MCP control channel (rather than a tool result) keeps the authorization URL and any session-bound state out of the model's context.

Source from the content-addressed store, hash-verified

15// MCP control channel (rather than a tool result) keeps the authorization URL
16// and any session-bound state out of the model's context.
17type sessionPrompter struct {
18 session *mcp.ServerSession
19}
20
21// elicitationCaps returns the client's declared elicitation capabilities, or nil
22// if the client did not advertise any.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected