Package dev.tachyonmcp.api.server.domain
Interface ProgressToken
- All Known Implementing Classes:
ProgressToken.NumericValue,ProgressToken.StringValue
An MCP progress token: an opaque value the client attaches to a request via
_meta.progressToken and the server echoes back on notifications/progress. Per
the MCP spec, a progress token is a bare JSON string or number — never an object or array.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA progress token carrying a numeric value.static final recordA progress token carrying a string value. -
Method Summary
Static Methods
-
Method Details
-
of
Wraps a raw value as aProgressToken.- Parameters:
value- aCharSequenceorNumber- Returns:
- the wrapped token
- Throws:
IllegalArgumentException- ifvalueis neither aCharSequencenor aNumber
-