add --skip-auth flag #33
Closed
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.
Add --skip-auth flag for trusted environments
Background
While mcp-remote's primary purpose is to provide OAuth authentication capabilities to clients connecting to MCP servers (enabling stdio-only MCP clients to connect to remote authenticated servers), there are valid use cases where the tool can be beneficial even without authentication, particularly in trusted environments.
Changes
This PR introduces the
--skip-authflag which allows mcp-remote to operate as a simple SSE connection proxy, bypassing all authentication-related processes. This addition:Use Case
The original purpose of mcp-remote is to bridge the gap between stdio-only MCP clients and remote authenticated servers by providing OAuth capabilities. However, there are several scenarios where direct SSE connection capabilities are valuable:
Cloud Desktop Environment Support: Currently, Cloud Desktop does not support remote connections natively. In development environments where Cloud Desktop is used with local MCP servers, mcp-remote can serve as a simple SSE connection proxy without the need for authentication overhead.
Development Environments: In local development setups or internal networks where authentication is not required, the authentication layer becomes unnecessary overhead.
Testing and Debugging: When testing MCP server implementations or debugging connection issues, having a simple SSE proxy without authentication complexity can be beneficial.
The
--skip-authflag allows developers to utilize mcp-remote's SSE connection proxy capabilities directly in these trusted environments, making it particularly valuable for Cloud Desktop users who need remote connection functionality.Implementation
The implementation is minimally invasive and maintains the existing authentication flow as the default behavior. The
--skip-authflag simply bypasses the authentication-related processes when specified, allowing the tool to function as a straightforward SSE connection proxy.Documentation
Updated README.md to clarify:
--skip-authflag in trusted environments where authentication is not needed