Table of Contents

Struct McpProgressToken

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

Represents a progress token used to track long-running MCP operations. Progress tokens can be either string or integer values per the MCP specification.

public readonly struct McpProgressToken : IEquatable<McpProgressToken>
Implements
Inherited Members

Constructors

McpProgressToken(long)

Creates a progress token from an integer value.

McpProgressToken(string)

Creates a progress token from a string value.

Properties

HasValue

Gets whether this token has a value.

IsInteger

Gets whether this token is an integer type.

Methods

Equals(McpProgressToken)
Equals(object)
GetHashCode()
NewToken()

Generates a new unique progress token.

ToJsonValue()

Gets the token value as an object suitable for JSON serialization.

ToString()

Returns the string representation of this token.

Operators

operator ==(McpProgressToken, McpProgressToken)

Equality operator.

implicit operator McpProgressToken(long)

Implicit conversion from long.

implicit operator McpProgressToken(string)

Implicit conversion from string.

operator !=(McpProgressToken, McpProgressToken)

Inequality operator.