Skip to content

Commit 1f97301

Browse files
authored
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
1 parent 2ec3ceb commit 1f97301

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.github/workflows/ci-build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- "*.sln"
1616
- "*.props"
1717
- "Makefile"
18+
- "global.json"
1819
- "src/**"
1920
- "tests/**"
2021
- "samples/**"
@@ -43,7 +44,7 @@ jobs:
4344
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
4445
with:
4546
dotnet-version: |
46-
10.0.x
47+
10.0.100-rc.1.25451.107
4748
9.0.x
4849
4950
# NetFX testing on non-Windows requires mono

.github/workflows/ci-code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
1616
with:
1717
dotnet-version: |
18-
10.0.x
18+
10.0.100-rc.1.25451.107
1919
9.0.x
2020
2121
- name: Download test results

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
3434
with:
3535
dotnet-version: |
36-
10.0.x
36+
10.0.100-rc.1.25451.107
3737
9.0.x
3838
3939
- name: Generate documentation

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
5454
with:
5555
dotnet-version: |
56-
10.0.x
56+
10.0.100-rc.1.25451.107
5757
9.0.x
5858
5959
- name: Build
@@ -79,7 +79,7 @@ jobs:
7979
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
8080
with:
8181
dotnet-version: |
82-
10.0.x
82+
10.0.100-rc.1.25451.107
8383
9.0.x
8484
8585
- name: Pack
@@ -108,7 +108,7 @@ jobs:
108108
- name: Setup .NET
109109
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
110110
with:
111-
dotnet-version: 10.0.x
111+
dotnet-version: 10.0.100-rc.1.25451.107
112112

113113
- name: Download build artifacts
114114
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
@@ -163,7 +163,7 @@ jobs:
163163
- name: Setup .NET
164164
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
165165
with:
166-
dotnet-version: 10.0.x
166+
dotnet-version: 10.0.100-rc.1.25451.107
167167

168168
- name: Download build artifacts
169169
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0

src/ModelContextProtocol.AspNetCore/HttpServerTransportOptions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public class HttpServerTransportOptions
2323
public Func<HttpContext, McpServer, CancellationToken, Task>? RunSessionHandler { get; set; }
2424

2525
/// <summary>
26-
/// Gets or sets whether the server should run in a stateless mode that does not require all requests for a given session
27-
/// to arrive to the same ASP.NET Core application process.
26+
/// Gets or sets whether the server should run in a stateless mode which allows for load balancing without session affinity.
2827
/// </summary>
2928
/// <remarks>
30-
/// If <see langword="true"/>, the "/sse" endpoint will be disabled, and client information will be round-tripped as part
31-
/// of the "MCP-Session-Id" header instead of stored in memory. Unsolicited server-to-client messages and all server-to-client
32-
/// requests are also unsupported, because any responses may arrive at another ASP.NET Core application process.
29+
/// If <see langword="true"/>, <see cref="RunSessionHandler"/> is called once for every request for each request,
30+
/// the "/sse" endpoint will be disabled, and the "MCP-Session-Id" header will not be used.
31+
/// Unsolicited server-to-client messages and all server-to-client requests are also unsupported, because any responses
32+
/// may arrive at another ASP.NET Core application process.
3333
/// Client sampling and roots capabilities are also disabled in stateless mode, because the server cannot make requests.
3434
/// Defaults to <see langword="false"/>.
3535
/// </remarks>

0 commit comments

Comments
 (0)