Skip to content

MCP SDK version incompatibility with openclaw (protocol version conflict) #1049

@jinshijinri

Description

@jinshijinri

问题描述

TrendRadar MCP 4.0.2 与 openclaw 的 MCP 连接存在协议不兼容问题。

错误日志

WARNING:root:Failed to validate request: 24 validation errors for ClientRequest
PingRequest.method: Input should be 'ping' [type=literal_error, input_value='notifications/initialized'...]
InitializeRequest.method: Input should be 'initialize' [type=literal_error, input_value='notifications/initialized'...]

根本原因

  • TrendRadar MCP 使用 FastMCP 2.12.5, MCP SDK 1.16.0 (旧版)
  • openclaw 使用新版 MCP 协议,发送 notifications/initialized 等通知
  • 旧版 SDK 不认识这些新的 method 字段,导致所有请求验证失败

TrendRadar MCP 日志显示

  • Transport: Streamable-HTTP
  • FastMCP version: 2.12.5
  • MCP SDK version: 1.16.0

复现步骤

  1. 启动 TrendRadar MCP 容器 (wantcat/trendradar-mcp:latest)
  2. 配置 openclaw 连接到 http://nas-ip:3333/mcp
  3. openclaw 发送的请求被 TrendRadar MCP 拒绝

建议修复
升级 MCP SDK 到支持新版协议(2024-11-05)的版本,或添加协议版本协商逻辑。

环境信息

  • 容器镜像: wantcat/trendradar-mcp:latest (4.0.2)
  • openclaw 版本: 2026.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions