alpacahq / alpacahq/alpaca-mcp-server

MCP Server Auth with live trading

未关闭
#16 5 条评论 0 个 reaction 已指派 1 人 已被 @idsts2670 认领 在 GitHub 查看
主要语言
Python
星标
961
派生
311
平均合并
2 天 13 小时
30 天内合并 PR
4

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。