-
Notifications
You must be signed in to change notification settings - Fork 131
Load config file for MCP inspector and update path handling #816
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the MCP Inspector integration by enabling immediate inspection capabilities through config file loading and adding support for custom MCP server path handling. The changes allow for more flexible configuration of MCP server communication paths beyond the default endpoint.
Key changes:
- Updated MCP Inspector to version 0.16.5 and modified config generation to load config files immediately
- Added support for custom path configuration in MCP server metadata and extension methods
- Implemented URL combination logic for proper path handling in MCP communication
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
McpInspectorResourceBuilderExtensions.cs |
Added path parameter support, updated config generation with proper field names, and implemented URL combination utility |
McpServerMetadata.cs |
Extended record to include Path parameter for custom MCP communication paths |
McpInspectorResource.cs |
Updated version to 0.16.5 and modified AddMcpServer method to accept path parameter |
Program.cs |
Updated MCP mapping to use explicit "/mcp" path instead of default |
McpInspectorResourceBuilderExtensionsTests.cs |
Added test coverage for custom path functionality |
src/CommunityToolkit.Aspire.Hosting.McpInspector/McpInspectorResourceBuilderExtensions.cs
Show resolved
Hide resolved
Minimum allowed line rate is |
Enable immediate inspection of the MCP inspector by loading the config file. Update the MCP server path handling to allow custom paths for communication.