diff --git a/.github/workflows/ci-build-test.yml b/.github/workflows/ci-build-test.yml index 5e4b223ba..b29bccd53 100644 --- a/.github/workflows/ci-build-test.yml +++ b/.github/workflows/ci-build-test.yml @@ -18,6 +18,7 @@ on: - "src/**" - "tests/**" - "samples/**" + - "docs/**" permissions: contents: read diff --git a/ModelContextProtocol.slnx b/ModelContextProtocol.slnx index 0850150be..2afd1d1df 100644 --- a/ModelContextProtocol.slnx +++ b/ModelContextProtocol.slnx @@ -8,6 +8,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/concepts/elicitation/samples/client/ElicitationClient.csproj b/docs/concepts/elicitation/samples/client/ElicitationClient.csproj index e8e10376e..312628b65 100644 --- a/docs/concepts/elicitation/samples/client/ElicitationClient.csproj +++ b/docs/concepts/elicitation/samples/client/ElicitationClient.csproj @@ -8,7 +8,7 @@ - + diff --git a/docs/concepts/elicitation/samples/client/Program.cs b/docs/concepts/elicitation/samples/client/Program.cs index 5405a61ba..6d5178796 100644 --- a/docs/concepts/elicitation/samples/client/Program.cs +++ b/docs/concepts/elicitation/samples/client/Program.cs @@ -56,13 +56,13 @@ async ValueTask HandleElicitationAsync(ElicitRequestParams? requestParams, CancellationToken token) { // Bail out if the requestParams is null or if the requested schema has no properties - if (requestParams?.RequestedSchema?.Properties == null) + if (requestParams is null || requestParams.RequestedSchema?.Properties is null) { return new ElicitResult(); } // Process the elicitation request - if (requestParams?.Message is not null) + if (requestParams.Message is not null) { Console.WriteLine(requestParams.Message); } diff --git a/docs/concepts/elicitation/samples/server/Elicitation.csproj b/docs/concepts/elicitation/samples/server/Elicitation.csproj index a27101aa0..b813fc123 100644 --- a/docs/concepts/elicitation/samples/server/Elicitation.csproj +++ b/docs/concepts/elicitation/samples/server/Elicitation.csproj @@ -7,7 +7,7 @@ - + diff --git a/docs/concepts/logging/samples/client/LoggingClient.csproj b/docs/concepts/logging/samples/client/LoggingClient.csproj index 2ecfd2cbd..6ed1a9542 100644 --- a/docs/concepts/logging/samples/client/LoggingClient.csproj +++ b/docs/concepts/logging/samples/client/LoggingClient.csproj @@ -8,7 +8,7 @@ - + diff --git a/docs/concepts/logging/samples/server/Logging.csproj b/docs/concepts/logging/samples/server/Logging.csproj index a27101aa0..b813fc123 100644 --- a/docs/concepts/logging/samples/server/Logging.csproj +++ b/docs/concepts/logging/samples/server/Logging.csproj @@ -7,7 +7,7 @@ - + diff --git a/docs/concepts/progress/samples/client/ProgressClient.csproj b/docs/concepts/progress/samples/client/ProgressClient.csproj index 2ecfd2cbd..6ed1a9542 100644 --- a/docs/concepts/progress/samples/client/ProgressClient.csproj +++ b/docs/concepts/progress/samples/client/ProgressClient.csproj @@ -8,7 +8,7 @@ - + diff --git a/docs/concepts/progress/samples/server/Progress.csproj b/docs/concepts/progress/samples/server/Progress.csproj index a27101aa0..b813fc123 100644 --- a/docs/concepts/progress/samples/server/Progress.csproj +++ b/docs/concepts/progress/samples/server/Progress.csproj @@ -7,7 +7,7 @@ - +