Skip to content

fix: respect SERVER_TRANSPORT env var instead of hardcoding stdio#8

Open
grubmeshi wants to merge 1 commit into
opensourceops:mainfrom
grubmeshi:fix/server-env-vars
Open

fix: respect SERVER_TRANSPORT env var instead of hardcoding stdio#8
grubmeshi wants to merge 1 commit into
opensourceops:mainfrom
grubmeshi:fix/server-env-vars

Conversation

@grubmeshi
Copy link
Copy Markdown

Summary

The server start() method was hardcoded to always use stdio transport, ignoring the SERVER_TRANSPORT, SERVER_HTTP_PORT, and SERVER_HTTP_HOST environment variables that were documented in the README.

Changes

  • Read transport mode from config.server.transport (populated from SERVER_TRANSPORT env var by ConfigLoader)
  • Support stdio, http, and both transport modes as documented
  • Add HTTP/SSE server with /sse, /messages, and /health endpoints
  • Properly stop HTTP server on shutdown

Testing

  • All existing tests pass
  • Build succeeds

The server start() method was hardcoded to always use stdio transport,
ignoring the SERVER_TRANSPORT, SERVER_HTTP_PORT, and SERVER_HTTP_HOST
environment variables that were documented in the README.

Changes:
- Read transport mode from config.server.transport (which is populated
  from SERVER_TRANSPORT env var by ConfigLoader)
- Support 'stdio', 'http', and 'both' transport modes
- Add HTTP/SSE server with /sse, /messages, and /health endpoints
- Properly stop HTTP server on shutdown

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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