Pin GitHub workflows to rc.1 SDK (#871)

* Pin GitHub workflows to rc.1 SDK

* Make src/* change to force PR tests

* Add global.json to paths that trigger PR tests
This commit is contained in:
Stephen Halter 2025-10-14 21:53:10 -05:00 • committed by GitHub
commit 1f97301182
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 12 deletions

View file

@ -15,6 +15,7 @@ on:
- "*.sln" - "*.sln"
- "*.props" - "*.props"
- "Makefile" - "Makefile"
- "global.json"
- "src/**" - "src/**"
- "tests/**" - "tests/**"
- "samples/**" - "samples/**"
@ -43,7 +44,7 @@ jobs:
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: | dotnet-version: |
10.0.x 10.0.100-rc.1.25451.107
9.0.x 9.0.x
# NetFX testing on non-Windows requires mono # NetFX testing on non-Windows requires mono

View file

@ -15,7 +15,7 @@ jobs:
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: | dotnet-version: |
10.0.x 10.0.100-rc.1.25451.107
9.0.x 9.0.x
- name: Download test results - name: Download test results

View file

@ -33,7 +33,7 @@ jobs:
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: | dotnet-version: |
10.0.x 10.0.100-rc.1.25451.107
9.0.x 9.0.x
- name: Generate documentation - name: Generate documentation

View file

@ -53,7 +53,7 @@ jobs:
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: | dotnet-version: |
10.0.x 10.0.100-rc.1.25451.107
9.0.x 9.0.x
- name: Build - name: Build
@ -79,7 +79,7 @@ jobs:
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: | dotnet-version: |
10.0.x 10.0.100-rc.1.25451.107
9.0.x 9.0.x
- name: Pack - name: Pack
@ -108,7 +108,7 @@ jobs:
- name: Setup .NET - name: Setup .NET
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: 10.0.x dotnet-version: 10.0.100-rc.1.25451.107
- name: Download build artifacts - name: Download build artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
@ -163,7 +163,7 @@ jobs:
- name: Setup .NET - name: Setup .NET
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with: with:
dotnet-version: 10.0.x dotnet-version: 10.0.100-rc.1.25451.107
- name: Download build artifacts - name: Download build artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0

View file

@ -23,13 +23,13 @@ public class HttpServerTransportOptions
public Func<HttpContext, McpServer, CancellationToken, Task>? RunSessionHandler { get; set; } public Func<HttpContext, McpServer, CancellationToken, Task>? RunSessionHandler { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether the server should run in a stateless mode that does not require all requests for a given session /// Gets or sets whether the server should run in a stateless mode which allows for load balancing without session affinity.
/// to arrive to the same ASP.NET Core application process.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// If <see langword="true"/>, the "/sse" endpoint will be disabled, and client information will be round-tripped as part /// If <see langword="true"/>, <see cref="RunSessionHandler"/> is called once for every request for each request,
/// of the "MCP-Session-Id" header instead of stored in memory. Unsolicited server-to-client messages and all server-to-client /// the "/sse" endpoint will be disabled, and the "MCP-Session-Id" header will not be used.
/// requests are also unsupported, because any responses may arrive at another ASP.NET Core application process. /// Unsolicited server-to-client messages and all server-to-client requests are also unsupported, because any responses
/// may arrive at another ASP.NET Core application process.
/// Client sampling and roots capabilities are also disabled in stateless mode, because the server cannot make requests. /// Client sampling and roots capabilities are also disabled in stateless mode, because the server cannot make requests.
/// Defaults to <see langword="false"/>. /// Defaults to <see langword="false"/>.
/// </remarks> /// </remarks>