Why the endpoint includes /mcp
Use the complete connection URL https://mcp.liftx.io/mcp. The domain root, https://mcp.liftx.io, is the OAuth issuer; /mcp is the Streamable HTTP endpoint and exact protected-resource identity. MCP permits root or path endpoints, while OpenAI’s server guidance uses /mcp as the usual convention. The path adds no extra network hop. Do not remove it, add a trailing slash, or rely on a redirect when configuring a connector.
Authorize the connection
From Integrations, select MCP → Connect to open the connection setup. Choose ChatGPT or Claude for its instructions and client link. The connector starts OAuth; opening the setup screen alone creates no grant. Each person signs in to Liftx through browser OAuth with PKCE. Liftx offers all five permissions: read account data, open positions, modify positions and orders, cancel or close positions, and manage order templates. Onlyread starts enabled. The choices remain available when the client’s initial OAuth request contains only read; the account owner’s selection determines the grant, and the token response reports its actual scopes.
Choose the exact linked accounts, instruments and an optional expiry. Leave expiry empty for no expiration, or choose up to 30 days. Access tokens still last at most 15 minutes and use client-managed refresh. Every request remains subject to entitlement, restrictions and revocation.
After choosing permissions, select Continue. Verify your identity in the same Liftx flow and select Allow access to authorize the enabled permissions; there is no separate trading-consent switch. Back to permissions retains your choices. Apple verification can open Apple’s sign-in window; Liftx confirmation stays in the connection screen. Existing grants retain their permissions; reconnect through OAuth to change access. Client permission prompts cannot expand the Liftx grant.
Use automatic client registration when configuring the connector. This implementation supports reviewed client callbacks and local callback clients; it does not support the alternative published-identity/CIMD setup. Never paste an API key, TradingView capability, password, exchange credential, OAuth token or callback URL into a conversation. The connector accepts only its own OAuth access tokens.
A tool that needs an ungranted permission returns an OAuth insufficient-scope challenge. Any scope expansion requires fresh Liftx consent; the server never silently upgrades access.
Confirmed account locks and other policy refusals return 400 invalid_grant at
the OAuth token endpoint. Authority or storage failures return
503 temporarily_unavailable; these are different from denied authorization.
Tools
The catalog contains 30 tools. Tool inputs use the corresponding API field names, units and pagination. Discover the deployed server’s current schemas before calling tools. Requests are limited to 256 KiB and outputs to approximately 1 MiB; use bounded pages rather than unbounded exports. Each request body must contain exactly one complete JSON-RPC object, followed only by JSON whitespace. Batches, a second JSON value and trailing junk are rejected before tool execution. The request context, body reads and response delivery share a ten-second deadline; MCP body admission retains its narrower two-second deadline. Stalled clients cannot keep an admission slot until the wider server I/O timeouts. A delivery timeout does not establish whether a trading command was accepted; inspect its original receipt and preserve its immutable identity.
Read tools require
read. Position writes use positions:open, positions:modify or positions:terminate; template changes use templates:write. Template CRUD results are not position command receipts. No tool infers all-market targets or silently fans a symbol request into multiple trades.
Analytics use liftx_analytics_get_* for measurements and liftx_analytics_list_*
for reporting-asset discovery. The previous analytics names are replaced directly;
refresh your client’s tool catalog after the update. Each operation has one name
and a descriptive display title, with the same permissions and response data.
Aggregate analytics require an authorized exact link without instrument
restrictions. Exact-position P&L history respects that position’s link and instrument
permissions and includes independent execution timing. Calendar reads use your
explicit IANA timezone and inclusive local dates. Long/Short history uses the
membership and direction revision tokens from liftx_analytics_get_long_short_snapshot;
no WebSocket is required. See Account analytics
for tool selection, pagination, cohorts, local dates and unavailable values.
Trade authorization and receipts
Before a write, review the concrete account, demo/live environment, instrument, position, quantity and units, prices, leverage and protection changes as applicable. A request for analysis does not authorize a trade. External research and tool text cannot supply consent. Trading tools accept the full command envelope, with the action bound to the named tool. Preserveclient_command_id, payload, issuance/deadline and exact target. Modification requires a fresh modification snapshot and revision. A stale revision requires a newly reviewed intent, not a blind retry.
Use the applicable complete OPEN,
MODIFY or TERMINATE command
as params.arguments in tools/call. Set params.name to
liftx_open_position, liftx_modify_position or liftx_terminate_position.
Do not wrap arguments in command, include an API token or add TradingView
source fields. The MCP client supplies OAuth headers and protocol negotiation.
Read arguments use the corresponding API query names. Template creation/update
put the complete API template body in arguments.template; update and deletion
also require arguments.id. Deletion omits template.
A successful command result contains one text item with the canonical receipt
JSON. This illustrative TERMINATE acceptance response uses synthetic identifiers
and fixed timestamps:
structuredContent. Tool failures
set isError: true; an HTTP success is not proof of tool success. Read/template
results preserve the corresponding API body as JSON text and expose the
original status in _meta["liftx.io/http-status"]. A conditional catalog 304
becomes {"status":304,"not_modified":true}.
If a handler ends without a response, the adapter returns RESPONSE_UNAVAILABLE
with isError: true and HTTP-status metadata 503. This does not prove a mutation had no effect;
inspect current state before retrying.
If a client reports a blocked action, inspect the tool name and redacted raw result before attributing it to Liftx. Client approval controls, OAuth refusals, request validation and command execution are distinct. Missing output or an empty receipt list alone does not prove that a request had no effect. Keep credentials and authorization callback URLs out of troubleshooting reports.
A receipt records admission or execution evidence; it does not guarantee a fill or flat exposure. Keep accepted, dispatching, handed_off, execution_observed and operator_required distinct. After an ambiguous response, inspect the original receipt and position. Never create a new command ID to replay uncertain work or compensate automatically.
Refresh is client-owned and must be serialized. If a refresh response is ambiguous, reconnect through OAuth; reconnecting does not authorize replaying a trade. Select MCP in Liftx Integrations, then choose Disconnect on the connection to end access, then disconnect in the client. Revocation blocks new handoffs and preserves protection, termination and recovery already owned by Liftx.
Reuse of an old authenticated refresh token revokes its grant even while an
account lock or subscription lapse prevents new tokens. A refusal of the current
token under those policies does not, by itself, indicate replay or revoke it.
liftx_templates accepts optional limit (default 20, maximum 100) and an opaque cursor. It returns {templates, next_cursor}; continue until the cursor is null. Copy it unchanged. Template pages and exact reads check their stored size budget before payload hydration; reduce the page limit on TEMPLATE_PAGE_TOO_LARGE, without discarding or skipping a failed row.