以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:
| 指令 | 指令说明 | 使用权限 |
|---|---|---|
| /check-issue | 触发defect-manager校验 | 不限 |
| /reason xxx | /reason +挂起或取消条件 | 不限 |
影响性分析说明:
缺陷严重等级:(Critical/High/Moderate/Low)
缺陷根因说明:
受影响版本排查(受影响/不受影响):
- openEuler-20.03-LTS-SP4:
- openEuler-22.03-LTS-SP3:
- openEuler-22.03-LTS-SP4:
- openEuler-24.03-LTS:
- openEuler-24.03-LTS-SP1:
- openEuler-24.03-LTS-SP2:
abi变化(是/否):
- openEuler-20.03-LTS-SP4:
- openEuler-22.03-LTS-SP3:
- openEuler-22.03-LTS-SP4:
- openEuler-24.03-LTS:
- openEuler-24.03-LTS-SP1:
- openEuler-24.03-LTS-SP2:
缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue


Welcome To openEuler Community
Hey @ga_beng_cui , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: A-Tune ,
and any of the maintainers: @Vchanger, @chendh1, @hubin1305, @znzju ,


疑似存在变更
from mcp.server import FastMCP 修改为 from fastmcp import FastMCP
安装 pip install fastmcp
以上猜测待实际环境验证


mcp最新版本(2.0.0)没有FastMCP 方法,已经重命名为MCPServer。
通过pip安装需要指定一下版本。
pip install mcp==1.29.0


mcp最新版本(2.0.0)没有FastMCP 方法,已经重命名为MCPServer。
通过pip安装需要指定一下版本。
pip install mcp==1.29.0
@zhuofeng6
请同步修改https://atomgit.com/openeuler/A-Tune/blob/euler-copilot-tune/README.md ,修改此文档的pr关联一下这个issue
安装1.29.0版本后,服务仍启动失败,需要再pip install tornado后,服务启动成功




@wayne1901 未对受影响版本排查/abi变化进行分析


readme.md已修改



@wayne1901 未对受影响版本排查/abi变化进行分析


【缺陷描述】:请补充详细的缺陷问题现象描述
tune-mcpserver服务启动失败,报错ImportError: cannot import name 'FastMCP' from 'mcp.server'
一、缺陷信息
copilot-tune-1.2.0-11.oe2609
【缺陷所属的os版本】
openEuler-26.09
【内核版本】
6.6.0-163.0.0.1.oe2609
【缺陷所属软件及版本号】
copilot-tune-1.2.0-11.oe2609
【环境信息】
软件信息
copilot-tune-1.2.0-11.oe2609.aarch64

【问题复现步骤】
【实际结果】
服务启动失败,日志报错", line 1204, in _gcd_import", line 1176, in _find_and_load", line 1147, in _find_and_load_unlocked", line 690, in _load_unlocked", line 940, in exec_module", line 241, in _call_with_frames_removed
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: Traceback (most recent call last):
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "/usr/local/bin/tune-mcpserver", line 33, in
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: sys.exit(load_entry_point('euler-copilot-tune==1.0', 'console_scripts', 'tune-mcpse>
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "/usr/local/bin/tune-mcpserver", line 25, in importlib_load_entry_point
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: return next(matches).load()
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: ^^^^^^^^^^^^^^^^^^^^
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "/usr/lib64/python3.11/importlib/metadata/init.py", line 202, in load
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: module = import_module(match.group('module'))
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "/usr/lib64/python3.11/importlib/init.py", line 126, in import_module
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: return _bootstrap._gcd_import(name[level:], package, level)
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: File "/usr/local/lib/python3.11/site-packages/src/start_mcpserver.py", line 1, in
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: from mcp.server import FastMCP
8月 18 11:28:09 openldap.client tune-mcpserver[1323855]: ImportError: cannot import name 'FastMCP' from 'mcp.server' (/usr/local/lib/python3.11/>
8月 18 11:28:09 openldap.client systemd[1]: tune-mcpserver.service: Main
【期望结果】
服务启动成功,日志无报错
【其他相关附件信息】
【缺陷详情及分析指导参考链接】
二、缺陷分析结构反馈
影响性分析说明:
缺陷严重等级:(Critical/High/Moderate/Low)
缺陷根因说明:
受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2