File tree Expand file tree Collapse file tree 4 files changed +26
-22
lines changed Expand file tree Collapse file tree 4 files changed +26
-22
lines changed Original file line number Diff line number Diff 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 : |
Original file line number Diff line number Diff line change 1818from app .compiler import RustCompiler
1919from app .llm_client import LlamaEdgeClient
2020from app .vector_store import QdrantStore
21- # Remove MCP import
22- # from app.mcp_service import RustCompilerMCP
2321
2422app = FastAPI (title = "Rust Project Generator API" )
2523
5149if 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
5853class ProjectRequest (BaseModel ):
5954 description : str
Original file line number Diff line number Diff line change 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+
16import os
27import json
38import sys
Original file line number Diff line number Diff line change 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+
16import os
27import tempfile
38import shutil
You can’t perform that action at this time.
0 commit comments