Skip to content

fix(mcp): pass meta when listing tools#861

Open
tangchaojun-bytedance wants to merge 4 commits into
cloudwego:mainfrom
tangchaojun-bytedance:fix/mcp-gettools-meta
Open

fix(mcp): pass meta when listing tools#861
tangchaojun-bytedance wants to merge 4 commits into
cloudwego:mainfrom
tangchaojun-bytedance:fix/mcp-gettools-meta

Conversation

@tangchaojun-bytedance

@tangchaojun-bytedance tangchaojun-bytedance commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

Fixes #747

(optional) The PR that updates user documentation:

@tangchaojun-bytedance

Copy link
Copy Markdown
Contributor Author

mcp的listtools支持传递meta参数。
mcp-go支持meta需要升级go到1.25.6,但是在CI升级go版本时时can't find covdata,这是go的问题,https://github.com/golang/go/issues/75031#issuecomment-3195256688。可以将go升级到1.25.10/test文件修改go版本为1.25

@tangchaojun-bytedance

Copy link
Copy Markdown
Contributor Author

给 MCP server 判断请求背景用的,比如:

这是哪个租户的请求
这是哪个 app / org / session
trace 链路信息是什么
是否需要进度通知
之前 eino-ext 只在真正调用工具时传 Meta:tools/call 会带 Meta
但 GetTools 会先调用:tools/list 获取工具列表
以前这个 tools/list 没带 Meta。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

期望mcp.GetTools支持_meta参数

1 participant