Skip to content

Conversation

@Pleasurecruise
Copy link
Collaborator

Updated the server to listen explicitly on 127.0.0.1 instead of all interfaces. The log message was also updated to reflect the new binding address.

Reference:
MCPJam/inspector#1095
nbonamy/witsy@a23d4e5

Updated the server to listen explicitly on 127.0.0.1 instead of all interfaces. The log message was also updated to reflect the new binding address.
Copilot AI review requested due to automatic review settings December 16, 2025 21:21
Copy link
Contributor

Copilot AI left a 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 security of the OAuth callback server by explicitly binding it to localhost (127.0.0.1) instead of all network interfaces. This is a security best practice for OAuth flows in desktop applications, preventing potential network-based attacks on the callback endpoint. The change aligns with the existing OAuth provider configuration which already constructs redirect URLs using http://127.0.0.1.

  • Binds the OAuth callback server to 127.0.0.1 instead of the default 0.0.0.0 (all interfaces)
  • Updates the log message to reflect the specific binding address for better observability

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

@kangfenmao kangfenmao merged commit 432b31c into main Dec 17, 2025
7 checks passed
@kangfenmao kangfenmao deleted the fix-rce branch December 17, 2025 02:11
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.

3 participants