ModelEngine-Group / ModelEngine-Group/nexent

[Request] MCP tool support info tracing

Open
#3,043 0 comments 0 reactions 1 assignee View on GitHub

@SimengBian is already working on this.

Since May 27, 2026.

Low
Dominant language
Python
Stars
5.9k
Forks
731
Avg merge
19h 34m
Merged PRs (30d)
172

Description

Feature Description

MCP检索工具支持信息溯源。
┌─────────────────────────────────────────────────────────────────────────┐
│ 阶段 1: MCP 服务添加 │
└─────────────────────────────────────────────────────────────────────────┘
用户在前端添加 MCP 服务

├── 检索开关 OFF ──────────────────────────┐
│ │
└── 检索开关 ON ──► 发送测试检索请求 ──► MCP 服务

┌────────┴────────┐
│ │
返回结果 返回错误
│ │
▼ ▼
┌───────────┐ ┌───────────┐
│ 格式验证通过 │ │ 格式验证失败 │
│ │ │ │
│ 分配toolsign │ │ 提示错误 │
│ 存入 DB │ │ 不允许添加│
└───────────┘ └───────────┘
┌─────────────────────────────────────────────────────────────────────────┐
│ 阶段 2: Agent 运行 │
└─────────────────────────────────────────────────────────────────────────┘
Agent 调用 MCP 知识检索工具


┌─────────────────────────────┐
│ MCP 适配器 │
│ │
│ 1. 调用原始工具获取结果 │
│ 2. 解析结果 │
│ 3. 分配 cite_index (自增) │
│ 4. 标准化格式 │
│ 5. 发送 SEARCH_CONTENT │
│ (observer) │
│ 6. 返回给 LLM: │
│ [{"title": "...", │
│ "text": "...", │
│ "index": "l1"}] │
└─────────────────────────────┘


┌─────────────────────────────┐
│ LLM 生成回答 │
│ │
│ "根据文档 [[l1]] 的信息..." │
└─────────────────────────────┘


┌─────────────────────────────┐
│ 前端渲染 │
│ │
│ 解析 [[l1]] │
│ 匹配 searchResults │
│ 显示 CitationBadge + Tooltip │
└─────────────────────────────┘

Proposed Solution

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.