go-sdk/examples/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Theodor Nesfeldt Engøy 6a81e5da2a
examples: bind auth-middleware server to localhost by default (#784)
The auth-middleware example currently defaults to `-http :8080`, which
binds to all interfaces (LAN-exposed) by default.

This changes the default to `localhost:8080` and adds a short comment
noting `-http 0.0.0.0:8080` if you intentionally want to expose it.

Rationale: this example serves token-generation endpoints and
authenticated MCP routes; binding loopback by default avoids accidental
exposure while keeping the opt-in remote behavior.

---------

Co-authored-by: Theodor N. Engøy <theodornengoy@Mac.home>
Co-authored-by: Theodor N. Engøy <theodornengoy@eduroam-193-157-246-146.wlan.uio.no>
2026-02-11 10:02:17 +01:00
..
auth-middleware examples: bind auth-middleware server to localhost by default (#784) 2026-02-11 10:02:17 +01:00
basic mcp/examples: move server example into example folder (#357) 2025-08-26 09:13:30 -04:00
completion docs: document completion support (#495) 2025-09-18 14:27:35 -04:00
custom-transport all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
distributed mcp: set default logging level to info (#411) 2025-09-04 11:10:39 -04:00
elicitation mcp/examples: move elicitation example into example folder (#354) 2025-08-22 11:01:48 -04:00
everything mcp: switch icon theme to named string type (#733) 2025-12-19 16:44:10 -05:00
hello examples: add an everything example, and simplify hello 2025-08-22 14:00:37 -04:00
memory examples/server/memory: fix misleading code (#369) 2025-08-25 16:48:10 -04:00
middleware examples/server/middleware: log tool result (#400) 2025-09-03 11:34:02 -04:00
rate-limiting mcp: use synctest for timing-dependent tests (#756) 2026-02-10 10:40:11 +01:00
sequentialthinking mcp: use rand.Text and slog.DiscardHandler over internal implementation (#773) 2026-02-03 14:23:59 +01:00
sse SSE: Add support for SSE handler options (#508) 2025-09-19 13:01:57 -04:00
toolschemas mcp: allow any value for schemas (#517) 2025-09-26 11:55:54 -04:00