Command
Start-IntelligenceXMcpOAuthLogin
Starts an MCP OAuth login flow and returns the browser authorization URL.
Syntax
Start-IntelligenceXMcpOAuthLogin
[-Client <IntelligenceXClient>]
[-Raw]
[-ServerId <string>]
[-ServerName <string>]
[<CommonParameters>]#Examples
Example 1
$login = Start-IntelligenceXMcpOAuthLogin -ServerName "github"; Start-Process $login.AuthUrl; $loginStart OAuth login by server name and open the browser
Example 2
Start-IntelligenceXMcpOAuthLogin -ServerId "srv_123"Start OAuth login by server id
Example 3
$oauthStatus = [IntelligenceX.OpenAI.AppServer.Models.McpAuthStatus]::OAuth; $server = (Get-IntelligenceXMcpServerStatus).Servers | Where-Object { $_.AuthStatus -eq $oauthStatus } | Select-Object -First 1; Start-IntelligenceXMcpOAuthLogin -ServerName $server.NameDiscover an OAuth server first, then start login
Example 4
Start-IntelligenceXMcpOAuthLogin -ServerName "github" -RawReturn raw JSON response for custom handling
Parameters
- -Client IntelligenceXClient
- App-server client instance to use. Defaults to the active client.
- -Raw SwitchParameter
- Returns the raw JSON-RPC payload instead of a typed model.
- -ServerId string
- MCP server identifier to start login for.
- -ServerName string
- MCP server name to start login for.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.