Skip to content

Commit 34e7a59

Browse files
committed
Update MCP server transport comments for clarity on usage
1 parent 154b20a commit 34e7a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/mcp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run(self, host="0.0.0.0", port=3001):
6060

6161
print(f"Starting MCP server on {host}:{port}")
6262
# Use sse transport instead of http
63-
self.mcp.run(transport="sse")
63+
self.mcp.run(transport="sse") # or "http" depending on cmcp version
6464

6565
# For direct invocation
6666
mcp = FastMCP("Rust Compiler")
@@ -197,4 +197,4 @@ def compileAndFix(code: str, description: str, max_attempts: int = 3) -> Dict[st
197197
print(f"Starting MCP server on {host}:{port}")
198198
os.environ["MCP_HOST"] = host
199199
os.environ["MCP_PORT"] = str(port)
200-
mcp.run(transport="sse") # Using SSE transport
200+
mcp.run(transport="sse") # or "http" depending on cmcp version

0 commit comments

Comments
 (0)