feat(selfhosted): add client-side MCP tools #17
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: Java CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| # A workflow added by a pull request is not loaded from the base branch for | |
| # that pull_request event. Running the workflow from ark-hand's same-repo | |
| # sync branch makes the first workflow-installation PR testable as well. | |
| push: | |
| branches: | |
| - "sync/**" | |
| paths: | |
| - ".github/workflows/ci.yml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: java-ci-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| java-ci: | |
| name: Java CI | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "8" | |
| cache: maven | |
| - name: Compile | |
| run: mvn -B compile | |
| - name: Package | |
| run: mvn -B package -DskipTests | |
| - name: Test core | |
| run: mvn -B test | |
| mcp-ci: | |
| name: MCP adapter CI | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| cache: maven | |
| - name: Install matching core artifact | |
| run: | | |
| adapter_version="$(mvn -q -f mcp/pom.xml help:evaluate -Dexpression=project.version -DforceStdout)" | |
| mvn -B versions:set -DnewVersion="${adapter_version}" -DgenerateBackupPoms=false | |
| mvn -B install -DskipTests | |
| - name: Test and install optional MCP adapter | |
| run: mvn -B -f mcp/pom.xml install | |
| - name: Compile self-hosted MCP example | |
| run: mvn -B -f examples/self_hosted_mcp_worker/pom.xml package |