Skip to content
MCP ve Eklentiler Orta

SSE Aktarımıyla MCP

HTTP üzerinden Server-Sent Events kullanarak uzak bir MCP sunucusuna bağlanın

Komut

"color:#9CA3AF;font-style:italic"># mcp-config.json
$ {
    "mcpServers": {
      "remote-tools": {
        "url": "http://internal-tools.company.com:3000/sse"
      },
      "modern-api": {
        "url": "http://localhost:3000/mcp",
        "type": "streamable-http"
      }
    }
  }

Yanıt

// SSE: url field instead of command/args
// streamable-http: add type: "streamable-http" for modern transport
// Both for remote/long-running servers

Ayrıştırma Kodu

059669">">// Use SSE/streamable-http when:
059669">">// - Server is already running somewhere (not started by Claude)
059669">">// - Shared team tool server
059669">">// - Remote database proxy
059669">">// Use stdio when:
// - Local tools (filesystem, git, etc.)

Tuzaklar

! Halihazırda çalışan uzak sunucular için SSE kullanın — yerel araçlar için stdio
! streamable-http, daha iyi bağlantı yönetimiyle SSE'nin yeni nesil alternatifidir

İlgili Tarifler