Update doc in tools/trigger-long-running-operation.ts
This commit is contained in:
parent
3f5e5cfb81
commit
00b8c539f8
1 changed files with 0 additions and 3 deletions
|
|
@ -26,14 +26,11 @@ const config = {
|
||||||
* long-running operation defined by a specific duration and number of steps. The progress
|
* long-running operation defined by a specific duration and number of steps. The progress
|
||||||
* of the operation is reported back to the client through notifications.
|
* of the operation is reported back to the client through notifications.
|
||||||
*
|
*
|
||||||
* The registered tool processes the operation in steps, with each step having equal duration.
|
|
||||||
*
|
|
||||||
* Progress notifications are sent back to the client at each step, if a `progressToken`
|
* Progress notifications are sent back to the client at each step, if a `progressToken`
|
||||||
* is provided in the metadata. At the end of the operation, the tool returns a message
|
* is provided in the metadata. At the end of the operation, the tool returns a message
|
||||||
* indicating the completion of the operation, including the total duration and steps.
|
* indicating the completion of the operation, including the total duration and steps.
|
||||||
*
|
*
|
||||||
* @param {McpServer} server - The server instance where the tool should be registered.
|
* @param {McpServer} server - The server instance where the tool should be registered.
|
||||||
* The server is responsible for receiving and handling requests, as well as sending progress notifications.
|
|
||||||
*/
|
*/
|
||||||
export const registerTriggerLongRunningOperationTool = (server: McpServer) => {
|
export const registerTriggerLongRunningOperationTool = (server: McpServer) => {
|
||||||
server.registerTool(
|
server.registerTool(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue