You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d613ec
Browse filesBrowse the repository at this point in the historyBrowse files
Serve the 2026-07-28 protocol revision alongside the 2025 era (#4852), over stdio (`serveStdio`) and Streamable HTTP (one `/mcp` endpoint: `createMcpHandler` for 2026-07-28 requests, the existing sessionful transport for 2025-era clients). New for 2026-07-28 clients: `server/discover`, multi-round-trip requests (`input_required`) for the elicitation, sampling and roots tools, `subscriptions/listen` change notifications, cache hints (`ttlMs` / `cacheScope`), and the tasks extension (`io.modelcontextprotocol/tasks`, advertised under `capabilities.extensions`), on which `simulate-research-query`, `trigger-sampling-request-async` and `trigger-elicitation-request-async` return. New tools on both eras: `trigger-multi-step-elicitation` (`requestState` across rounds), `trigger-log-messages` (per-request log levels), `trigger-list-changed`, `trigger-resource-update`, and `get-header-params` (`x-mcp-header` and JSON Schema 2020-12 schemas). `toggle-simulated-logging` and `toggle-subscriber-updates` are offered to 2025-era clients only, labelled deprecated with the roots, sampling and logging tools. For 2025-era clients: `get-roots-list` asks the client for its roots on every call; a failed sampling, elicitation or roots request is reported as `Fulfilling input required by 'tools/call' failed: <message>`; a read of a dynamic resource with an invalid id is answered `-32602` with the URI in `data`; and the toggle tools' messages and the subscription acknowledgements no longer name a session id. `gzip-file-as-resource` limits its `name` argument to 255 characters. The HTTP+SSE transport prints a deprecation warning on start.
Serve the 2026-07-28 protocol revision alongside the 2025 era on stdio, through the SDK's `serveStdio` entry (#4852). A 2026-07-28 connection has no `initialize` and no server-to-client `roots/list`, and Roots is deprecated as of that revision, so the command-line directories are its whole allow-list; a server started with none answers each tool call on such a connection with an error saying so. 2025-era clients keep the Roots behavior they had. The README now recommends command-line directories over Roots (#4844).
Serve the 2026-07-28 protocol revision alongside the 2025 era on stdio, through the SDK's `serveStdio` entry (#4852). A 2026-07-28 client gets `notifications/resources/updated` for `memory://knowledge-graph` on a `subscriptions/listen` stream whose `resourceSubscriptions` name it; 2025-era clients still subscribe with `resources/subscribe`.
"@modelcontextprotocol/server-sequential-thinking": minor
3
+
---
4
+
5
+
Serve the 2026-07-28 protocol revision alongside the 2025 era on stdio, through the SDK's `serveStdio` entry (#4852). The thought history lasts as long as the client's connection, on either era.
Copy file name to clipboardExpand all lines: src/everything/AGENTS.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,9 @@ The server factory is `src/everything/server/index.ts` and registers all feature
29
29
30
30
### High-level
31
31
32
-
- Tools live under `src/everything/tools/` and are registered via `registerTools(server)`.
33
-
- Resources live under `src/everything/resources/` and are registered via `registerResources(server)`.
32
+
- The server serves both protocol eras (2026-07-28 and 2025-era); the factory is `createServer({ era })`, and what each era gets is wired in `server/index.ts` and `tools/index.ts`.
33
+
- Tools live under `src/everything/tools/` and are registered via `registerTools(server, context)` (both eras), `registerModernTools` (2026-07-28) or `registerLegacyTools` / `registerConditionalTools` (2025 era).
34
+
- Resources live under `src/everything/resources/` and are registered via `registerResources(server, context)`.
34
35
- Prompts live under `src/everything/prompts/` and are registered via `registerPrompts(server)`.
35
36
- Subscriptions and simulated update routines are under `src/everything/resources/subscriptions.ts`.
36
37
- Logging helpers are under `src/everything/server/logging.ts`.
@@ -39,7 +40,8 @@ The server factory is `src/everything/server/index.ts` and registers all feature
39
40
### When adding a new feature
40
41
41
42
- Follow the existing file/module pattern in its folder (naming, exports, and registration function).
42
-
- Export a `registerX(server)` function that registers new items with the MCP SDK in the same style as existing ones.
43
+
- Export a `registerX(server)` function that registers new items with the MCP SDK in the same style as existing ones (taking the per-instance `context` too when it needs the era, the change publisher or per-connection state).
44
+
- Keep no state in module-level maps keyed by session id; see [Extension Points](docs/extension.md).
43
45
- Wire your new module into the central index (e.g., update `tools/index.ts`, `resources/index.ts`, or `prompts/index.ts`).
44
46
- Ensure schemas (for tools) are accurate JSON Schema and include helpful descriptions and examples.
45
47
- Keep the docs in `src/everything/docs/` up to date if you add or modify noteworthy features.
Copy file name to clipboardExpand all lines: src/everything/README.md
+30-21Lines changed: 30 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,26 @@
1
1
# Everything MCP Server
2
+
2
3
**[Architecture](docs/architecture.md)
3
4
| [Project Structure](docs/structure.md)
4
5
| [Startup Process](docs/startup.md)
5
6
| [Server Features](docs/features.md)
6
7
| [Extension Points](docs/extension.md)
7
8
| [How It Works](docs/how-it-works.md)**
8
9
9
-
10
10
This MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.
11
11
12
12
## Tools, Resources, Prompts, and Other Features
13
13
14
14
A complete list of the registered MCP primitives and other protocol features demonstrated can be found in the [Server Features](docs/features.md) document.
15
15
16
-
The task tools (`simulate-research-query`, `trigger-sampling-request-async` and `trigger-elicitation-request-async`) are not available for now: they were built on the TypeScript SDK's experimental tasks layer, which SDK v2 removed. They return on the MCP tasks extension in [#4852](https://github.com/modelcontextprotocol/servers/issues/4852).
16
+
## Protocol versions
17
+
18
+
The server serves both protocol eras, over stdio and Streamable HTTP, from one process:
19
+
20
+
-**2026-07-28** clients connect with `server/discover`, send their protocol version, identity and capabilities with each request, and have no session. The server demonstrates the revision's new features for them: multi-round-trip requests (`input_required`) with `requestState`, `subscriptions/listen` change notifications, per-request log levels, cache hints (`ttlMs` / `cacheScope`), the tasks extension (`io.modelcontextprotocol/tasks`) under the `extensions` capability, and `x-mcp-header` with JSON Schema 2020-12 tool schemas.
21
+
-**2025-era** clients connect with the `initialize` handshake, as before. Elicitation, sampling and roots are served to them from the same multi-round-trip handlers through the SDK's legacy shim.
22
+
23
+
Roots, sampling and logging are deprecated as of 2026-07-28 and stay available, labelled deprecated. [Server Features](docs/features.md) marks which era each feature belongs to.
17
24
18
25
## Requirements
19
26
@@ -28,10 +35,7 @@ Add to your `claude_desktop_config.json`:
## Running from source with [HTTP+SSE Transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) (deprecated as of [2025-03-26](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports))
101
+
## Run from source with [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
103
102
104
103
```shell
105
104
cd src/everything
106
105
npm install
107
-
npm run start:sse
106
+
npm run start:streamableHttp
108
107
```
109
108
110
-
## Run from source with [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
109
+
The endpoint is `http://localhost:3001/mcp` (`PORT` overrides the port). It serves 2026-07-28 clients statelessly and 2025-era clients with sessions, from the same URL.
110
+
111
+
## Running from source with [HTTP+SSE Transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) (deprecated as of [2025-03-26](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports))
111
112
112
113
```shell
113
114
cd src/everything
114
115
npm install
115
-
npm run start:streamableHttp
116
+
npm run start:sse
116
117
```
117
118
119
+
The HTTP+SSE transport serves 2025-era clients only, and the server prints a deprecation warning when it starts. Prefer Streamable HTTP.
0 commit comments