Table of Contents

Method ReadResourceAsync

Namespace
LMKit.Mcp.Server
Assembly
LM-Kit.NET.dll

ReadResourceAsync(string, McpRequestContext, CancellationToken)

Reads a resource by URI.

Task<McpResourceContent> ReadResourceAsync(string uri, McpRequestContext context, CancellationToken cancellationToken = default)

Parameters

uri string

The URI to read.

context McpRequestContext

Session and caller identity, used to authorize the read.

cancellationToken CancellationToken

A token to observe while reading.

Returns

Task<McpResourceContent>

The contents, or null when this provider does not own the URI, which lets the server try the next registered provider.

Share