Skip to content

Commit 6412a71

Browse files
authored
Merge pull request #5613 from modelcontextprotocol/v2/docs/5593-python-http-session
docs(skills): local-dev states which HTTP endpoints keep a 2025-era session
2 parents 328d411 + e6b7096 commit 6412a71

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,18 @@ node src/filesystem/dist/index.js --transport streamable-http /tmp/scratch # d
8888
(cd src/time && uv run mcp-server-time --transport streamable-http)
8989
```
9090

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.
91+
What a 2025-era client gets from that endpoint differs by language (#5593):
92+
93+
- **`memory`, `filesystem`, `sequentialthinking` (TypeScript) are stateless**: a
94+
fresh server per request, no `Mcp-Session-Id` on the `initialize` response,
95+
and GET and DELETE answer 405. So nothing the server asks of the client
96+
mid-session (filesystem's Roots) reaches it over HTTP.
97+
- **`fetch`, `git`, `time` (Python) keep a session**, through the SDK's
98+
Streamable HTTP app. `initialize` returns an `Mcp-Session-Id` header and
99+
every later request must carry it: without it a POST, GET or DELETE answers
100+
400 "Missing session ID". With it, GET opens the session's stream and DELETE
101+
ends the session, after which its id answers 404. A hand-written `curl`
102+
probe therefore sends `initialize` first and passes the header on.
94103

95104
## Run the local package the way a user would
96105

0 commit comments

Comments
 (0)