Skip to content

Conversation

@jssmith
Copy link
Contributor

@jssmith jssmith commented Jan 20, 2026

Summary

  • Add support for the streamable-http transport option alongside the existing stdio and sse transports
  • This addresses the deprecation of SSE transport in favor of streamable HTTP

Changes

  • Add streamable-http as a transport choice
  • Add --streamable-http-host and --streamable-http-port arguments
  • Call mcp.run_streamable_http_async() for streamable-http transport
  • Add comprehensive tests for all transport options

Usage

uv run postgres-mcp --transport streamable-http --streamable-http-port 8000

Attribution

Based on work by @ahmedmustahid in #78. This PR extracts just the streamable HTTP functionality with tests, without the signal handling and formatting changes.

Related

Test plan

  • All existing tests pass (191 passed)
  • New transport tests verify correct method dispatch for stdio/sse/streamable-http
  • Host/port argument tests verify settings are applied correctly

🤖 Generated with Claude Code

Add support for the streamable-http transport option alongside the existing
stdio and sse transports. This addresses the deprecation of SSE transport
in favor of streamable HTTP.

Changes:
- Add 'streamable-http' as a transport choice
- Add --streamable-http-host and --streamable-http-port arguments
- Call mcp.run_streamable_http_async() for streamable-http transport
- Add comprehensive tests for all transport options

Based on work by @ahmedmustahid in #78.

Closes #102

Co-Authored-By: Ahmed Mustahid <ahmedmustahid@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.

Support for StreamableHttp in the Postgres MCP server

2 participants