Skip to content

Commit c799c85

Browse files
authored
Merge pull request #5592 from modelcontextprotocol/v2/chore/5572-release-v2.5.0
Release v2.5.0: merge v2/main into main
2 parents e1dc4b1 + 7f383a8 commit c799c85

97 files changed

Lines changed: 7995 additions & 971 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/local-dev/SKILL.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ streams: HTTP+SSE writes everything to stderr, while Streamable HTTP writes its
7979
request and session messages to stdout and its listening line (which names
8080
the bound `host:port`) and errors to stderr.
8181

82+
The other six servers serve Streamable HTTP too (#576), selected with a flag
83+
rather than an argument, on the same `PORT`, `HOST` and `/mcp` path:
84+
85+
```sh
86+
node src/memory/dist/index.js --transport streamable-http
87+
node src/filesystem/dist/index.js --transport streamable-http /tmp/scratch # directories required over HTTP
88+
(cd src/time && uv run mcp-server-time --transport streamable-http)
89+
```
90+
91+
Each one's endpoint is stateless for 2025-era clients (a fresh server per
92+
request; GET and DELETE answer 405), so nothing the server asks of the client
93+
mid-session (filesystem's Roots) reaches it over HTTP.
94+
8295
## Run the local package the way a user would
8396

8497
A user starts these servers with `npx` or `uvx`. Both accept a path in place of

‎.claude/skills/project-structure/SKILL.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ includes the tests) and `vitest.config.ts`.
2929
| Server | Layout | Where its features are registered |
3030
| --- | --- | --- |
3131
| `everything` | `index.ts` picks a transport from `argv`; `server/` holds the factory; `tools/`, `resources/`, `prompts/` hold one file per feature plus an `index.ts`; `transports/` holds one file per transport; `version.ts` reads the package version; `docs/` is shipped | Each feature file exports a `register…` function, wired into its area's `index.ts` (`registerTools`, `registerResources`, `registerPrompts`), which `server/index.ts` calls from `createServer()` |
32-
| `filesystem` | `index.ts` is the stdio entry point (argv → allowed directories, `main()`); `server.ts` exports `createServer(allowedDirectories)`; `lib.ts` holds the file operations and path validation, with the allow-list passed in rather than held globally; `path-utils.ts`, `path-validation.ts` and `roots-utils.ts` are focused helpers, and `pinned-directory.ts` runs the write operations inside their verified directory; `version.ts` reads the package version | Inline in `createServer()` in `server.ts`, with `server.registerTool(...)` |
33-
| `memory` | `index.ts` holds the `KnowledgeGraphManager`, `createServer(memoryFilePath)` and the stdio `main()`; `version.ts` reads the package version | Inline in `createServer()`; the resource and its subscription handlers are exported `register…` functions in the same file |
34-
| `sequentialthinking` | `index.ts` holds `createServer()` and the stdio `main()`; `lib.ts` holds `SequentialThinkingServer`, the logic; `version.ts` reads the package version | Inline in `createServer()` |
32+
| `filesystem` | `index.ts` is the entry point (argv → transport and allowed directories, `main()`); `http.ts` serves the factory over Streamable HTTP; `server.ts` exports `createServer(allowedDirectories)`; `lib.ts` holds the file operations and path validation, with the allow-list passed in rather than held globally; `path-utils.ts`, `path-validation.ts` and `roots-utils.ts` are focused helpers, and `pinned-directory.ts` runs the write operations inside their verified directory; `version.ts` reads the package version | Inline in `createServer()` in `server.ts`, with `server.registerTool(...)` |
33+
| `memory` | `index.ts` holds the `KnowledgeGraphManager`, `createServer(memoryFilePath)`, the stdio `main()` and `run()`, which picks the transport; `http.ts` serves the factory over Streamable HTTP; `version.ts` reads the package version | Inline in `createServer()`; the resource and its subscription handlers are exported `register…` functions in the same file |
34+
| `sequentialthinking` | `index.ts` holds `createServer()`, the stdio `main()` and `run()`, which picks the transport; `http.ts` serves the factory over Streamable HTTP; `lib.ts` holds `SequentialThinkingServer`, the logic; `version.ts` reads the package version | Inline in `createServer()` |
3535

3636
Three things about `everything` that the table cannot hold:
3737

