* The queue the call runs on. `'none'` tools run outside the runner. * `'page'` tools run on the queue of the page named by `rawArgs.pageId` * when page id routing applies; every other call runs on the context * queue.
(
context: McpContext,
rawArgs: Record<string, unknown>,
)
| 460 | * queue. |
| 461 | */ |
| 462 | #queueFor( |
| 463 | context: McpContext, |
| 464 | rawArgs: Record<string, unknown>, |
| 465 | ): TaskQueue | undefined { |
| 466 | const tool = this.#tool; |
| 467 | switch (tool.concurrency) { |
| 468 | case 'none': |
| 469 | return undefined; |
| 470 | case 'page': { |
| 471 | const pageId = routedPageId(tool, this.#config.resolved, rawArgs); |
| 472 | return pageId !== undefined |
| 473 | ? context.pageTaskQueue(pageId) |
| 474 | : context.taskQueue; |
| 475 | } |
| 476 | default: |
| 477 | return context.taskQueue; |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | /** |
| 482 | * Cancellation stops waiting for a result, but running work keeps its queue |
no test coverage detected