Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Reserve an extension member on tools and results, like MCP's `_meta`

未关闭
#354 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
api

调研方向

Start by reading the ModelContextTool and RegisteredTool definitions in the WebMCP specification, then review the linked discussions #9, #41, #73, #255, #271, and #282 for related decisions. The issue proposes a new extension point but leaves its name, size limits, and filtering behavior open; done would require resolving those design questions and updating the spec.

由索引模型根据 Issue 内容生成。

描述

Summary

MCP lets tools, results and requests carry extra data in a _meta member. Specs and products built on top of MCP have used that to try ideas without waiting for the core spec: links from a tool to a UI resource, tool visibility, short status strings while a tool runs, and vendor extensions. WebMCP's ModelContextTool and ToolAnnotations are fixed sets of members, so an experiment has nowhere to go except new annotations in the core spec.

Why it is useful

  • WebMCP is young and is still being shaped by implementers in the origin trial. Experiments that need a field (a display string for a running tool, a pointer to a longer description, a grouping hint such as #255 or #271) currently need a spec change first, or live in the description text where agents may read them as instructions.
  • #41 mentions deferring annotations and _meta on image results, so the question has come up already.
  • When an experiment works, it can be promoted to a real member with real semantics. MCP has done this repeatedly.

Proposal

A reserved, optional member (name up for discussion) on ModelContextTool and RegisteredTool, and on results if results become typed (#9, #41, #282):

  • user agents ignore it;
  • keys should be prefixed (reverse-DNS or a short vendor name) to avoid collisions, as MCP recommends for _meta;
  • the data is supplied by the page, so agents should treat it as untrusted, and should not show it to a model unless they choose to. It is not a place for instructions;
  • it is carried to extensions and agents like the rest of the descriptor.

What I'm not proposing

No new behaviour and no new capabilities. Only a place for data that the platform does not interpret.

Open questions

  • Whether size limits should apply (see #73 on input lengths).
  • Whether exposedTo filtering applies to the whole descriptor, which I would assume.
主要语言
Bikeshed
星标
4.7k
派生
328
平均合并
1 天 21 小时
30 天内合并 PR
15

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

webmachinelearning/webmcp 的其他 Issue

查看 webmachinelearning/webmcp 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

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