Skip to content

Commit 82b330c

Browse files
committed
Deprecate MCP files and update comments to reflect new structure and functionality
1 parent 7e9a587 commit 82b330c

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

.github/workflows/test-mcp-server.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -283,23 +283,22 @@ jobs:
283283
-d "{
284284
\"code\": $(echo "$GENERATE_OUTPUT" | jq -Rs .)
285285
}" || echo "CURL_FAILED")
286-
287-
if [ "$COMPILE_RESPONSE" = "CURL_FAILED" ]; then
288-
echo "Failed to connect to API service"
289-
docker ps
290-
docker logs $(docker ps -q --filter name=api)
291-
exit 1
292-
fi
293-
294-
# Check for success in response
295-
if ! echo "$COMPILE_RESPONSE" | jq -e '.success == true' > /dev/null; then
296-
echo "Compilation failed:"
297-
echo "$COMPILE_RESPONSE" | jq || echo "$COMPILE_RESPONSE"
298-
exit 1
299-
fi
300-
301-
echo "Workflow test successful! Generated code compiles correctly."
302-
echo "$COMPILE_RESPONSE" | jq || echo "$COMPILE_RESPONSE"
286+
287+
if [ "$COMPILE_RESPONSE" = "CURL_FAILED" ]; then
288+
echo "Failed to connect to API service"
289+
docker ps
290+
exit 1
291+
fi
292+
293+
# Check for success in response
294+
if ! echo "$COMPILE_RESPONSE" | jq -e '.success == true' > /dev/null; then
295+
echo "Compilation failed:"
296+
echo "$COMPILE_RESPONSE" | jq || echo "$COMPILE_RESPONSE"
297+
exit 1
298+
fi
299+
300+
echo "Workflow test successful! Generated code compiles correctly."
301+
echo "$COMPILE_RESPONSE" | jq || echo "$COMPILE_RESPONSE"
303302

304303
- name: Test basic API endpoints (non-LLM)
305304
run: |

app/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
from app.compiler import RustCompiler
1919
from app.llm_client import LlamaEdgeClient
2020
from app.vector_store import QdrantStore
21-
# Remove MCP import
22-
# from app.mcp_service import RustCompilerMCP
2321

2422
app = FastAPI(title="Rust Project Generator API")
2523

@@ -51,9 +49,6 @@
5149
if vector_store.count("error_examples") == 0:
5250
load_error_examples()
5351

54-
# Remove MCP service initialization
55-
# rust_mcp = RustCompilerMCP(vector_store=vector_store, llm_client=llm_client)
56-
5752
# Project generation request
5853
class ProjectRequest(BaseModel):
5954
description: str

app/mcp_server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
DEPRECATED: This file is deprecated. All MCP functionality has been moved to app/mcp_tools.py.
3+
This file is kept for reference purposes only and will be removed in a future release.
4+
"""
5+
16
import os
27
import json
38
import sys

app/mcp_service.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
This file contains the core business logic for the Rust Compiler MCP service.
3+
Note that the API integration and HTTP endpoints are now handled by app/mcp_tools.py.
4+
"""
5+
16
import os
27
import tempfile
38
import shutil

0 commit comments

Comments
 (0)