You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): allow --http-url as standalone option for Gemini
Add --http-url to mutually exclusive group with --command and --url,
allowing Gemini users to create servers using only --http-url for HTTP
transport without requiring --url or --command.
Key changes:
- Add --http-url to server_type_group mutually exclusive group
- Update validation to accept http_url as valid transport option
- Update transport switching logic to handle httpUrl field
- Update error messages to mention --http-url option
This completes Issue 3 implementation by allowing Gemini's HTTP transport
to be configured directly via CLI without requiring --url first.
Related: Issue 3 - Gemini dual-transport support
# Conditional validation: Create requires command OR url, update does not
665
+
# Conditional validation: Create requires command OR url OR http_url, update does not
666
666
ifnotis_update:
667
-
# Create operation: require commandor url
668
-
ifnotcommandandnoturl:
669
-
print(f"Error: When creating a new server, you must provide either --command (for local servers)or --url (for remote servers)")
667
+
# Create operation: require command, url, or http_url
668
+
ifnotcommandandnoturlandnothttp_url:
669
+
print(f"Error: When creating a new server, you must provide either --command (for local servers), --url (for SSE remote servers), or --http-url (for HTTP remote servers, Gemini only)")
670
670
return1
671
671
672
672
# Parse environment variables, headers, and inputs
0 commit comments