Load config file for MCP inspector and update path handling#816
Merged
Conversation
Contributor
There was a problem hiding this comment.
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 |
Contributor
Minimum allowed line rate is |
This was referenced Sep 1, 2025
This was referenced Sep 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable immediate inspection of the MCP inspector by loading the config file. Update the MCP server path handling to allow custom paths for communication.