Files
tmp/feat.md
T
2026-08-05 17:26:15 +08:00

66 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 任务目标
分析一下"RemoteMcpToolsServiceImpl.java"的"getMisMcpToolMetadata"方法,为什么返回的是一个Empty List。调用的入口是"MisMcpToolMetadataCtl.java"的"doGetMisMcpToolMetadata"方法,传入的mcpServerIds是包含一个数值为2084832591415877633的集合。我在数据库执行SQL:
```sql
select * from mcp_serve where mcp_server_uuid = 2084832591415877633;
```
得到如下结果:
```json
[
{
"mcp_server_uuid": 2084832591415877633,
"mcp_server_source_uuid": 2011699902312255490,
"name": "getappliedlist-mingyan-1785897794303",
"serve_aliases": "GetAppliedList-Mingyan",
"description": "查询GetAppliedList的数据",
"service_picture": 0,
"mcp_service_type": 3,
"workflow": 1,
"sort": null,
"create_by": 7,
"create_time": "2026-08-05 10:43:19",
"create_dept": 1889219366819864580,
"update_time": "2026-08-05 14:04:48",
"update_by": 7,
"del_flag": 0,
"auth_name": "",
"auth": "",
"auth_type": 0,
"private_flags": 0,
"address": null,
"mcp_state": 2,
"mcp_state_reason": null,
"environment": 1,
"mcp_file": null,
"mcp_param": null,
"usage_type": 7
}
]
```
继续执行SQL
```sql
select * from mcp_tools where mcp_server_uuid = 2084832591415877633;
```
得到如下结果:
```sql
[
{
"tools_uuid": 2084832573384683521,
"mcp_server_uuid": 2084832591415877633,
"tools_name": "GetAppliedList-Mingyan",
"tools_image": 0,
"tools_state": 2,
"tools_llm_description": "查询GetAppliedList的数据",
"tools_state_reason": null,
"mcp_access_mode": 1,
"sort": null,
"create_by": 7,
"create_time": "2026-08-05 10:43:14",
"create_dept": 1889219366819864580,
"update_time": "2026-08-05 14:04:53",
"update_by": 7,
"del_flag": 0
}
]
```
但是我发现doGetMisMcpToolMetadata返回的是1个空的集合,这是为什么?