Cline
Cline is a VS Code extension that brings advanced AI capabilities to your editor. Use it if you’re a VS Code developer.
Prerequisites
Section titled “Prerequisites”- VS Code installed
- Cline extension installed (from VS Code marketplace)
- Your FIX credentials (see Before You Start
OAuth Method
Section titled “OAuth Method”Step 1: Open Cline MCP Settings
Section titled “Step 1: Open Cline MCP Settings”- Open VS Code
- Click the Cline icon (in the activity bar)
- Click MCP Servers
- Click Add Remote Server
Step 2: Enter Server Details
Section titled “Step 2: Enter Server Details”- Name:
axiory-ai(orAxiory.ai) - URL:
https://mcp.axiory.ai/mcp - Auth Type:
OAuth - Click Add
Step 3: OAuth Login
Section titled “Step 3: OAuth Login”A browser opens with the FIX credentials form:
- Select your broker server
- Enter your SenderCompID (from cTrader Settings > FIX API)
- Enter your FIX API Password (NOT your cTrader login password)
- Set trading mode (readonly/paper/live)
- Click Connect
You’ll see “Connected Successfully”.
Step 4: Test Connection
Section titled “Step 4: Test Connection”In Cline chat, ask:
“Are you connected to cTrader? Show me my current positions.”
Cline should respond with your account status.
Portal Token Method (Fallback)
Section titled “Portal Token Method (Fallback)”If OAuth doesn’t work:
Step 1: Generate a Token
Section titled “Step 1: Generate a Token”Visit in your browser:
https://mcp.axiory.ai/token-portal- Select your broker server
- Enter your FIX credentials
- Choose trading mode
- Click Generate Token
- Copy the token
Step 2: Store Token
Section titled “Step 2: Store Token”Set the token in your environment:
export AXIORY_TOKEN="your-token-here"Add to ~/.zshrc or ~/.bashrc to persist:
echo 'export AXIORY_TOKEN="your-token-here"' >> ~/.zshrcsource ~/.zshrcStep 3: Configure Cline
Section titled “Step 3: Configure Cline”In Cline MCP settings:
- Click Add Remote Server (or edit existing)
- Name:
axiory-ai - URL:
https://mcp.axiory.ai/mcp - Auth Type:
Bearer Token - Token:
${env:AXIORY_TOKEN} - Click Save
Step 4: Restart VS Code
Section titled “Step 4: Restart VS Code”Close and reopen VS Code to load the environment variable.
Using in Cline
Section titled “Using in Cline”Once connected:
Ask Cline: What's the current EURUSD price?
Ask Cline: Buy 50,000 units of EURUSD at marketMaking Your First Trade
Section titled “Making Your First Trade”In Cline:
“I want to buy 100,000 units of EURUSD. Can you check the current price and place the order?”
Cline will:
- Fetch the current quote
- Check your risk limits
- Place the order (or simulate in paper mode)
- Show you the confirmation
Token Rotation
Section titled “Token Rotation”Portal tokens expire after 30 days. Before expiry:
- Visit the Token Portal
- Generate a new token
- Update your environment variable:
export AXIORY_TOKEN="new-token" - Restart VS Code
If your token expires, you’ll see “401 Unauthorized”. Generate a new one.
Troubleshooting
Section titled “Troubleshooting””Server not found” or “Connection refused”
Section titled “”Server not found” or “Connection refused””Check:
- Cline MCP settings show the server correctly
- URL is exact:
https://mcp.axiory.ai/mcp - Try clicking Test Connection
- Restart Cline / VS Code
”Invalid credentials” in the OAuth form
Section titled “”Invalid credentials” in the OAuth form”Your FIX credentials are wrong:
- Go to cTrader Settings > FIX API
- Copy SenderCompID exactly (with all dots and numbers)
- Copy FIX API Password exactly (NOT your login password)
- Retry OAuth or regenerate a Portal Token
”401 Unauthorized” (Portal Token)
Section titled “”401 Unauthorized” (Portal Token)”Your token has expired or is invalid:
- Check:
echo $AXIORY_TOKEN - If empty, set it:
export AXIORY_TOKEN="your-token" - If invalid, generate a new one at the Token Portal
- Restart VS Code
Cline can’t find the environment variable
Section titled “Cline can’t find the environment variable”Make sure:
- You’ve set the variable:
export AXIORY_TOKEN="..." - You’ve restarted VS Code completely
- Verified the var exists:
echo $AXIORY_TOKEN
If it still doesn’t work, manually enter the token (not recommended):
In Cline MCP settings, instead of ${env:AXIORY_TOKEN}, paste the actual token.
Next Steps
Section titled “Next Steps”- Operating Modes — Understand readonly, paper, and live
- Risk Limits — Position size and daily loss limits
- Choosing an Agent — Compare with other MCP clients
Cline is powerful for developers. Start with paper mode to test your trading logic.
