- 6,400lines of .NET 8 in the media service's six-project solution
- 100call-to-persona bindings exercised by its unit suite
- 9,650lines in the weather MCP server, ported to the official C# SDK
A narrow Windows bridge into Teams calls
Helix had to put a self-hosted voice agent into Microsoft Teams calls, and Microsoft's real-time media stack runs only on Windows.
I keep the Windows component narrow so the system's logic stays in one place.
The service is .NET 8, a six-project solution covering host, calls, media, transport, contracts and unit tests, built on Microsoft's real-time media SDK and hosted on an Azure virtual machine with managed identity and vault-held secrets. It handles the calling callbacks and call lifecycle, answers inbound calls and places outbound ones, and binds each call to a persona.
The identity side is told in Solving the digital-employee identity.
Moving frames without stalling the SDK
Media callbacks copy the frame and return immediately, so SDK threads never wait on the network. The transport has bounded queues on both sides of the socket, and the SDK's unmanaged audio send buffers are tracked and released explicitly, outside the garbage collector's timing.
The sender transmits only while the socket is active. On reconnect it drops microphone audio captured during the break, so the conversation resumes in real time instead of replaying a backlog.
Rate held at 50.001 buffers per second. A forced mid-call reconnect, run separately, recovered after one 250 ms retry.
The whole bridge is told in A self-hosted colleague in a Teams call.
Sharing an agent's screen into the meeting
Helix also lets an agent show its screen in a meeting, through H.264 frames the same bridge publishes.
Porting an MCP server onto the official SDK
Auth and access plane includes a weather-intelligence MCP server I first wrote in TypeScript, with a local transport and a trimmed surface for Microsoft Copilot Studio. I ported it to C# on the official MCP C# SDK with the ASP.NET Core HTTP transport, using the .NET HTTP client factory and in-memory caching.
the 8 in tone formed the trimmed Copilot Studio surface
over the same nine public data services
The media SDK, Teams, Graph and Agent 365 are Microsoft's, used as Microsoft ships them.