Skip to content

Windsurf

Windsurf is Codeium’s AI-first code editor. Use it if you prefer cutting-edge IDE integration with AI.

The Windsurf MCP config is at ~/.codeium/windsurf/mcp_config.json.

Create the file if it doesn’t exist:

Terminal window
mkdir -p ~/.codeium/windsurf
touch ~/.codeium/windsurf/mcp_config.json

Edit ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"axiory-ai": {
"type": "streamable-http",
"serverUrl": "https://mcp.axiory.ai/mcp"
}
}
}

Restart Windsurf. When you first use the Axiory.ai tools, it opens a browser with the FIX credentials form:

  1. Select your broker server
  2. Enter your SenderCompID (from cTrader Settings > FIX API)
  3. Enter your FIX API Password (NOT your cTrader login password)
  4. Set trading mode (readonly/paper/live)
  5. Click Connect

You’ll see “Connected Successfully”.

In Windsurf chat, ask:

“Are you connected to cTrader? Show me my positions.”

Windsurf should respond with your account status.

If OAuth doesn’t work:

Visit in your browser:

https://mcp.axiory.ai/token-portal
  1. Select your broker server
  2. Enter your FIX credentials
  3. Choose trading mode
  4. Click Generate Token
  5. Copy the token

Set the token in your environment:

Terminal window
export AXIORY_TOKEN="your-token-here"

Add to ~/.zshrc or ~/.bashrc to persist:

Terminal window
echo 'export AXIORY_TOKEN="your-token-here"' >> ~/.zshrc
source ~/.zshrc

Edit ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"axiory-ai": {
"type": "streamable-http",
"serverUrl": "https://mcp.axiory.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:AXIORY_TOKEN}"
}
}
}
}

Close and reopen Windsurf to load the new environment variable.

Once connected:

@axiory-ai What's the current price of EURUSD?
@axiory-ai Buy 100,000 units of EURUSD at market price

Windsurf will use the Axiory.ai tools to fetch quotes, check risk limits, and execute orders.

In Windsurf:

“I want to buy 50,000 units of EURUSD. What’s the current price?”

Windsurf will:

  1. Fetch the current quote
  2. Check your risk limits
  3. Place the order (or simulate in paper mode)
  4. Show you the confirmation

Portal tokens expire after 30 days. Before expiry:

  1. Visit the Token Portal
  2. Generate a new token
  3. Update your environment variable: export AXIORY_TOKEN="new-token"
  4. Restart Windsurf

If your token expires, you’ll see “401 Unauthorized”. Generate a new one.

”MCP server not found” or connection fails

Section titled “”MCP server not found” or connection fails”

Check:

  1. File exists: ~/.codeium/windsurf/mcp_config.json
  2. JSON is valid (no syntax errors)
  3. Server URL is correct: https://mcp.axiory.ai/mcp
  4. Restart Windsurf after editing

”Invalid credentials” in the OAuth form

Section titled “”Invalid credentials” in the OAuth form”

Your FIX credentials are wrong:

  1. Go to cTrader Settings > FIX API
  2. Copy SenderCompID exactly (with all dots and numbers)
  3. Copy FIX API Password exactly (NOT your login password)
  4. Retry OAuth or regenerate a Portal Token

Your token has expired or is invalid:

  1. Check: echo $AXIORY_TOKEN
  2. If empty, set it: export AXIORY_TOKEN="your-token"
  3. If invalid, generate a new one at the Token Portal
  4. Restart Windsurf

Windsurf can’t find the environment variable

Section titled “Windsurf can’t find the environment variable”

Make sure:

  1. You’ve set the variable: export AXIORY_TOKEN="..."
  2. You’ve restarted Windsurf (not just reloaded settings)
  3. Verified the var exists: echo $AXIORY_TOKEN

Windsurf excels at code-based trading strategies. Start with paper mode to test.