This solution contains two related .NET projects that demonstrate Model Context Protocol (MCP) server implementation and a Blazor web client that consumes the MCP server's REST API.
C#
3
11 commits
updated Jun 13, 2026
This solution contains a Streamable HTTP MCP server and a Blazor Server chat/table app for Anycall mobile phone price lists.
/mcp with bearer-token protection./api/phones.Features/Api/anycall-mobile-data.json././phones./imports.HF_TOKEN.GET /api/phones?date=yyyy-MM-ddGET /api/phones/search?brand=Apple&maxPrice=5000000&date=yyyy-MM-ddGET /api/phones/brands?date=yyyy-MM-ddGET /api/phones/snapshotsPOST /api/phones/snapshots/import-textPOST /api/phones/import/textGET /api/phones/price-diff?fromDate=yyyy-MM-dd&toDate=yyyy-MM-ddGET /api/phones/export/excel?date=yyyy-MM-ddsearch_mobile_phonesget_phone_by_brandget_phones_by_price_rangelist_brandsget_cheapest_phoneslist_price_datescompare_mobile_phone_pricesMost phone tools accept an optional date argument. Price comparison accepts optional fromDate and toDate; when omitted, it compares the latest two available snapshots.
Server SQLite database:
{
"ConnectionStrings": {
"MobilePhones": "Data Source=Data/anycall-mobile.db"
}
}
Blazor MCP and Hugging Face settings:
{
"McpServer": {
"Url": "http://localhost:5194/mcp",
"AuthToken": "my-super-secret-password-123"
},
"HuggingFace": {
"BaseUrl": "https://router.huggingface.co/v1/chat/completions",
"Model": "meta-llama/Llama-3.1-8B-Instruct"
}
}
Set HF_TOKEN or user secrets for Hugging Face. Do not commit HuggingFace:ApiToken.
dotnet run --project DotNetMcpSseServer --launch-profile http
dotnet run --project DotNetMcpBlazorSample --launch-profile http
http://localhost:5194http://localhost:5095dotnet build DotNetMcpSample.sln
dotnet test DotNetMcpSample.Tests\DotNetMcpSample.Tests.csproj --no-build
C#
73.2%
HTML
24.6%
CSS
2.2%
This solution contains two related .NET projects that demonstrate Model Context Protocol (MCP) server implementation and a Blazor web client that consumes the MCP server's REST API.
C#
3
11 commits
updated Jun 13, 2026
This solution contains a Streamable HTTP MCP server and a Blazor Server chat/table app for Anycall mobile phone price lists.
/mcp with bearer-token protection./api/phones.Features/Api/anycall-mobile-data.json././phones./imports.HF_TOKEN.GET /api/phones?date=yyyy-MM-ddGET /api/phones/search?brand=Apple&maxPrice=5000000&date=yyyy-MM-ddGET /api/phones/brands?date=yyyy-MM-ddGET /api/phones/snapshotsPOST /api/phones/snapshots/import-textPOST /api/phones/import/textGET /api/phones/price-diff?fromDate=yyyy-MM-dd&toDate=yyyy-MM-ddGET /api/phones/export/excel?date=yyyy-MM-ddsearch_mobile_phonesget_phone_by_brandget_phones_by_price_rangelist_brandsget_cheapest_phoneslist_price_datescompare_mobile_phone_pricesMost phone tools accept an optional date argument. Price comparison accepts optional fromDate and toDate; when omitted, it compares the latest two available snapshots.
Server SQLite database:
{
"ConnectionStrings": {
"MobilePhones": "Data Source=Data/anycall-mobile.db"
}
}
Blazor MCP and Hugging Face settings:
{
"McpServer": {
"Url": "http://localhost:5194/mcp",
"AuthToken": "my-super-secret-password-123"
},
"HuggingFace": {
"BaseUrl": "https://router.huggingface.co/v1/chat/completions",
"Model": "meta-llama/Llama-3.1-8B-Instruct"
}
}
Set HF_TOKEN or user secrets for Hugging Face. Do not commit HuggingFace:ApiToken.
dotnet run --project DotNetMcpSseServer --launch-profile http
dotnet run --project DotNetMcpBlazorSample --launch-profile http
http://localhost:5194http://localhost:5095dotnet build DotNetMcpSample.sln
dotnet test DotNetMcpSample.Tests\DotNetMcpSample.Tests.csproj --no-build
C#
73.2%
HTML
24.6%
CSS
2.2%