Skip to content

Commit f9f6308

Browse files
Fix MCP samples: update MCP SDK to 0.8.0-preview.1 and fix README references (microsoft#3959)
- Update ModelContextProtocol NuGet package from 0.4.0-preview.3 to 0.8.0-preview.1 - Update System.Net.ServerSentEvents from 10.0.1 to 10.0.3 - Fix OAuth config to use DynamicClientRegistration in Agent_MCP_Server_Auth - Fix incorrect sample name references in README files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4b3df9a commit f9f6308

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

dotnet/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="10.0.3" />
4343
<PackageVersion Include="System.Linq.AsyncEnumerable" Version="10.0.0" />
4444
<PackageVersion Include="System.Net.Http.Json" Version="10.0.0" />
45-
<PackageVersion Include="System.Net.ServerSentEvents" Version="10.0.1" />
45+
<PackageVersion Include="System.Net.ServerSentEvents" Version="10.0.3" />
4646
<PackageVersion Include="System.Text.Json" Version="10.0.3" />
4747
<PackageVersion Include="System.Threading.Channels" Version="10.0.3" />
4848
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
@@ -102,7 +102,7 @@
102102
<PackageVersion Include="A2A" Version="0.3.3-preview" />
103103
<PackageVersion Include="A2A.AspNetCore" Version="0.3.3-preview" />
104104
<!-- MCP -->
105-
<PackageVersion Include="ModelContextProtocol" Version="0.4.0-preview.3" />
105+
<PackageVersion Include="ModelContextProtocol" Version="0.8.0-preview.1" />
106106
<!-- Inference SDKs -->
107107
<PackageVersion Include="AWSSDK.Extensions.Bedrock.MEAI" Version="4.0.5.1" />
108108
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI" Version="0.10.0" />

dotnet/samples/GettingStarted/ModelContextProtocol/Agent_MCP_Server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $env:AZURE_OPENAI_DEPLOYMENT_NAME="gpt-4o-mini" # Optional, defaults to gpt-4o-
2424

2525
## Setup and Running
2626

27-
Run the ModelContextProtocolPluginAuth sample
27+
Run the Agent_MCP_Server sample
2828

2929
```bash
3030
dotnet run

dotnet/samples/GettingStarted/ModelContextProtocol/Agent_MCP_Server_Auth/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
Name = "Secure Weather Client",
3535
OAuth = new()
3636
{
37-
ClientId = "ProtectedMcpClient",
37+
DynamicClientRegistration = new()
38+
{
39+
ClientName = "ProtectedMcpClient",
40+
},
3841
RedirectUri = new Uri("http://localhost:1179/callback"),
3942
AuthorizationRedirectDelegate = HandleAuthorizationUrlAsync,
4043
}

dotnet/samples/GettingStarted/ModelContextProtocol/Agent_MCP_Server_Auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dotnet run
5454

5555
The protected server will start at `http://localhost:7071`
5656

57-
### Step 3: Run the ModelContextProtocolPluginAuth sample
57+
### Step 3: Run the Agent_MCP_Server_Auth sample
5858

5959
Finally, run this client:
6060

0 commit comments

Comments
 (0)