Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
149838 stories
·
33 followers

Aspire 13 Delivers Multi-Language Support and Significant Enhancements Across the Platform

1 Share

Aspire 13 has been released as a major milestone in the platform's evolution. As reported by the team, Aspire is no longer branded as “.NET Aspire” and is now positioned as a full polyglot application platform. According to the announcement, version 13 brings first-class support for Python and JavaScript alongside existing .NET capabilities, marking a significant shift forward.

By Almir Vuk
Read the whole story
alvinashcraft
20 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Background Services in ASP.NET Core - Part 2: Practical Examples

1 Share
Background Services in ASP.NET Core - Part 2: Practical Examples
Read the whole story
alvinashcraft
31 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Multi-Browser E2E Testing with Playwright for .NET

1 Share
Multi-Browser E2E Testing with Playwright for .NET
Read the whole story
alvinashcraft
35 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Background Services in ASP.NET Core - Part 1: The Approaches

1 Share
Background Services in ASP.NET Core - Part 1: The Approaches
Read the whole story
alvinashcraft
46 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Building our first MCP Resources enabled MCP Server with C#–Advanced

1 Share

This is a follow-up on an earlier post where I demonstrated how to build your own MCP server in C# and expose one or more MCP resources.

Today we dive a little bit deeper and look at some more advanced features you can add to your MCP server implementation.

Working with complex return types

Resources can return various types. Here are some advanced examples:

Return values from resource methods can be strings (for simple text), ReadResourceResult (for full control), or other types that the SDK automatically marshals into the appropriate format.

Dependency injection

Resources can use dependency injection to access services:

We changed our implementation to use instance methods (not static). Now we need to register the class in Program.cs:

Progress reporting

For long-running operations, you can report progress:

IProgress parameters accepting ProgressNotificationValue values enable progress reporting from resources to clients, with progress notifications propagating to the client if they included a ProgressToken in their request.


Binary resources

You can also return binary content by using a BlobResourceContents type and providing a base64 encoded version of our blob:

Remote Deployment with SSE

For remote deployment, you can use Server-Sent Events (SSE) or HTTP streaming with ASP.NET Core, enabling your MCP server to be accessible over HTTP.

First install an extra NuGet package:

dotnet add package ModelContextProtocol.AspNetCore --prerelease

Then you need to update your Program.cs:

You can now publish the server as a self-contained, ahead-of-time compiled native application, creating small executables that run without requiring the .NET runtime.

More information

If you are looking for an end-2-end example showing all the features I demonstrated, have a look at my GitHub repo:

Read the whole story
alvinashcraft
55 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Mixpanel security incident: what OpenAI users need to know

1 Share
OpenAI shares details about a Mixpanel security incident involving limited API analytics data. No API content, credentials, or payment details were exposed. Learn what happened and how we’re protecting users.
Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories