Sisk

Class

McpToolContext

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

Provides context for the execution of an MCP tool.

C#
public sealed class McpToolContext

Inheritance #

object ← McpToolContext

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
McpToolContext()

Properties #

NameDescription
ArgumentsGets the arguments provided for the tool execution as a JSON object.
CancellationGets a token to observe for cancellation requests.
MetadataGets any additional metadata associated with the tool execution.
RequestGets the incoming HTTP request that triggered the tool execution.
ServerGets the MCP server instance associated with the current context.
ToolNameGets the name of the tool being executed.

Type to search the documentation and the API reference.