Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci.global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "10.0.302"
"version": "10.0.401"
}
}
10 changes: 5 additions & 5 deletions src/SeqCli/SeqCli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@
<Content Include="Skills\Resources\**\*" Link="Skills\%(RecursiveDir)%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ModelContextProtocol" Version="1.4.1" />
<PackageReference Include="ModelContextProtocol" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Seq.Api" Version="2026.1.0" />
<PackageReference Include="Serilog" Version="4.4.0" />
<PackageReference Include="Serilog.Formatting.Compact" Version="3.0.0" />
<PackageReference Include="Serilog.Formatting.Compact.Reader" Version="4.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
<PackageReference Include="Autofac" Version="9.3.1" />
<PackageReference Include="Autofac" Version="9.3.4" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="11.0.2" />
<PackageReference Include="Superpower" Version="3.2.1" />
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="10.0.10" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="10.0.10" />
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="10.0.12" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="10.0.12" />
<PackageReference Include="Serilog.Sinks.Seq" Version="9.1.0" />
<PackageReference Include="Seq.Apps" Version="2023.4.0" />
<PackageReference Include="Seq.Syntax" Version="2.0.0-dev-00103" />
<PackageReference Include="Seq.Syntax" Version="2.0.0" />
<PackageReference Include="Tavis.UriTemplates" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
11 changes: 8 additions & 3 deletions test/SeqCli.EndToEnd/Mcp/McpToolTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ protected static T AssertStructuredResult<T>(CallToolResult callToolResult)
AssertTextResult(callToolResult);
Assert.NotNull(callToolResult.StructuredContent);

// Tools returning non-object values have them wrapped in a `result` property by the MCP
// SDK, because the protocol requires `structuredContent` to be an object.
var result = callToolResult.StructuredContent.Value.GetProperty("result");
// Before protocol version 2026-07-28, `structuredContent` had to be an object, so the MCP SDK
// wrapped non-object values (e.g. arrays) in a `result` property. From that version on, the SDK
// sends the value directly. Accept either shape.
var structuredContent = callToolResult.StructuredContent.Value;
var result = structuredContent.ValueKind == JsonValueKind.Object &&
structuredContent.TryGetProperty("result", out var wrapped)
? wrapped
: structuredContent;
return result.Deserialize<T>(JsonSerializerOptions.Web)!;
}

Expand Down
6 changes: 3 additions & 3 deletions test/SeqCli.Tests/SeqCli.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.ML.Tokenizers" Version="2.0.0" />
<PackageReference Include="Microsoft.ML.Tokenizers.Data.O200kBase" Version="2.0.0" />
<!-- This is a transitive dependency of Microsoft.ML.Tokenizers, version is bumped here to avoid a
vulnerability in the 9.0.4 version referenced by that package. -->
<PackageReference Include="Microsoft.Bcl.Memory" Version="10.0.10" />
<PackageReference Include="Microsoft.Bcl.Memory" Version="10.0.12" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\SeqCli\SeqCli.csproj" />
Expand Down