Add support for SSE and stdio transport modes

This commit is contained in:
Chiran Fernando 2025-04-05 09:37:43 +05:30
parent 2548eb569a
commit 61d3c7e7e1
4 changed files with 177 additions and 48 deletions

View file

@ -1,10 +1,13 @@
# config.yaml
transport_mode: "stdio" # Options: "sse" or "stdio"
# For SSE mode, mcp_server_base_url and mcp_paths are required
# For stdio mode, both are optional and will be derived from command configuration if not specified
mcp_server_base_url: "http://localhost:8000"
listen_port: 8080
timeout_seconds: 10
mcp_paths:
mcp_paths: # Required in SSE mode, ignored in stdio mode (derived from command)
- /messages/
- /sse