diff --git a/.github/workflows/ci-build-test.yml b/.github/workflows/ci-build-test.yml index 9a66ccd..5e4b223 100644 --- a/.github/workflows/ci-build-test.yml +++ b/.github/workflows/ci-build-test.yml @@ -50,6 +50,10 @@ jobs: if: runner.os == 'Linux' run: sudo apt-get install -y mono-devel + - name: Setup Mono on macOS + if: runner.os == 'macOS' + run: brew install mono + - name: Set up Node.js uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 with: diff --git a/Directory.Build.props b/Directory.Build.props index bca3759..b0cf7f2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -34,4 +34,9 @@ true + + + + true + diff --git a/Directory.Packages.props b/Directory.Packages.props index 6da9521..27431dd 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,7 +3,7 @@ true 9.0.5 10.0.0-preview.4.25258.110 - 9.7.1 + 9.8.0 @@ -47,13 +47,13 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + @@ -66,8 +66,8 @@ - - + + @@ -75,9 +75,9 @@ - - + + - + \ No newline at end of file diff --git a/tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs b/tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs index 93cbcec..dfde342 100644 --- a/tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs +++ b/tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs @@ -19,7 +19,10 @@ public class StdioClientTransportTests(ITestOutputHelper testOutputHelper) : Log new(new() { Command = "ls", Arguments = [id] }, LoggerFactory); IOException e = await Assert.ThrowsAsync(() => McpClientFactory.CreateAsync(transport, loggerFactory: LoggerFactory, cancellationToken: TestContext.Current.CancellationToken)); - Assert.Contains(id, e.ToString()); + if (!RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + Assert.Contains(id, e.ToString()); + } } [Fact(Skip = "Platform not supported by this test.", SkipUnless = nameof(IsStdErrCallbackSupported))]