Add ModelContextProtocol.Core package (#428)

This commit is contained in:
Stephen Halter 2025-06-02 15:16:45 -07:00 • committed by GitHub
commit 703b0fe50b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Provides a base class for all request parameters.
/// </summary>
/// <remarks>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </remarks>
public abstract class RequestParams
{
/// <summary>
/// Gets or sets metadata related to the request that provides additional protocol-level information.
/// </summary>
/// <remarks>
/// This can include progress tracking tokens and other protocol-specific properties
/// that are not part of the primary request parameters.
/// </remarks>
[JsonPropertyName("_meta")]
public RequestParamsMetadata? Meta { get; init; }
}