* Support 2025-06-18 Spec (#167) * Support OpenAI _meta for Tool * Update init * Add title and outputSchema * Concurreny issue * General fields * Add Generate Fields to Server elements * 4 tab spacing * Update Version * Elicitation * Format * More tests and inits * Elicitation in README * Fix orphaned test * Add title to more structs * Public init * Fix meta validation and make tests more generic * Format and make Result properties public again * Revert more visibility changes * feat: 2025-11-25 phase 1, includes Version, Icon, Progress (#181) * chore: fixed unit tests * feat: added icon and progess base structs * feat: added progress notification and meta to callTool * feat: added tests * feat: simplified RequestMeta encoding/decoding * tests: added unit test to track progress * chore: rebased v0.11.x * feat: implemented cancellation * feat: added overloaded callTool method * fix: encoding Response _meta fix * chore: added old version to the versions list * feat: 2025-11-25 phase 2; added Logging and Completions (#196) * feat: added Logging and Completions * feat: updated EmbeddedResource for the latest spec * chore: changed encoding of meta in Prompts to encodeIfPresent * feat: compliance tests + http server transport (#197) * feat: http server transport * feat: added http server transport * feat: removed unused files * feat: added conformance tests * feat: improved conformace testing * chore: removed redundant files * feat/2025-11-25: sampling, elicitation, roots (#198) * feat: Roots implementation * feat: added unit testing * feat: improved unit tests and fixed NetworkTransport crash * feat: implemented sampling and elicitation * feat: improved sampling tests * feat: improved elicitation tests * feat: improved confirmance tests * feat: improved Prompts unit tests * feat: removed test code * feat: updated conformance tests * chore: removed redundant commas * chore: removed 6.0.3 swift version from ci * chore: improved unit tests a little bit * chore: update README.md * chore: add server progress tracking example to README.md * chore: updated README.md * chore: updated transports table formatting * chore: updated MockNetworkConnection --------- Co-authored-by: Austin Evans <austinjevans@me.com> Co-authored-by: yehorsobko <yehorsobko@macpaw.com>
116 lines
3 KiB
YAML
116 lines
3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 5
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
swift-version:
|
|
- 6.1.0
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
name: Test (${{ matrix.os }}, Swift ${{ matrix.swift-version }})
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Swift on Linux
|
|
if: matrix.os == 'ubuntu-latest'
|
|
uses: vapor/swiftly-action@v0.2
|
|
with:
|
|
toolchain: ${{ matrix.swift-version }}
|
|
- name: Setup Swift on macOS
|
|
if: matrix.os == 'macos-latest'
|
|
uses: swift-actions/setup-swift@v2
|
|
with:
|
|
swift-version: ${{ matrix.swift-version }}
|
|
|
|
- name: Build
|
|
run: swift build -v
|
|
|
|
- name: Run tests
|
|
run: swift test -v
|
|
|
|
conformance:
|
|
timeout-minutes: 10
|
|
runs-on: macos-latest
|
|
name: MCP Conformance Tests
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Swift
|
|
uses: swift-actions/setup-swift@v2
|
|
with:
|
|
swift-version: 6.1.0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Build Swift executables
|
|
run: |
|
|
swift build --product mcp-everything-client
|
|
swift build --product mcp-everything-server
|
|
|
|
- name: Run client conformance tests
|
|
uses: modelcontextprotocol/conformance@v0.1.11
|
|
with:
|
|
mode: client
|
|
command: '.build/debug/mcp-everything-client'
|
|
suite: 'core'
|
|
expected-failures: './conformance-baseline.yml'
|
|
|
|
- name: Start server for testing
|
|
run: |
|
|
.build/debug/mcp-everything-server &
|
|
echo "SERVER_PID=$!" >> $GITHUB_ENV
|
|
sleep 3
|
|
|
|
- name: Run server conformance tests
|
|
uses: modelcontextprotocol/conformance@v0.1.11
|
|
with:
|
|
mode: server
|
|
url: 'http://localhost:3001/mcp'
|
|
suite: 'core'
|
|
expected-failures: './conformance-baseline.yml'
|
|
|
|
- name: Cleanup server
|
|
if: always()
|
|
run: |
|
|
if [ -n "$SERVER_PID" ]; then
|
|
kill $SERVER_PID 2>/dev/null || true
|
|
fi
|
|
|
|
static-linux-sdk-build:
|
|
name: Linux Static SDK Build (${{ matrix.swift-version }} - ${{ matrix.os }})
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
swift-version:
|
|
- 6.1.2
|
|
runs-on: ${{ matrix.os }}
|
|
container: swift:${{ matrix.swift-version }}-noble
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
- name: Install static SDK and build
|
|
env:
|
|
BUILD_FLAGS: ""
|
|
run: |
|
|
which curl || (apt -q update && apt -yq install curl)
|
|
curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/install-and-build-with-sdk.sh | \
|
|
bash -s -- --static --flags="$BUILD_FLAGS" ${{ matrix.swift-version }}
|