@@ -69,6 +69,7 @@ src/<server>/
6969
├── src/mcp_server_<name>/
7070
│ ├── __init__.py main(): the command-line flags, then asyncio.run(serve(...))
7171
│ ├── __main__.py python -m mcp_server_<name>
72+
│ ├── transport.py --transport: stdio, or Streamable HTTP on $HOST:$PORT
7273
│ └── server.py everything else
7374
└── tests/ pytest suite, driving serve() in-process
7475
```

‎.claude/skills/testing/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ connection harness does (`__tests__/harness.ts` in `everything`,
4040

4141
| Server | How its tests reach the code |
4242
| --- | --- |
43-
| `everything`, `filesystem`, `memory`, `sequentialthinking` | An SDK `Client` connected to the server's `createServer()` over `InMemoryTransport`, in the vitest process, through the server's own harness, plus unit tests of helper modules such as `lib.ts`. `everything` drives its stdio, SSE and Streamable HTTP transports in-process too; the other three have one thin spawn smoke of the built `dist/index.js` |
43+
| `everything`, `filesystem`, `memory`, `sequentialthinking` | An SDK `Client` connected to the server's `createServer()` over `InMemoryTransport`, in the vitest process, through the server's own harness, plus unit tests of helper modules such as `lib.ts`. `everything` drives its stdio, SSE and Streamable HTTP transports in-process too; the other three drive their `http.ts` in-process over a free loopback port, and have one thin spawn smoke of the built `dist/index.js` |
4444
| `fetch`, `git`, `time` | A `ClientSession` linked in-process to the real `serve()` over in-memory streams (below), plus direct calls on the pure functions in `server.py` |
4545

4646
No TypeScript test uses an in-memory transport yet.

‎.github/workflows/everything-mcp-diff.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
# dispatches only a workflow whose file exists on the default branch (`main`),
5353
# and both version workflows dispatch this one by file name from `v2/main`, so
5454
# renaming it here would break their dispatch until the next milestone merge.
55+
# The rename is staged instead: `mcp-interface-diff.yml` lands on `main` first
56+
# as a dispatch-only placeholder (#5463), then #5527 moves this file's contents
57+
# there, switches the callers and deletes this file.
5558
#
5659
# See: https://github.com/modelcontextprotocol/inspector/issues/1034
5760
name: MCP Interface Diff
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Placeholder for the MCP interface diff's future file name (#5463, Step 1 of
2+
# a rename staged across a milestone merge).
3+
#
4+
# The interface diff lives in `everything-mcp-diff.yml`, a name left over from
5+
# when it diffed only the Everything server. GitHub dispatches a workflow only
6+
# when its file exists on the default branch (`main`), and both version
7+
# workflows (`version-packages.yml`, `prepare-python-release.yml`) dispatch
8+
# the diff by file name from `v2/main`. Renaming it in one step on `v2/main`
9+
# would break their dispatch until the next milestone merge. So the rename is
10+
# staged:
11+
#
12+
# 1. This file ships to `main` in a milestone merge. It is a placeholder, not
13+
# a copy of the diff: a dispatch resolves the file name on `main` but runs
14+
# the file as it is on the dispatched ref, so a placeholder makes the name
15+
# dispatchable as well as a copy would, without a second copy to keep in
16+
# step meanwhile. It has only a `workflow_dispatch` trigger, so it never
17+
# runs beside the real diff on a push or a pull request.
18+
# 2. After that merge, #5527 (Step 2) moves `everything-mcp-diff.yml`'s
19+
# contents here, switches the callers to this name, and deletes the old
20+
# file.
21+
#
22+
# Until then, nothing dispatches this file, and a manual dispatch only says
23+
# where the diff is.
24+
name: MCP Interface Diff (rename placeholder)
25+
26+
on:
27+
workflow_dispatch:
28+
29+
permissions:
30+
contents: read
31+
32+
jobs:
33+
placeholder:
34+
name: Point to the interface diff
35+
timeout-minutes: 5
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Say where the interface diff runs
39+
run: |
40+
echo "This file is a placeholder for a staged rename (#5463, #5527)."
41+
echo "The MCP interface diff runs from .github/workflows/everything-mcp-diff.yml:"
42+
echo " gh workflow run everything-mcp-diff.yml --ref <branch>"

‎AGENTS.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ servers/
6464
├── .github/workflows/ typescript.yml, python.yml (per-package CI), release.yml (publishes on a GitHub Release),
6565
│ version-packages.yml (the changesets PR), prepare-python-release.yml (the CalVer PR),
6666
│ everything-mcp-diff.yml (each changed server's interface diff on PRs),
67+
│ mcp-interface-diff.yml (a dispatch-only placeholder for that file's new name, #5463),
6768
│ main-source.yml (a PR into main must bring nothing that is not on v2/main),
6869
│ and the scheduled sweeps that file issues: dependency-refresh.yml, dependabot-alerts.yml, sdk-watch.yml
6970
├── .github/ISSUE_TEMPLATE/ Bug and feature issue forms; config.yml routes security and new servers away
@@ -100,7 +101,11 @@ opening paragraph instead, as this one does. A format with no comment syntax
100101

101102
Node **24** for the TypeScript servers: the development version and the oldest
102103
supported (`engines` is `>=24`), and CI validates each TypeScript server on 24
103-
and 26 in parallel legs. Python **>= 3.10** for the Python servers, at the version each server's `.python-version` pins. Python
104+
and 26 in parallel legs. Python **>= 3.10** for the Python servers, at the version each server's `.python-version` pins,
105+
except `fetch`, whose floor is **>= 3.11.5**: no `soupsieve` release patched
106+
against its open advisories supports an older Python (#5546). A server's
107+
floor is the `requires-python` in its `pyproject.toml`; raise one only when a
108+
dependency forces it, and record the exception here. Python
104109
dependencies are managed with **`uv`, never `pip`**.
105110

106111
```sh
@@ -688,8 +693,11 @@ look before retrying.
688693
2026-07-28 request lives under a handle the server mints. Ask a client for
689694
input (elicitation, sampling, roots) by returning `inputRequired(...)`,
690695
which the SDK's legacy shim also serves to 2025-era clients.
691-
- **Transports**: stdio is the default and every server supports it.
692-
`everything` also serves Streamable HTTP and HTTP+SSE. **HTTP+SSE is
696+
- **Transports**: stdio is the default and every server supports it. Every
697+
server also serves Streamable HTTP on `/mcp` at `HOST`:`PORT`
698+
(loopback:3001 by default), which `everything` selects with its
699+
`streamableHttp` argument and the others with `--transport
700+
streamable-http`; `everything` alone also serves HTTP+SSE. **HTTP+SSE is
693701
deprecated**: keep what exists working, and never make it the default or the
694702
recommended option in new code or docs.
695703
- **Tool annotations**: every tool you add or change sets `readOnlyHint`,

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ An MCP server talks to its client over a **transport**. The protocol defines two
135135
| **stdio** | The client launches the server as a subprocess and talks to it over the process's stdin and stdout. The server opens no port. | A `command` and `args` in the client's configuration, as in the examples above |
136136
| **Streamable HTTP** | The server runs on its own as an HTTP service, and can serve many clients | A URL, such as `http://localhost:3001/mcp` |
137137

