Skip to content

McpInspector - Path Encoding And Dosn't preserve References #822

Description

@tjwald

Describe the bug

The McpInspector integration doesn't supported relative paths with multiple '/' in the path.
In addition, the integration doesn't add relationships to the mcp servers it is attached to.

Regression

No response

Steps to reproduce

var server = builder.AddContainer('mcp-server', ...);

builder.AddMcpInspector("mcp-inspector")
    .WithMcpServer(server, path: "/route/mcp");


Will produce no references between server and inspector.

In addition the url in the configuration file will be url encoded: `/route%2Fmcp`

Expected behavior

Have a relationship between the mcp-inspector and the mcp server.

Have the custom path encode correctly.

Screenshots

No response

IDE and version

Rider

IDE version

2025.2

Nuget packages

CommunityToolkit.Aspire.Hosting.McpInspector Version="9.7.2"

Additional context

No response

Help us help you

No, just wanted to report this

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions