From 82b62d32fdce727ce32ebe1490ef117c344fa0ac Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 30 Jun 2025 20:58:56 +0100 Subject: [PATCH] refactor: Remove MCP Server Verification workflow from GitHub Actions --- .github/workflows/mcp-server-generation.yml | 108 -------------------- 1 file changed, 108 deletions(-) delete mode 100644 .github/workflows/mcp-server-generation.yml diff --git a/.github/workflows/mcp-server-generation.yml b/.github/workflows/mcp-server-generation.yml deleted file mode 100644 index 56bc4bbe3f..0000000000 --- a/.github/workflows/mcp-server-generation.yml +++ /dev/null @@ -1,108 +0,0 @@ -name: MCP Server Verification - -on: - pull_request: - push: - branches: - - main - - master - - develop - workflow_dispatch: # Allow manual trigger - -jobs: - verify-mcp-server: - runs-on: ubuntu-latest - env: - CI_PIPELINE_ID: ${{ github.run_number }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: latest - cache: 'npm' - - - name: Install Common dependencies - run: cd Common && npm install - - - name: Verify MCP server directory - run: | - MCP_DIR="./MCP" - - # Check if MCP server directory exists - if [ ! -d "$MCP_DIR" ]; then - echo "โŒ MCP server directory not found" - exit 1 - fi - echo "โœ… MCP server directory found: $MCP_DIR" - - # Count source files - TS_FILES=$(find "$MCP_DIR" -name "*.ts" | wc -l) - echo "๐Ÿ“Š TypeScript source files: $TS_FILES" - - if [ "$TS_FILES" -eq 0 ]; then - echo "โŒ No TypeScript files found" - exit 1 - fi - - # Check for essential files - if [ -f "$MCP_DIR/package.json" ]; then - echo "โœ… Package.json file exists" - else - echo "โŒ Package.json file missing" - exit 1 - fi - - if [ -f "$MCP_DIR/README.md" ]; then - echo "โœ… Documentation exists" - fi - - if [ -f "$MCP_DIR/Index.ts" ]; then - echo "โœ… Main entry point exists" - else - echo "โŒ Main entry point missing" - exit 1 - fi - - if [ -f "$MCP_DIR/Dockerfile.tpl" ]; then - echo "โœ… Dockerfile template exists" - else - echo "โŒ Dockerfile template missing" - exit 1 - fi - - # Show directory structure for debugging - echo "๐Ÿ“ MCP server directory structure:" - ls -la "$MCP_DIR" || true - - - name: Test MCP server build - run: | - MCP_DIR="./MCP" - if [ -d "$MCP_DIR" ] && [ -f "$MCP_DIR/package.json" ]; then - cd "$MCP_DIR" - echo "๐Ÿ”จ Installing dependencies..." - npm install - echo "๐Ÿ”จ Testing TypeScript build..." - npm run build - echo "โœ… MCP server build successful" - - # Show build output - echo "๐Ÿ“ฆ Build output:" - ls -la build/ || true - - echo "๐Ÿงช Running tests..." - npm test || echo "โš ๏ธ No tests found or tests failed" - else - echo "โŒ Cannot test build - missing package.json or MCP server directory" - exit 1 - fi - - - name: Upload MCP server as artifact - uses: actions/upload-artifact@v4 - with: - name: mcp-server-build - path: ./MCP/ - retention-days: 30