Skip to main content

MCP and connectors

Scope: ServerRpc (server-wide operations tied to the Client) For an overview of RPC and the list of all RPC pages, see RPC.

secrets (experimental: register masks for dynamic secrets)

The experimental secrets()->addFilterValues() registers dynamic secrets generated by your host with the CLI’s redaction filter. The CLI then masks those values in session logs and exports.
This RPC doesn’t acquire OAuth tokens. The SDK doesn’t persist the values or write them to additional logs. Register values that your host has already obtained.

mcp oauth (MCP OAuth pre-checks)

After a remote MCP server requests OAuth authentication, you can check whether it supports Dynamic Client Registration (DCR). authorizationServerUrl is returned when the authorization server can be discovered from metadata. If supportsDcr is false, dynamic registration is not available. You can also check whether the authorization server is a Microsoft one.
Last modified on November 19, 2026