feat: Add mcp support and example.
#60
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: Lint | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install pre-commit | |
| run: pip install pre-commit | |
| - name: Install clang tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format-14 clang-tidy-14 libssl-dev | |
| sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-14 100 | |
| sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-14 100 | |
| - name: Show tool versions | |
| run: | | |
| echo "clang-format version:" | |
| clang-format --version | |
| echo "clang-tidy version:" | |
| clang-tidy --version | |
| - name: Configure CMake | |
| run: cmake -B build -S . -DAGENT_CPP_BUILD_MCP=ON | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files --show-diff-on-failure --verbose |