Skip to content

sdk: Surface verbose MCP diagnostics (mcp.diagnostic) - #2127

Draft
connor4312 wants to merge 1 commit into
github:mainfrom
connor4312:sdk/mcp-diagnostic
Draft

sdk: Surface verbose MCP diagnostics (mcp.diagnostic)#2127
connor4312 wants to merge 1 commit into
github:mainfrom
connor4312:sdk/mcp-diagnostic

sdk: Surface verbose MCP diagnostics (`mcp.diagnostic`)

2aa43db
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Jul 29, 2026 in 4s

61 new alerts

New alerts in code changed by this pull request

  • 60 warnings
  • 1 note

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 9432 in python/copilot/generated/session_events.py

See this annotation in the file changed.

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note generated

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.

Check warning on line 216 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 221 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 227 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 228 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 234 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 216 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsMcpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 221 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsMcpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 227 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsMcpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 228 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsMcpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 234 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsMcpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 216 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.FactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 221 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.FactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 227 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.FactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 228 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.FactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 234 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.FactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 216 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.McpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 221 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.McpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 227 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.McpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 228 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.McpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 234 in dotnet/src/obj/Debug/net10.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SessionEventsJsonContext.McpDiagnosticEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
McpDiagnosticEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 216 in dotnet/src/obj/Debug/net8.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 221 in dotnet/src/obj/Debug/net8.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 227 in dotnet/src/obj/Debug/net8.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.

Check warning on line 228 in dotnet/src/obj/Debug/net8.0/generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/RpcJsonContext.SessionEventsFactoryRunUpdatedEvent.g.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless upcast Warning generated

There is no need to upcast from
FactoryRunUpdatedEvent
to
SessionEvent
- the conversion can be done implicitly.