Created
April 9, 2025 09:57
-
-
Save EngincanV/fdc74ac6164fc779d48a7c04d3055702 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| var builder = Host.CreateEmptyApplicationBuilder(null); | |
| // Add MCP server | |
| builder.Services | |
| .AddMcpServer() | |
| .WithStdioServerTransport() | |
| .WithToolsFromAssembly(); | |
| var app = builder.Build(); | |
| await app.RunAsync(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment