Skip to content

Conversation

@mkXultra
Copy link

Summary

Adds transport and port configuration options to VoiceMode MCP server, enabling support for stdio, SSE, and streamable-HTTP transports with configurable ports.

Changes

Transport Configuration

  • --transport option: Choose between stdio (default), sse, or streamable-http transports
  • --port option: Configure port for HTTP-based transports (default: 8000)
  • Smart port handling: Port option only applies to HTTP transports, ignored for stdio
  • FastMCP integration: Leverages FastMCP 2.0's built-in multi-transport support

Implementation

  • CLI layer: Added options to voice_mode_main_cli in cli.py
  • Server layer: Updated main() function to accept transport and port parameters
  • Conditional logic: Port parameter passed only for HTTP transports

Benefits

  • Enables Codex and other AI coding assistants that require HTTP transports to work with VoiceMode
  • Run multiple VoiceMode instances on different ports without conflicts
  • Compatible with various MCP clients that require specific transports
  • Enables cloud deployment with HTTP-based transports
  • Facilitates integration testing with multiple server instances
  • Supports browser-based debugging with HTTP transports

Testing

Tested with:

  • Default stdio transport (backward compatibility)
  • SSE transport on custom ports (9001, 9002)
  • Streamable-HTTP transport on custom ports
  • Port conflict handling
  • Help text verification

Usage Examples

# Default stdio transport
voicemode

# SSE with custom port
voicemode --transport sse --port 9001

# Streamable-HTTP with custom port
voicemode --transport streamable-http --port 9002

   - Add --transport and --port CLI options
   - Support stdio (default), sse, and streamable-http transports
   - Enable port configuration for HTTP transports
   - Update server.py main function to accept transport and port parameters
@mkXultra mkXultra changed the title feat: add support for multiple MCP transport types feat: add support for multiple MCP transport types for codex Oct 30, 2025
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.

1 participant