') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); [SEP-2663] refactor!: remove 2025-11 experimental tasks by felixweinberger · Pull Request #2128 · modelcontextprotocol/typescript-sdk · GitHub
Skip to content

[SEP-2663] refactor!: remove 2025-11 experimental tasks - #2128

Merged
felixweinberger merged 4 commits into
mainfrom
fweinberger/v2-tasks-delete
Jun 2, 2026
Merged

[SEP-2663] refactor!: remove 2025-11 experimental tasks#2128
felixweinberger merged 4 commits into
mainfrom
fweinberger/v2-tasks-delete

Conversation

@felixweinberger

@felixweinbergerfelixweinberger commented May 20, 2026

Copy link
Copy Markdown
Contributor

🗺️ Milestone tracker · standalone prerequisite — unblocks the dispatch-core extraction (M5). The PR-stack table that used to live here described a superseded prototype stack (#2129#2134); this PR now stands alone.

Removes the 2025-11 experimental tasks implementation per SEP-2663 (tasks moved to Extensions Track).

Motivation and Context

SEP-2663 removes tasks from the core protocol. This deletes TaskManager, the task interception hooks in Protocol, and experimental.tasks.* accessors.

How Has This Been Tested?

Full suite green after rebase onto current main (test:all, check:all, lint:all; e2e matrix 0 unexpected failures). Mechanical deletion; grep audit confirms no task references remain in packages/** except microtask/platformBackgroundTask (unrelated JS terms) and taskSupport in ToolExecutionSchema (removed when the schema next syncs from spec).

Breaking Changes

Yes — experimental.tasks.* removed. See docs/migration.md.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added or updated documentation as needed

@changeset-bot

changeset-botBot commented May 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b1ada31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
NameType
@modelcontextprotocol/coreMajor
@modelcontextprotocol/serverMajor
@modelcontextprotocol/clientMajor
@modelcontextprotocol/expressMajor
@modelcontextprotocol/fastifyMajor
@modelcontextprotocol/honoMajor
@modelcontextprotocol/nodeMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-newBot commented May 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@2128

@modelcontextprotocol/codemod

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/codemod@2128

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@2128

@modelcontextprotocol/server-legacy

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server-legacy@2128

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@2128

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/fastify@2128

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@2128

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@2128

commit: b1ada31

@felixweinberger

Copy link
Copy Markdown
ContributorAuthor

@claude review

Comment threadexamples/server/src/ssePollingExample.ts
Comment threaddocs/migration.md Outdated
Comment threadpackages/core/src/types/schemas.ts Outdated
@felixweinberger

Copy link
Copy Markdown
ContributorAuthor

@claude review

@felixweinberger
felixweinbergerforce-pushed the fweinberger/v2-tasks-delete branch from 54bbe7b to c223feeCompareMay 21, 2026 10:42
Comment threaddocs/migration.md Outdated
Comment threaddocs/client.md
Comment threadexamples/client/src/simpleOAuthClient.ts
@felixweinberger
felixweinbergerforce-pushed the fweinberger/v2-tasks-delete branch from c223fee to 65f8c17CompareMay 21, 2026 11:13
@felixweinberger

Copy link
Copy Markdown
ContributorAuthor

@claude review

Comment threadtest/integration/test/client/client.test.ts
@felixweinberger
felixweinbergerforce-pushed the fweinberger/v2-tasks-delete branch from 65f8c17 to 96f39c0CompareMay 22, 2026 08:53
@felixweinberger
felixweinberger marked this pull request as ready for review May 22, 2026 11:22
@felixweinberger
felixweinberger requested a review from a team as a code ownerMay 22, 2026 11:22
@felixweinberger

Copy link
Copy Markdown
ContributorAuthor

@claude review

Comment threaddocs/migration.md
Comment threadpackages/core/test/spec.types.test.ts Outdated
Comment thread.changeset/sep-2663-tasks-removal.md
…ences)
Removes the 2025-11 experimental tasks side-channel through Protocol:
TaskManager, processInbound*/processOutbound*, task interception, the
experimental.tasks.* client/server accessors, and all task-augmented
request handling.
Also extends beyond the implementation deletion to scrub remaining
references in examples, docs, and comments. The only task-related
symbol remaining in packages/*.ts is `taskSupport` in ToolExecutionSchema,
kept solely to match spec.types.ts (which still declares it); both are
removed together in the next commit (spec regen).
CHANGELOG entries are preserved (historical record). Migration docs
retain a brief removal note. `microtask`/`platformBackgroundTask` are
JS/platform terminology, not MCP tasks.
Satisfies: SEP-2663 (core-removal half; tasks are now Extensions Track).
@felixweinberger
felixweinbergerforce-pushed the fweinberger/v2-tasks-delete branch from 96f39c0 to adb443eCompareJune 2, 2026 08:04
Comment threadpackages/core/src/shared/protocol.ts
Comment threadtest/e2e/requirements.ts Outdated
…geset, complete migration removal lists, fix stale counts, drop leftover task requirement entries
Comment thread.changeset/sep-2663-tasks-removal.md
KKonstantinov
KKonstantinov previously approved these changes Jun 2, 2026
…om spec-type entries, restore collateral cancellation test
@felixweinberger
felixweinberger enabled auto-merge (squash) June 2, 2026 12:03
@felixweinberger
felixweinberger merged commit c8d7401 into mainJun 2, 2026
17 checks passed
@felixweinberger
felixweinberger deleted the fweinberger/v2-tasks-delete branch June 2, 2026 12:04
@claudeclaudeBot mentioned this pull request Jun 2, 2026
9 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2-stateless2026-06 SDK: Protocol decomposition + SEP alignment (request-first / stateless)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@felixweinberger@KKonstantinov