go-sdk/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Spring_MT 35dfcf21c9
examples: Fix SSE streaming issue by moving logging from HTTP to MCP middlewarre (#614)
In `examples/http`, previous HTTP-level logging middleware blocked SSE
streaming because `handler.ServeHTTP()` does not return until the
connection closes for GET requests (SSE streams).
This prevented response headers from being sent to the client.

Changes:
- Replace HTTP-level logging handler with MCP middleware pattern
- Implement logging at the MCP protocol layer using mcp.Middleware
- Add middleware to server using AddReceivingMiddleware()
- Simplify main.go by removing HTTP handler wrapping

This allows SSE streams to work properly while still providing detailed
logging for all MCP protocol-level method calls.

Fixes #632
2025-11-11 11:56:52 -05:00
..
client mcp: clean up stream metadata after completion (#592) 2025-10-20 14:57:56 -04:00
http examples: Fix SSE streaming issue by moving logging from HTTP to MCP middlewarre (#614) 2025-11-11 11:56:52 -05:00
server docs: improve documentation clarity and client integration steps (#567) 2025-10-13 11:47:58 -04:00