Skip to content

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

@tjwald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions