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.
| 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. |
| 17 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected