Adding a base class for request params that exposes the progressToken (#99)
* Adding a base class for request params that exposes the progressToken This aligns more with the type structure see in the other SDK's (eg: https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/types.py#L41) while also ensuring they are exposing the JSONRPCRequest (https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json#L771-L806) data. Storing progressToken as an object as it could be an int or string (per https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json#L1268-L1274). Fixes #67 * Using usings * Apply suggestions from code review --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
a9175f0917
commit
6fa1443a6c
1 changed files with 40 additions and 9 deletions
|
|
@ -4,7 +4,7 @@
|
|||
/// Sent from the client to the server, to read a specific resource URI.
|
||||
/// <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json">See the schema for details</see>
|
||||
/// </summary>
|
||||
public class ReadResourceRequestParams
|
||||
public class ReadResourceRequestParams : RequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue