AI seeded comments from robch and then edited by stephentoub (#238)
* AI generated `///` comment updates * Fix compilation issues * Fix incorrect XML comment structure * Update all Client comments * Update all Configuration comments * Update all Messages comments * Update all Transport comments * Update all Types comments * Update all Server comments * Undo some commenting --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
07300389ee
commit
77871c5aac
1 changed files with 4017 additions and 1066 deletions
|
|
@ -1,8 +1,20 @@
|
|||
namespace ModelContextProtocol.Server;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ModelContextProtocol.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Used to indicate that a method should be considered an MCP prompt and describe it.
|
||||
/// Used to indicate that a method should be considered an <see cref="McpServerPrompt"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This attribute is applied to methods that should be exposed as prompts in the Model Context Protocol. When a class
|
||||
/// containing methods marked with this attribute is registered with <see cref="McpServerBuilderExtensions"/>,
|
||||
/// these methods become available as prompts that can be called by MCP clients.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// When methods are provided directly to <see cref="M:McpServerPrompt.Create"/>, the attribute is not required.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class McpServerPromptAttribute : Attribute
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue