Skip to content

Commit 5581db7

Browse files
Update release notes with stateless mode fix (#65)
* Enable stateless mode for MCP HTTP transport Configure the MCP server to use stateless mode by setting options.Stateless = true in WithHttpTransport(). This eliminates session management issues that cause "Session not found" errors when the server restarts or clients reconnect. Benefits: - No session IDs required - each request is independent - No Data Protection key management needed - Survives server restarts without breaking client connections - Works across multiple server instances without session affinity Trade-off: McpServer.ClientInfo will be null as client metadata is not tracked across requests in stateless mode. Resolves connection issues with MCP clients including Claude Code. * Update release notes with stateless mode fix Add PR #64 (Enable stateless mode for MCP HTTP transport) to the 1.7.1 release notes under Bug Fixes section. This fix resolves "Session not found" errors experienced by MCP clients when reconnecting or after server restarts. Updates both RELEASE_NOTES.md and Directory.Build.props with the new bug fix entry.
1 parent 40501f6 commit 5581db7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
- The `/sse` endpoint still works for backward compatibility but is no longer recommended
1515
- [Update MCP endpoint from /sse to root path for Streamable HTTP](https://github.com/petabridge/memorizer-v1/pull/57)
1616

17+
**Bug Fixes**
18+
- [Enable stateless mode for MCP HTTP transport](https://github.com/petabridge/memorizer-v1/pull/64) - Fixes "Session not found" errors when clients reconnect or server restarts by enabling sessionless operation
19+
1720
**Updates**
1821
- [Bump ModelContextProtocol from 0.3.0-preview.4 to 0.4.0-preview.2](https://github.com/petabridge/memorizer-v1/pull/56) - Fixes server notification bugs and improves protocol compatibility
1922
- [Bump ModelContextProtocol.AspNetCore from 0.3.0-preview.4 to 0.4.0-preview.2](https://github.com/petabridge/memorizer-v1/pull/56) - Adds Streamable HTTP transport support</PackageReleaseNotes>

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- The `/sse` endpoint still works for backward compatibility but is no longer recommended
88
- [Update MCP endpoint from /sse to root path for Streamable HTTP](https://github.com/petabridge/memorizer-v1/pull/57)
99

10+
**Bug Fixes**
11+
- [Enable stateless mode for MCP HTTP transport](https://github.com/petabridge/memorizer-v1/pull/64) - Fixes "Session not found" errors when clients reconnect or server restarts by enabling sessionless operation
12+
1013
**Updates**
1114
- [Bump ModelContextProtocol from 0.3.0-preview.4 to 0.4.0-preview.2](https://github.com/petabridge/memorizer-v1/pull/56) - Fixes server notification bugs and improves protocol compatibility
1215
- [Bump ModelContextProtocol.AspNetCore from 0.3.0-preview.4 to 0.4.0-preview.2](https://github.com/petabridge/memorizer-v1/pull/56) - Adds Streamable HTTP transport support

src/Memorizer/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
// Add services
4141
builder.Services.AddMemorizer();
4242
builder.Services.AddMemorizerOtel();
43-
builder.Services.AddMcpServer().WithHttpTransport().WithTools<MemoryTools>();
43+
builder.Services.AddMcpServer()
44+
.WithHttpTransport(options => options.Stateless = true)
45+
.WithTools<MemoryTools>();
4446

4547
// Add MVC support for web UI
4648
builder.Services.AddControllersWithViews();

0 commit comments

Comments
 (0)