chore(deps): bump the npm_and_yarn group across 10 directories with 7 updates #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MCP Performance Optimization | |
| on: | |
| pull_request: | |
| types: [labeled, opened, synchronize] | |
| jobs: | |
| optimize: | |
| if: contains(github.event.pull_request.labels.*.name, 'optimize-performance') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| actions: read | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| cache-dependency-path: 'mcp-servers/mcp-profiling/requirements.txt' | |
| - name: Install Dependencies | |
| run: | | |
| pip install -r mcp-servers/mcp-profiling/requirements.txt | |
| - name: Run Investigator Agent | |
| run: | | |
| # We assume the investigator client is configured to run specifically on the profiling server | |
| # In a real scenario, you might pass arguments to target specific files or functions | |
| python3 mcp-servers/mcp-profiling/investigator_client.py | |
| - name: Auto-Commit Optimized Code | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "⚡ MCP: Auto-optimized performance hot-paths" | |
| file_pattern: 'mcp-servers/mcp-profiling/profiling_server.py' |