alpacahq / alpacahq/alpaca-mcp-server

MCP Server Auth with live trading

Offen
#16 5 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @idsts2670 Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
959
Forks
311
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
4

Beschreibung

I am having issues with authentication of MCP server when using with claude desktop . Even though I have configured my live trading API's correctly . This is the error I am getting : 
{"code":40110000,"message":"request is not authorized"} 

My tool config file : 
{
  "mcpServers": {
    "alpaca": {
      "command": "/Users/zee/alpaca-mcp-server/venv/bin/python",
      "args": [
        "/Users/zee/alpaca-mcp-server/alpaca_mcp_server.py"
      ],
      "env": {
        "ALPACA_API_KEY": "ABCDEEFGH",
        "ALPACA_SECRET_KEY": "ZYXWV"
      }
    }
  }
}

I've correctly configured based on your github documentation the values and set paper trading=False as well in .env file. 

 A curl using the same API keys works successfully : 
curl -X GET "https://api.alpaca.markets/v2/account" \
  -H "APCA-API-KEY-ID: ABCDEEF" \
  -H "APCA-API-SECRET-KEY: ZYXVW"

Have you guys disabled Live trading through MCP Server since I am able to use the same APIs for live trading?
How can I get more debug logs ?
Can you help me resolving this issue?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.