Skip to content

Incorporate .WithHttpTransport and .MapMcp into the AspNetCore project #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MCKRUZ opened this issue May 9, 2025 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@MCKRUZ
Copy link

MCKRUZ commented May 9, 2025

Can the AspNetCore project that used to be for SSE be updated with the new .WithHttpTransport and .MapMcp protocols. I am currently unable to get these working with the current code.

@MCKRUZ MCKRUZ added the enhancement New feature or request label May 9, 2025
@MCKRUZ
Copy link
Author

MCKRUZ commented May 12, 2025

Oh totally agree that the code to "do" it is available. The issue I'm having is that there are no "example" projects out there. In trying to get it to work I'm running into issues. I could post them here if you are willing to help troubleshoot. I just figured it might be easier to alter the demos to include these features since SSE is deprecated.

@halter73
Copy link
Contributor

Thanks. It is generally easier to start from a small example when creating issue repros rather than asking us to troubleshoot a complicated project.

Feel free to alter the demo at https://github.com/modelcontextprotocol/csharp-sdk/blob/4043538285ed4324e0aed203dad0eaf73f31fa38/samples/AspNetCoreSseServer/Program.cs to repro any issues you are running into. It already supports both the SSE (at http://localhost:3001/sse) and Streamable HTTP transports (at http://localhost:3001/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants