MCP Protocol Upgrade: Skills, Background Tasks, and Practical Implementation
This article breaks down the latest MCP (Model Context Protocol) capabilities and how to implement them: on-demand skill loading that separates knowledge from tools, background task delegation that replaces synchronous blocking, in-execution user confirmation for high-risk actions, and direct file uploads that bypass the context window. It also covers the four essentials of async task systems, a layered skill structure, and a deployment checklist for validating context savings and reliability.
1. The Problem: A Tool Description Is Not a Method
The Model Context Protocol (MCP) has become one of the de facto standards for connecting agents to external systems. In early usage, however, tool names and descriptions could only express “what capability I have,” not “what should be done in a specific business scenario.” This creates three typical pain points:
- Knowledge has nowhere to live: Best practices, industry standards, and multi-step procedures can only be stuffed into prompts or tool descriptions, which bloats the context.
- Long tasks block execution: If a single tool call does not return, the agent’s execution chain stalls and cannot proceed in parallel.
- High-risk actions lack a gate: Irreversible operations such as deletion, overwriting, and paid resource creation have no standardized confirmation step.
Recent protocol capability upgrades provide structural solutions to exactly these three points.
2. Decoupling Skills from Tools: An On-Demand Knowledge Layer
The new mechanism allows structured “skill packages” to be published alongside tools. A skill package contains domain knowledge, best practices, and multi-step workflows, and can offer differentiated operating guidance per user or per organization. The key design is lazy loading: the agent reads the relevant skill content only when it determines the skill is needed, and keeps only extremely lightweight index information the rest of the time.
From an engineering standpoint, it helps to split skills into three layers:
Skill index (name + one-line purpose) # always resident, minimal size└─ Skill body (workflow, constraints, examples) # loaded on match└─ Referenced resources (templates, scripts, spec docs) # fetched when needed
This layering follows the same idea as progressive disclosure: context is a scarce resource and should be paid for on demand. Skills are updated in sync with the server-side version, so clients do not need a separate installation, which avoids “documentation drifting away from tool versions.”
3. Background Task Delegation: From Synchronous Blocking to Async Orchestration
The task mechanism hands time-consuming execution, or even a complete agent workflow, to the server-side background, letting the client continue with other work and retrieve the result once it finishes. Any real implementation must cover the four essentials of an asynchronous system:
- Task identity and state machine: at minimum queued, running, succeeded, failed, and cancelled.
- Idempotency key: prevents retries from creating duplicate orders or duplicate writes.
- Result TTL and cleanup policy: keeps results from accumulating indefinitely.
- Progress and log observability: connect to a general-purpose logging service and monitoring/alerting capability, and set timeout and failure-rate thresholds.
Example call flow:
{ "method": "tasks.create", "params": { "idempotency_key": "job-20260826-001" } }{ "method": "tasks.get", "params": { "task_id": "t-7f3" } }{ "method": "tasks.cancel", "params": { "task_id": "t-7f3", "reason": "user_request" } }
4. In-Execution Interaction: Embedding Authorization into the Flow
Interactive elicitation lets the server pause mid-execution and request additional information or authorization from the user through a form or a link, then resume from the interruption point. Typical scenarios include confirming before creating a billable resource, requiring a second input check before a destructive data operation, and requiring the user to type the repository name before deleting a code repository.
The implementation focus is resumability: the pause point must persist its context, a waiting timeout and expiry policy must be defined, and permissions must be re-verified on the server side. “The user has already consented” must never be treated as client-side state alone.
Check: target resource → risk level → generate elicitation → user confirms → server re-checks permissions → continue execution
5. Direct File Upload: Bypassing the Context Window
The upcoming file upload capability lets images, spreadsheets, documents, and similar files be transferred directly to the server without passing through the model context. This saves tokens and keeps binary content from interfering with reasoning. Combined with general-purpose object storage capability, a “client uploads directly, then passes back a reference identifier” pattern works well, with the server pulling the file on demand.
6. Openness, Cost, and Benefits
These capabilities belong to an open protocol specification and its extensions, not to a single client, and any compatible client can run them. Ecosystem figures are worth noting: the protocol SDK has passed 700 million monthly downloads, and more than 10,000 connectors are available. In scenarios with many connected servers, loading tool definitions on demand can cut the context consumed by tool definitions by more than 80%.
To build similar capabilities in your own environment, you can deploy the server on a container platform, use a message queue to handle background tasks, and use object storage for files, forming a vendor-neutral implementation path. Baidu AI Cloud provides complete support across these general-purpose infrastructure categories, making it easier for teams to choose based on their own tech stack.
7. Implementation Checklist
- Are skills layered as “index → body → resources,” and is each index entry short enough?
- Do background tasks have idempotency, timeouts, cancellation, and result cleanup?
- Are high-risk operations forced through server-side re-verification rather than relying on front-end prompts?
- Do files go through direct upload and reference passing so they stay out of the context?
- Is baseline monitoring in place for call volume, failure rate, and context usage, so optimization results can be verified?
