MCP 2026-07-28 Specification Reference: Stateless HTTP, Tasks, Events, Apps & Elicitation
Normative engineering guide to the fifth Model Context Protocol release: stateless HTTP request/response, OAuth 2.0/OIDC auth hardening, SEP-2663 Tasks, SEP-3415 Events, MCP Apps, and Elicitation rules.
- 01MCP 2026-07-28 replaces stateful bidirectional session affinity with a stateless HTTP request/response core, production OAuth 2.0/OIDC alignment (Entra, Okta), and private MCP tunnels.
- 02MCP Tasks (io.modelcontextprotocol/tasks, SEP-2663) enforces per-request
_metacapability gating; protocol-level tool errors (isError: true) MUST finish incompleted, neverfailed. - 03MCP Events (io.modelcontextprotocol/events, SEP-3415 Beta) introduces parameterized subscriptions over
events/poll,events/stream, andwhsec_-signedevents/subscribe; receiving an event never grants authority to act. - 04MCP Apps (
ui://,text/html;profile=mcp-app) mandates cross-origin sandboxed iframes with restrictivedefault-src 'none'CSP, while Elicitation strictly forbids requesting passwords or tokens in form mode.
1. Stateless HTTP Core, Enterprise OAuth 2.0/OIDC & Private MCP Tunnels
The 2026-07-28 revision—the fifth published specification of the Model Context Protocol—eliminates the operational bottlenecks that previously complicated large-scale enterprise rollouts: sticky stateful sessions, monolithic protocol upgrades, and bespoke identity workarounds.
By moving from a stateful bidirectional transport to a stateless request/response HTTP workload, MCP servers deploy cleanly on serverless and edge runtimes without session-affinity routing. Server-initiated mid-call prompts are replaced on 2026-07-28 connections by an InputRequiredResult returned directly inside the call response.
- Production OAuth 2.0 & OIDC Alignment: Native alignment with Microsoft Entra ID and Okta enables zero-touch org-wide provisioning where administrators authorize a connector once and employees inherit access via IdP groups.
- Versioned Extensions Framework: Capabilities such as interactive UIs (
io.modelcontextprotocol/ui), durable jobs (io.modelcontextprotocol/tasks), and upstream triggers (io.modelcontextprotocol/events) evolve independently without breaking core clients. - Private MCP Tunnels & OpenTelemetry Spans: Internal MCP servers behind corporate firewalls connect without opening inbound ports, propagating
W3C traceparentcontext across tool invocations for SIEM and audit pipelines.
2. Durable Async Execution (MCP Tasks) vs. Unattended Triggers (MCP Events)
Enterprise ERP reconciliations, multi-plant MRP runs, and statutory XML validations routinely exceed standard HTTP timeouts. MCP splits asynchronous work cleanly into two extensions: Tasks (SEP-2663) for long-running operations initiated by the caller, and Events (SEP-3415 Beta) for upstream state changes when no user is present.
- Per-Request Opt-In & Tenant Isolation: Despite overview summaries saying clients "opt in once," the normative Tasks spec forbids returning
CreateTaskResultunless the capability is present on that specific request, and omitstasks/listso callers cannot enumerate another user's tasks. - Webhook Hardening in MCP Events:
events/subscriberequires an authenticated principal,httpscallbacks without HTTP redirects,whsec_base64 secrets (24–64 random bytes), payloads under256 KiB, and SSRF destination IP checks. - Untrusted Event Payloads: Upstream event payloads can carry indirect prompt injections; servers should emit minimal triage identifiers and require normal RBAC-checked MCP tool calls for any follow-up action.
MCP Tasks (tools/call -> CreateTaskResult):
Per-request gate: client MUST pass io.modelcontextprotocol/tasks in request _meta
States: working | input_required | completed | failed | cancelled (cooperative)
Spec catch: tool execution errors (isError: true) MUST return status "completed"
Streamable HTTP routing: Mcp-Name: <taskId> | Missing capability error: -32021
MCP Events (io.modelcontextprotocol/events):
Discovery: events/list -> { name, inputSchema, payloadSchema, delivery[] }
Delivery: events/poll | events/stream (heartbeatMs) | events/subscribe (whsec_ HMAC)
Occurrence: { eventId, name, timestamp, data, cursor } -> deduplicate by eventId3. MCP Apps Sandboxed Views & Elicitation Credential Rules
MCP Apps (io.modelcontextprotocol/ui) links tools via _meta.ui.resourceUri to ui:// HTML resources served as text/html;profile=mcp-app. Host and view communicate over postMessage using 15 ui/* JSON-RPC methods, passing structuredContent to the UI without polluting the LLM's token context.
MCP Elicitation (elicitation: {form: {}, url: {}}) lets a server pause mid-call to ask a human for missing parameters—a flow with strict normative security boundaries that implementers frequently misread.
- Mandatory Cross-Origin Sandbox & Restrictive CSP: Hosts MUST isolate Views in a distinct origin with
default-src 'none'whenever_meta.ui.cspis omitted, and MUST reject apptools/callrequests unless the target tool'svisibilityincludes"app". - Form-Mode Secret Prohibition: Servers MUST NOT request passwords, API keys, access tokens, or payment details via form-mode elicitation; sensitive flows MUST use URL mode, and servers MUST NOT use URL mode to authenticate users to themselves.
- Headless Cancellation Discipline: Non-interactive and background agent runs automatically cancel tasks that emit
elicitation/create, so enterprise MCP servers must treat cancellation andDeclinevs.Esc(cancel) as first-class state transitions.
MCP 2026-07-28 standardizes transport, identity federation, and async lifecycles, but by design cannot enforce domain invariants. Pair stateless MCP servers with an enterprise ontology to govern row-level permissions, canonical joins, and human write gates.
Glossary Concepts Referenced in This Guide
Agent = Model + Harness) responsible for tool-calling loops, context compaction, retries, sandboxing, and execution traces.UPDATE/INSERT statements on ERP/CRM databases, requiring typed action proposals validated against preconditions and approved by a named human role.Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[MCP 2026-07-28 Specification Reference: Stateless HTTP, Tasks, Events, Apps & Elicitation — Ontoloji.org](https://ontoloji.org/en/guides/mcp-2026-07-28-stateless-http-tasks-events-apps-and-elicitation)