You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+78-4Lines changed: 78 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
-
# Streamable MCP Server on AWS Lambda with OAuth 2.1 Authorization
1
+
# Streamable MCP Server on AWS Lambda with Multiple Authorization Options
2
2
3
-
This project implements a Model Context Protocol (MCP) server as a containerized application on AWS Lambda, accessible via Amazon API Gateway. It showcases the [`Streamable-HTTP`](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) transport along with OAuth 2.1 authorization through AWS Cognito, providing a fully standards-compliant implementation.
3
+
This project implements a Model Context Protocol (MCP) server as a containerized application on AWS Lambda, accessible via Amazon API Gateway. It showcases the [`Streamable-HTTP`](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) transport along with multiple authorization options:
4
+
5
+
1.**OAuth 2.1 Authorization** through AWS Cognito
6
+
2.**Lambda Authorizer** for simpler token-based authorization
4
7
5
8
The MCP server in this repo:
6
9
- Uses session management via the `Mcp-Session-id` header
7
-
-Implements OAuth 2.1 authorization at the transport layer
10
+
-Supports both OAuth 2.1 and Lambda authorizer methods
8
11
- Provides tools to analyze Amazon Bedrock usage
9
12
10
13
Both server and client are written in TypeScript, with the server deployed as a container on Lambda.
@@ -15,6 +18,7 @@ Both server and client are written in TypeScript, with the server deployed as a
15
18
16
19
-**Standards Compliance**: Implements both Streamable-HTTP transport and OAuth 2.1 authorization specs
17
20
-**Serverless Deployment**: Runs on AWS Lambda and API Gateway for scalability
21
+
-**Multiple Authorization Options**: Supports both OAuth 2.1 and Lambda authorizer methods
18
22
-**Secure Authentication**: Uses AWS Cognito for OAuth 2.1 authentication
19
23
-**Discovery Support**: Implements OAuth discovery flow per RFC9728
0 commit comments