Skip to content

[Bug] MCP tools fail with login fail even when API key is valid #22

@z0650115

Description

@z0650115

问题描述

使用 minimax-coding-plan-mcp 时,web_search 和 understand_image 工具返回认证错误,但 API Key 实际上是有效的。

环境信息

  • MCP Server: minimax-coding-plan-mcp
  • Client: OpenClaw (使用 mcporter 调用)
  • OS: macOS
  • uvx 路径: 已确认可用

复现步骤

  1. 配置 MCP server 使用 Token Plan API Key
  2. 设置 MINIMAX_API_HOST=https://api.minimaxi.com (中国版)
  3. 调用 web_search 或 understand_image 工具

错误信息

API Error: login fail: Please carry the API secret key in the Authorization field of the request header, please check your API key and API host.

额外发现

  • 直接用 curl 调用 MiniMax API 可以成功(用同一个 API Key)
  • MCP server 本身在线(mcporter list 显示 2 tools, healthy)
  • 问题是 MCP server 内部调用 API 时认证失败

关联 Issue

可能原因

  1. MCP server 内部调用 API 的方式与直接 API 调用不同
  2. Token Plan 的 API 可能需要特殊的认证头或端点
  3. 可能是 OpenClaw mcporter 与 minimax-coding-plan-mcp 之间的兼容性问题

注意:这是通过 OpenClaw 的 mcporter 工具调用的,不是直接通过 Claude Desktop 或 Cursor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions