Skip to main content
POST
Preview and normalize an MCP authorization request
MCP is implemented locally and is not production active. These synthetic examples do not announce availability or submit requests.

Authorization

Authenticated Liftx Settings session. API keys, TradingView capabilities and MCP access tokens cannot authenticate this application route. Use Settings → Integrations; the public API hostname does not provide session access.

Behavior

The response contains client_name, normalized authorization, allowed_scopes and the exact resource. Preview validates the callback/client pairing, resource, state and PKCE challenge. It does not create a credential, issue a code or consume fresh approval. Client labels come from callback policy; a local callback does not attest a provider identity.

JSON body example

This is a synthetic local-client shape. The actual client owns registration, callback, state and PKCE challenge. Do not manually construct consent from a chat or substitute a different client request. Fixed timestamps are illustrative.

Response and errors

Success is 200 with normalized metadata. An omitted/empty authorization scope defaults to read; duplicate or unknown scope names are rejected. The allowed scopes are the OAuth client’s request, not permissions already granted to it. Preview is outside the issuance limiter and retains bounded request/concurrency admission. MCP activation is required. When disabled, 503 uses {error:"temporarily_unavailable",error_description,iss}; other validation/admission failures retain the documented integration error envelope. Check status and content type. Unknown/duplicate JSON fields and compressed bodies are rejected; request size is limited to 256 KiB. See Settings contract and MCP authorization.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
authorization
object
required

Response

Normalized metadata; no authorization grant is created

client_name
enum<string>
required
Available options:
Claude,
ChatGPT,
Local MCP client
authorization
object
required
allowed_scopes
enum<string>[]
required
Required array length: 1 - 5 elements
Available options:
read,
positions:open,
positions:modify,
positions:terminate,
templates:write
resource
string
required
Allowed value: "https://mcp.liftx.io/mcp"