Agent Context Protocol Upgrade: Skills, Background Tasks, and Elicitation in Practice
This article explains the latest upgrades to the Model Context Protocol (MCP), focusing on the public beta of "skills over protocol," background tasks, and interactive elicitation. It covers how skills turn prompt techniques into reusable, versioned assets, how background tasks decouple long-running execution from the session lifecycle, and how elicitation adds a standardized human-in-the-loop confirmation step for sensitive actions. The article also outlines engineering best practices, a reference architecture, and common pitfalls to avoid when moving agents from demo-ready to production-ready.
1. Introduction: From “Holding a Conversation” to “Getting Work Done”
A provider of an AI coding tool and model services has announced several major upgrades to its Model Context Protocol (MCP). The core change is the public beta of “skills over protocol,” alongside the general availability of background tasks and interactive elicitation, with file upload support coming soon.
The essence of this shift is not adding a few new endpoints. It moves agent-to-external-system integration from “assembling context on the fly for each conversation” to an engineering paradigm built on skills as the unit, tasks as the execution vehicle, and confirmation steps as the safety gate.
For developers and enterprise users, this means three things:
- Domain expertise can be captured as reusable, versionable skill assets.
- Long-running work is no longer bound to the session lifecycle.
- Actions involving permissions, data, and compliance now have a standardized “ask first, then act” channel.
The sections below cover the technical principles, design considerations, and implementation practices.
2. Skill-Based Invocation: Turning Prompt Techniques into Reusable Assets
2.1 What Is a Skill
In the agent context, a skill is a structured capability package built for a specific task. It typically includes a description of when it applies, input and output contracts, the tools or data sources it depends on, and its execution steps and constraints. It differs from a one-off prompt template and from a plain tool function: it fixes not only what to do and how, but also when to use it and to what extent.
The core value of skills lies in three kinds of reuse:
- Knowledge reuse: best practices live in the skill rather than scattered across conversations.
- Process reuse: multi-step operations are standardized.
- Governance reuse: permissions, auditing, and rate-limiting policies can be attached uniformly at the skill layer.
2.2 How Skills Relate to the Protocol: Skills over MCP
“Skills over protocol” means the upper-layer application first declares which skills it needs, and the protocol layer then handles discovery, routing, and invocation of the underlying resources. The benefit is decoupling: the business side only cares about “I want a code review” or “I want to generate test cases,” without needing to know whether the backend is a file system, a database, or a cloud service API.
A conceptual skill declaration can look like the structure below (illustrative only, not a concrete interface):
{"skill": "code_review","when_to_use": "When the user submits changes and requests a quality assessment","inputs": ["diff", "repo_context"],"steps": ["parse_diff", "check_style", "check_security", "summarize"],"constraints": {"read_only": true,"max_files": 200}}
2.3 Engineering Considerations
- Granularity: skills that are too large are hard to reuse; skills that are too small make orchestration complex. Use “one verifiable business goal” as the boundary.
- Idempotency and read-only first: default to read-only, and split write operations into separate skills with confirmation.
- Versioning and canary release: skill declarations should be version-controlled and support canary rollout and rollback.
- Observability: every skill invocation should produce structured logs capturing input summaries, duration, results, and failure reasons.
3. Background Tasks: Freeing Long-Running Work from Session Blocking
3.1 The Problem
Traditional conversational invocation is synchronous: the request is sent and the client waits for a response. When a task takes a long time (a full code scan, batch data validation, cross-system inspection), this leads to timeouts, dropped connections, and context bloat. The background task mechanism separates “submit” from “fetch results.” The task is queued and executed on the server, and the client polls by identifier or subscribes to status changes.
3.2 Typical Lifecycle
- Submit: send the skill identifier, input parameters, and constraints; receive a task identifier.
- Schedule: enter the queue and get assigned for execution based on priority and resource quota.
- Execute: run in stages, continuously writing progress and intermediate artifacts.
- Complete: produce structured results and artifact references (such as report files in object storage).
- Clean up: archive or delete intermediate data according to the retention policy.
3.3 Design Recommendations
- Make the state machine explicit: at minimum distinguish pending, running, succeeded, failed, and canceled; failures should carry a retryable flag.
- Separate timeout from retry: distinguish “task timeout” from “single-step retry” to avoid duplicate side effects.
- Externalize artifacts: do not push large results back into the session; pass them by reference, using object storage and logging services for auditing.
- Concurrency and quota: set per-tenant concurrency limits to prevent a single task from consuming all resources.
submit -> task_idpoll -> status: queued | running | succeeded | failedfetch artifact -> artifact_ref
4. Interactive Elicitation: Turning Uncertainty into Controlled Human Confirmation
4.1 Why Elicitation Is Needed
In real business scenarios, agents often face insufficient information or sensitive actions: missing required parameters, needing to choose an execution scope, or performing writes and external publishing. Interactive elicitation provides a standardized mechanism for asking questions and filling in answers, letting the agent pause at key points and request human input rather than continuing on guesses.
4.2 Common Patterns
- Parameter completion: when a required field is missing, issue a structured question with a limited set of options and format validation.
- Risk confirmation: before writes, deletions, or external sends, show the impact and require explicit confirmation.
- Strategy selection: let the user choose among execution paths, such as “scan only” or “scan and fix.”
- Timeout policy: if there is no response for a long time, take the most conservative action and record the reason.
4.3 Security Boundaries
Elicitation content should avoid requesting sensitive information unrelated to the task; confirmation records should be traceable; and high-risk actions should adhere to least privilege and, where enterprise processes allow, dual-person review.
5. Reference Architecture
A practical combination is: an access layer handles sessions and identity, a skill layer handles capability declaration and orchestration, a task layer handles asynchronous execution and artifact management, and a confirmation layer handles human interaction at key points. The underlying runtime and governance are carried by common cloud capabilities such as object storage, message queues, container platforms, logging services, and monitoring and alerting.
User / System|Access and session|Skill orchestration (read-only first / writes split out)| \Background task queue Interactive elicitation| |Artifact storage Human confirmation|Logging and monitoring alerts
6. Common Pitfalls and How to Avoid Them
- Pitfall 1: cramming all logic into one skill. The result is poor reuse and hard testing; split by business goal.
- Pitfall 2: background tasks without idempotency. Retries cause duplicate writes; use unique keys and state checks.
- Pitfall 3: elicitation becomes arbitrary questioning. It should be templated, minimal, and bound to the permission model.
- Pitfall 4: lack of observability. Without structured logs and metrics, diagnosing problems becomes extremely costly.
7. Conclusion
Making the protocol layer skill-based, task-based, and confirmation-based is essentially about moving agents from “usable in a demo” to “usable in production.” The recommendation for developers is to first capture domain knowledge as small, clear skills, then use background tasks to handle long-running execution, and finally use interactive elicitation to guard risk points, closing the loop on storage, queues, logging, and monitoring with common cloud capabilities. If an enterprise wants to build similar capabilities in its own environment, it can do so on top of common capabilities such as object storage, message queues, container platforms, and monitoring and alerting from Baidu AI Cloud, keeping the architecture neutral and controllable.
