MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / SetProgressToken

Method SetProgressToken

mcp/shared.go:549–549  ·  view source on GitHub ↗

SetProgressToken sets the given progress token into the params' Meta field. It panics if its argument is not an int or a string.

(any)

Source from the content-addressed store, hash-verified

547 // SetProgressToken sets the given progress token into the params' Meta field.
548 // It panics if its argument is not an int or a string.
549 SetProgressToken(any)
550}
551
552// Result is a result of an MCP call.

Callers 1

addProgressTokenFunction · 0.65

Implementers 15

CallToolParamsmcp/protocol.go
CallToolParamsRawmcp/protocol.go
CancelledParamsmcp/protocol.go
CreateMessageParamsmcp/protocol.go
GetPromptParamsmcp/protocol.go
InitializeParamsmcp/protocol.go
InitializedParamsmcp/protocol.go
ListPromptsParamsmcp/protocol.go
ListResourcesParamsmcp/protocol.go
ListRootsParamsmcp/protocol.go

Calls

no outgoing calls

Tested by

no test coverage detected