Clarify McpMetaAttribute documentation scope (#1242)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
Copilot 2026-02-03 15:51:32 -08:00 • committed by GitHub
commit cfa89a3907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,15 @@ namespace ModelContextProtocol.Server;
/// <remarks>
/// <para>
/// The metadata is used to populate the <see cref="Tool.Meta"/>, <see cref="Prompt.Meta"/>,
/// or <see cref="Resource.Meta"/> property of the corresponding primitive.
/// or <see cref="Resource.Meta"/> property of the corresponding primitive. This metadata is
/// included in the responses to listing operations (<c>tools/list</c>, <c>prompts/list</c>,
/// <c>resources/list</c>).
/// </para>
/// <para>
/// This metadata is <b>not</b> propagated to the results of invocation operations such as
/// <c>tools/call</c>, <c>prompts/get</c>, or <c>resources/read</c>. To include metadata in
/// those results, set the <c>Meta</c> property on the <see cref="CallToolResult"/>,
/// <see cref="GetPromptResult"/>, or <see cref="ReadResourceResult"/> directly in your method implementation.
/// </para>
/// <para>
/// This attribute can be applied multiple times to a method to specify multiple key/value pairs