Skip to content

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

SSE Transport

Connect agentgateway to MCP servers via Server-Sent Events

Server-Sent Events (SSE) transport allows agentgateway to connect to remote MCP servers over HTTP with real-time streaming responses.

Overview

SSE transport is useful when:

  • MCP servers run as standalone HTTP services
  • You need real-time streaming of responses
  • The server is accessible over the network

Configuration

# yaml-language-server: $schema=https://agentgateway.dev/schema/config
mcp:
  port: 3000
  policies:
    cors:
      allowOrigins:
        - "*"
      allowHeaders:
        - "*"
      exposeHeaders:
        - "Mcp-Session-Id"
  targets:
  - name: remote-mcp
    mcp:
      host: http://mcp-server:8080/sse

Why use agentgateway?

Direct SSE ConnectionWith agentgateway
Client manages connection lifecycleGateway handles reconnection and buffering
No authenticationOAuth2, API keys, or custom auth
No access controlTool-level authorization
Single server per clientMultiple servers aggregated
No metricsFull observability with OpenTelemetry

Learn more

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.