Skip to content

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

@andrew-at-v

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

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