Skip to content

Commit 7d6e14f

Browse files
authored
Streamable HTTP Trailing Slash Compatibility
1 parent d89e737 commit 7d6e14f

File tree

1 file changed

+1
-0
lines changed
  • examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless

1 file changed

+1
-0
lines changed

examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ async def lifespan(app: Starlette) -> AsyncIterator[None]:
130130
debug=True,
131131
routes=[
132132
Mount("/mcp", app=handle_streamable_http),
133+
Mount("/mcp/", app=handle_streamable_http),
133134
],
134135
lifespan=lifespan,
135136
)

0 commit comments

Comments
 (0)