Protocol/ReadResourceRequestParams.cs

csharp-sdk · src/ModelContextProtocol.Core/Protocol/ReadResourceRequestParams.cs · csharp · Apache-2.0
integration, Integration / API

Defines the parameters required to request a specific resource via a URI within the Model Context Protocol.

// Source: https://github.com/modelcontextprotocol/csharp-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;

namespace ModelContextProtocol.Protocol;

/// <summary>
/// Represents the parameters used with a <see cref="RequestMethods.ResourcesRead"/> request from a client to get a resource provided by a server.
/// </summary>
/// <remarks>
/// <para>
/// The server will respond with a <see cref="ReadResourceResult"/> containing the resulting resource data.
/// </para>
/// <para>
/// Alternatively, if the resource URI uses the <c>https://</c> scheme, clients may fetch the resource
/// directly from the web instead of using <see cref="RequestMethods.ResourcesRead"/>.
/// Serve

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key