go-sdk/examples/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Shusaku Yasoda a3935c6be2
examples/server: add example MCP server with JWT and API key (#339)
This commit introduces a new example demonstrating the integration of
authentication middleware with an MCP server. The server supports both
JWT token and API key authentication, along with scope-based access
control for various MCP tools. Key features include token generation
endpoints, in-memory API key storage, and a health check endpoint.

New files added:
- `main.go`: Implements the MCP server and authentication logic.
- `go.mod` and `go.sum`: Manage dependencies for the project.
- `README.md`: Provides setup instructions, available endpoints, and
example usage.

This example serves as a reference for implementing secure access to MCP
tools.

Fixes #330
2025-09-02 11:49:46 -04:00
..
auth-middleware examples/server: add example MCP server with JWT and API key (#339) 2025-09-02 11:49:46 -04:00
basic mcp/examples: move server example into example folder (#357) 2025-08-26 09:13:30 -04:00
completion all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
custom-transport all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
elicitation mcp/examples: move elicitation example into example folder (#354) 2025-08-22 11:01:48 -04:00
everything examples: add an everything example, and simplify hello 2025-08-22 14:00:37 -04: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 mcp/examples: moves middleware examples into example folder (#356) 2025-08-22 11:18:05 -04:00
rate-limiting examples: add a 'listeverything' client example, and reorganize 2025-08-06 11:46:59 -04:00
sequentialthinking all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00
sse all: remove ServerRequest[T] for concrete T (#342) 2025-08-21 12:10:53 -04:00