# MCP Tasks and Elicitations in Claude Code: Long-Running Tools That Can Ask You Things

DevFeed: [MCP Tasks and Elicitations in Claude Code: Long-Running Tools That Can Ask You Things](<https://devfeed.tech/articles/mcp-tasks-and-elicitations-in-claude-code-long-running-tools-that-can-ask-you-things-98554.md>)

Original publisher: [Read original article](<https://upstash.com/blog/claude-code-mcp-tasks>)

Author: Cahid Arda Oz

Published: 2026-10-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Upstash](<https://devfeed.tech/sources/upstash.md>)

Topics: [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [actions](<https://devfeed.tech/tags/actions.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-sdk](<https://devfeed.tech/tags/agent-sdk.md>), [agentkit](<https://devfeed.tech/tags/agentkit.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agntcon](<https://devfeed.tech/tags/agntcon.md>), [ai](<https://devfeed.tech/tags/ai.md>), [beta](<https://devfeed.tech/tags/beta.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cli](<https://devfeed.tech/tags/cli.md>), [client](<https://devfeed.tech/tags/client.md>), [clients](<https://devfeed.tech/tags/clients.md>), [complete](<https://devfeed.tech/tags/complete.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [desktop-app](<https://devfeed.tech/tags/desktop-app.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [qstash](<https://devfeed.tech/tags/qstash.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [tools](<https://devfeed.tech/tags/tools.md>)

## AI overview

MCP Tasks let supported clients return a task handle promptly, poll for completion, and optionally cancel; Elicitations let a server ask the user a structured question and continue after a response. The excerpt says Claude Code CLI supports both in interactive terminal sessions, Agent SDK sessions, and GitHub Actions, while subagent calls, one-shot `claude -p`, the VS Code extension, and desktop app do not use native Tasks; questions reach the user only in interactive terminal sessions. `@upstash/mcp-toolkit/tasks` can provide native Tasks to capable clients and task-status/cancel tools to others. For serverless use, Redis stores tasks across invocations and QStash dispatches execution with retries; longer work can use `WorkflowDispatcher`, which runs steps in separate invocations and can wait for an elicitation answer without occupying a function. The excerpt says `QStashDispatcher` runs a task in one invocation and cannot wait for an answer. In-memory tasks can disappear on restart or be unavailable across instances.

## Source excerpt

Articles and tutorials on serverless technologies from Upstash and community