Skip to content

Commit c0bf768

Browse files
committed
fix: update MCP server configuration to use SSE transport
1 parent 04e549c commit c0bf768

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

app/mcp_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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="sse") # Change http to sse
153+
mcp.run(transport="sse") # Using SSE transport

mcp-proxy-config.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
"providers": [
33
{
44
"name": "rust-compiler",
5-
"command": "python -m app.mcp_server",
6-
"cwd": "/app",
5+
"url": "http://mcp-server:3001/sse",
76
"methods": ["compile", "compileAndFix", "vectorSearch"]
87
}
9-
],
10-
"endpoints": {
11-
"rust-compiler": {
12-
"command": ["python", "-m", "examples.run_mcp_server"]
13-
}
14-
}
8+
]
159
}

0 commit comments

Comments
 (0)