Skip to content

WithHttpTransport missing? #311

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

Closed
mphacker opened this issue Apr 15, 2025 · 2 comments
Closed

WithHttpTransport missing? #311

mphacker opened this issue Apr 15, 2025 · 2 comments

Comments

@mphacker
Copy link

Describe the bug
I am trying to follow the sample located here:
https://github.com/modelcontextprotocol/csharp-sdk/tree/312aede7d6ddba5170212fd8c64418409f0f585b/src/ModelContextProtocol.AspNetCore

.WithHttpTransport() is not defined

To Reproduce
Steps to reproduce the behavior:

  1. Create new empty web project
  2. Add nuget package as described in the readme.
  3. Copy the code from ReadMe into program.cs

Expected behavior
.WithHttpTransport is found and works as expected

Logs
n/a

Additional context
Looking for an approach that allows me to run my custom MCP Server over Https instead of STDIO so I can run the MCP server on a machine separate from the MCP Client.

@mphacker mphacker added the bug Something isn't working label Apr 15, 2025
@stephentoub
Copy link
Contributor

stephentoub commented Apr 15, 2025

WithHttpTransport only got merged yesterday. A new build has not been published to nuget including it yet.

Look at the AspNetCoreSseServer sample from before that change merged:
https://github.com/modelcontextprotocol/csharp-sdk/tree/d6cc65acedbc37ff9c09f7d2020479141fe24851/samples/AspNetCoreSseServer

@stephentoub stephentoub removed the bug Something isn't working label Apr 15, 2025
@mphacker
Copy link
Author

mphacker commented Apr 15, 2025 via email

@stephentoub stephentoub closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants