Skip to content

Question of difference accessing MCP Server via YARP vs Direct #777

Description

@andrew-at-v

Question about routing as its bit not clear

When I access MCP Server directly, I can access it this way
http://localhost:5030/sse

But when I use YARP in between, I have to use this route
https://localhost:7176/api/public/weather ---> this is working
https://localhost:7176/api/public/weather/sse ---> this is not working !!!

"fallbackRouteWeatherPublic": {
  "ClusterId": "ClusterWeather",
  "AuthorizationPolicy": "ApiKeyPolicy",
  "Match": {
    "Path": "/api/public/weather/{**catch-all}"
  },
  "Transforms": [
    { "PathRemovePrefix": "/api/public/weather" }
  ]
}

So i wonder why route ended with /sse is not working with YARP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions