Skip to content

Commit a84399b

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

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

examples/servers/simple-streamablehttp/mcp_simple_streamablehttp/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ async def lifespan(app: Starlette) -> AsyncIterator[None]:
158158
debug=True,
159159
routes=[
160160
Mount("/mcp", app=handle_streamable_http),
161+
Mount("/mcp/", app=handle_streamable_http),
161162
],
162163
lifespan=lifespan,
163164
)

0 commit comments

Comments
 (0)