Skip to content

fixes #116 MCP-Router Creating Malformed URL When Invoking A Tool Reg…#117

Merged
stevehu merged 4 commits into
masterfrom
issue116
Jun 12, 2026
Merged

fixes #116 MCP-Router Creating Malformed URL When Invoking A Tool Reg…#117
stevehu merged 4 commits into
masterfrom
issue116

Conversation

@stevehu

@stevehu stevehu commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

…istered To The MCP Router

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an MCP router URL-construction bug where the base path from a direct-registry URL could be duplicated when the tool’s configured path already included that base segment, resulting in malformed backend request URLs.

Changes:

  • Refactors tool URL path joining into combine_base_and_tool_path with explicit base/tool path normalization.
  • Avoids duplicating the base path when the tool path already contains it (on a path-segment boundary).
  • Adds regression tests covering direct-registry duplication and apply_tool_path path-joining behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frameworks/light-pingora/src/mcp.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread frameworks/light-pingora/src/mcp.rs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread frameworks/light-pingora/src/mcp.rs Outdated
Comment thread frameworks/light-pingora/src/mcp.rs Outdated
Comment thread frameworks/light-pingora/src/mcp.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@stevehu stevehu merged commit e8a5dba into master Jun 12, 2026
1 check passed
@stevehu stevehu deleted the issue116 branch June 12, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants