apexive / apexive/odoo-llm

[llm_mcp_server] Rejects MCP protocol version 2025-11-25 — server only supports 2025-06-18

未关闭
#226 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
219
派生
159
PR 合并指标
30 天内没有已合并 PR

描述

### Description

MCP clients using the latest `mcp` Python SDK (which sets `LATEST_PROTOCOL_VERSION = "2025-11-25"`) are rejected with HTTP 400:

```
MCPProtocolError: Unsupported protocol version: 2025-11-25. Supported versions: 2025-06-18
```

### Root Cause

The default config record in [data/llm_mcp_server_config.xml](cci:7://file:///opt/app/addons_llm/llm_mcp_server/data/llm_mcp_server_config.xml:0:0-0:0) hardcodes `latest_protocol_version` to `2025-06-18` and `supported_protocol_versions` to `None`. The installed `mcp` library already defines `LATEST_PROTOCOL_VERSION = "2025-11-25"`, so any client using the SDK default is rejected.

### Steps to Reproduce

1. Install `llm_mcp_server` with `mcp` Python package >= 1.8 (which uses protocol `2025-11-25`)
2. Connect any MCP client (Claude Desktop, Cursor, etc.)
3. Client sends `Mcp-Protocol-Version: 2025-11-25` header
4. Server responds with HTTP 400

### Proposed Fix

In [data/llm_mcp_server_config.xml](cci:7://file:///opt/app/addons_llm/llm_mcp_server/data/llm_mcp_server_config.xml:0:0-0:0):

```xml
2025-11-25

```

Also update [__manifest__.py](cci:7://file:///opt/app/addons_llm/llm_mcp_server/__manifest__.py:0:0-0:0) description to reference `2025-11-25`.

> **Note:** After applying the fix, the module must be updated (`-u llm_mcp_server`) for the XML data to take effect in the database.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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