Skip to content

Commit 841462f

Browse files
authored
Merge pull request #2 from azdolinski/main
Fix windows problem
2 parents 4d2cd01 + a71db26 commit 841462f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='mcp-sse-proxy',
5-
version='0.1.3',
5+
version='0.1.4',
66
description='Proxy between MCP server using STDIO transport and client using SSE transport',
77
author='Artur Zdolinski',
88
author_email='artur@zdolinski.com',

src/mcp_sse_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async def sse_to_stdout(ping_interval: int):
220220
continue
221221

222222
logger.debug("Received SSE chunk of size: %d", len(chunk))
223-
buffer += chunk
223+
buffer += chunk.replace("\r\n", "\n")
224224
while "\n\n" in buffer:
225225
event, buffer = buffer.split("\n\n", 1)
226226
event_lines = event.strip().split("\n")

0 commit comments

Comments
 (0)