Implement MCP 2026-07-28 (#2286)

Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Felix Weinberger 2026-06-26 14:01:10 +01:00 • committed by GitHub
commit 1823aae891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69131 additions and 9001 deletions

View file

@ -2,7 +2,7 @@ name: Conformance Tests
on:
push:
branches: [main]
branches: [main, v2-2026-07-28]
pull_request:
workflow_dispatch:
@ -30,6 +30,7 @@ jobs:
- run: pnpm install
- run: pnpm run build:all
- run: pnpm run test:conformance:client:all
- run: pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:client:2026
server-conformance:
runs-on: ubuntu-latest
@ -48,3 +49,5 @@ jobs:
- run: pnpm run build:all
- run: pnpm run test:conformance:server
- run: pnpm run test:conformance:server:draft
- run: pnpm run test:conformance:server:extensions
- run: pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:server:2026

47
.github/workflows/examples.yml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Examples
on:
push:
branches:
- main
- v2-2026-07-28
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Builds the workspace + examples and e2e-runs every examples/<story>/ pair
# over every transport it supports. Each client.ts is a self-verifying test
# (asserts and exits non-zero on any mismatch). This is part of the per-PR
# gate basket — a red examples run blocks merge.
examples:
name: examples (build + e2e)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
run_install: false
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install
# The workspace packages the examples import resolve to built dists
# (the gap that killed an earlier examples smoke suite).
- run: pnpm run build:all
- name: Run all example pairs (transport × era)
run: pnpm tsx scripts/examples/run-examples.ts

View file

@ -2,6 +2,7 @@ on:
push:
branches:
- main
- v2-2026-07-28
pull_request:
workflow_dispatch:

View file

@ -1,3 +1,14 @@
# Nightly refresh of the draft-tracking spec anchor (2026-07-28).
#
# Anchor lifecycle (see packages/core-internal/src/types/README.md for the full policy):
# - Draft anchors float: this job regenerates the draft-tracking anchor from the
# latest upstream draft schema and, on drift, opens a refresh PR for review.
# It only ever proposes — it never merges.
# - Released anchors are frozen: generation for released revisions is pinned in
# scripts/fetch-spec-types.ts (RELEASED_REVISION_PINS) and is not refreshed by
# this job. Repinning a released revision — including the freeze of a newly
# published revision, when its schema moves out of schema/draft/ — must land
# in the same commit that retargets this workflow.
name: Update Spec Types
on: