IntelligenceX
Cmdlet

Start-IntelligenceXMcpOAuthLogin

Namespace IntelligenceX.PowerShell
Inputs
IntelligenceX.OpenAI.IntelligenceXClient
Outputs
IntelligenceX.Json.JsonValue IntelligenceX.OpenAI.AppServer.Models.McpOauthLoginStart

Starts an MCP OAuth login flow and returns the browser authorization URL.

Examples

Example 1


$login = Start-IntelligenceXMcpOAuthLogin -ServerName "github"; Start-Process $login.AuthUrl; $login
        

Start 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.Name
        

Discover an OAuth server first, then start login

Example 4


Start-IntelligenceXMcpOAuthLogin -ServerName "github" -Raw
        

Return raw JSON response for custom handling

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.

Syntax

Start-IntelligenceXMcpOAuthLogin [-Client <IntelligenceXClient>] [-Raw] [-ServerId <string>] [-ServerName <string>] [<CommonParameters>]
#

Parameters

Client IntelligenceXClient optionalposition: namedpipeline: true (ByValue)
App-server client instance to use. Defaults to the active client.
Raw SwitchParameter optionalposition: namedpipeline: false
Returns the raw JSON-RPC payload instead of a typed model.
ServerId string optionalposition: namedpipeline: false
MCP server identifier to start login for.
ServerName string optionalposition: namedpipeline: false
MCP server name to start login for.

Outputs

IntelligenceX.Json.JsonValue, IntelligenceX.OpenAI.AppServer.Models.McpOauthLoginStart