IMcpTokenProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Acquires OAuth tokens for MCP servers, routing V1 servers to the shared ATG token and V2 servers to per-audience tokens.
public interface IMcpTokenProvider
type IMcpTokenProvider = interface
Public Interface IMcpTokenProvider
Methods
| Name | Description |
|---|---|
| GetTokenAsync(MCPServerConfig, CancellationToken) |
Returns a Bearer token for the specified MCP server. The scope is determined by ResolveTokenScopeForServer(MCPServerConfig, IConfiguration). |