138-
**Every server in this repository serves stdio, and only [Everything](src/everything) also serves Streamable HTTP** (its README shows how to start it that way, and covers its deprecated HTTP+SSE transport too). So when you run `uvx mcp-server-git` or `npx -y @modelcontextprotocol/server-memory` in a terminal, it opens no port, prints at most a one-line startup notice, and then appears to hang. That is expected: it is waiting for a client to send it messages on stdin. You do not normally start a stdio server yourself; your MCP client starts it from its configuration and stops it when it is done.
138+
**Every server in this repository serves stdio by default, and every one can also serve Streamable HTTP** on `http://127.0.0.1:3001/mcp` (set `PORT` and `HOST` to move it): [Everything](src/everything) with its `streamableHttp` argument (its README also covers its deprecated HTTP+SSE transport), and the others with `--transport streamable-http`, as each server's README shows. Started without one, a server uses stdio, so when you run `uvx mcp-server-git` or `npx -y @modelcontextprotocol/server-memory` in a terminal, it opens no port, prints at most a one-line startup notice, and then appears to hang. That is expected: it is waiting for a client to send it messages on stdin. You do not normally start a stdio server yourself; your MCP client starts it from its configuration and stops it when it is done.
139139

140140
To try a server without setting up a client, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). Given a stdio server's command, it launches the server for you and lets you browse and call its tools; given a URL, it connects to a running Streamable HTTP server:
141141

@@ -144,7 +144,7 @@ To try a server without setting up a client, use the [MCP Inspector](https://git
144144
npx @modelcontextprotocol/inspector uvx mcp-server-git
145145

146146
# A Streamable HTTP server: start it first, then connect to its URL
147-
npx @modelcontextprotocol/server-everything streamableHttp
147+
npx @modelcontextprotocol/server-everything streamableHttp # or: uvx mcp-server-time --transport streamable-http
148148
npx @modelcontextprotocol/inspector --transport http --server-url http://localhost:3001/mcp
149149
```
150150

‎docs/quality-gate.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Notes on the stages:
105105
offline.
106106
- **`smoke` launches what a user launches**: the built `dist/index.js` for a
107107
TypeScript server, the console script through `uv run --no-sync` for a Python
108-
one. stdio for all seven; HTTP+SSE and Streamable HTTP as well for
108+
one. stdio and Streamable HTTP for all seven; HTTP+SSE as well for
109109
`everything`. The servers are given nothing outside the machine to talk to
110110
and none of your files: `fetch` is pointed at a page the smoke serves on the
111111
loopback interface, and the HTTP transports listen on a free port rather

‎package-lock.json‎

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
},
7272
"overrides": {
7373
"qs": ">=6.16.1",
74-
"hono": ">=4.13.7",
74+
"hono": ">=4.13.16",
75+
"@hono/node-server": ">=2.1.6",
7576
"proxy-addr": "^2.0.8",
7677
"ip-address": "^10.7.4",
7778
"brace-expansion": "^5.0.12",

0 commit comments

Comments
 (0)