Skip to content

Commit 04e549c

Browse files
committed
fix: change MCP server transport from HTTP to SSE
1 parent 4278d55 commit 04e549c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/mcp_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def run(self, host="0.0.0.0", port=3001):
5555
os.environ["MCP_PORT"] = str(port)
5656

5757
print(f"Starting MCP server on {host}:{port}")
58-
# Explicitly specify HTTP transport
59-
self.mcp.run(transport="http")
58+
# Use sse transport instead of http
59+
self.mcp.run(transport="sse")
6060

6161
# For direct invocation
6262
mcp = FastMCP("Rust Compiler")
@@ -150,4 +150,4 @@ def compile_and_fix(code: str, description: str, max_attempts: int = 3) -> Dict[
150150
print(f"Starting MCP server on {host}:{port}")
151151
os.environ["MCP_HOST"] = host
152152
os.environ["MCP_PORT"] = str(port)
153-
mcp.run(transport="http") # Specify transport mode explicitly
153+
mcp.run(transport="sse") # Change http to sse

0 commit comments

Comments
 (0)