@@ -6,17 +6,13 @@ This guide will walk you through building the source code in this repository,
6
6
deploying example MCP servers in Lambda functions,
7
7
and using an example chatbot client to communicate with those Lambda-based MCP servers.
8
8
9
- The example chatbot client will communicate with three servers:
9
+ The example chatbot client will communicate with five servers:
10
10
11
- 1 . a Lambda function-based 'time' MCP server (Python)
12
- 2 . a Lambda function-based 'weather-alerts' MCP server (Typescript)
13
- 3 . a [ local 'fetch' MCP server] ( https://github.com/modelcontextprotocol/servers/tree/main/src/fetch )
14
-
15
- To use the remote 'time' server, you can ask the chatbot questions like "What is the current time?".
16
-
17
- To use the remote 'weather-alerts' server, you can ask the chatbot questions like "Are there any weather alerts right now?".
18
-
19
- To use the local 'fetch' server, you can ask questions like "Who is Tom Cruise?".
11
+ 1 . a Lambda function-based ** time** MCP server (Python). Ask questions like "What is the current time?".
12
+ 2 . a Lambda function-based ** mcpdoc** MCP server (Python). Ask questions like "What documentation sources do you have access to?".
13
+ 3 . a Lambda function-based ** weather-alerts** MCP server (Typescript). Ask questions like "Are there any weather alerts right now?".
14
+ 4 . a Lambda function-based ** cat-facts** MCP server (Typescript). Ask questions like "Tell me something about cats".
15
+ 5 . a [ local ** fetch** MCP server] ( https://github.com/modelcontextprotocol/servers/tree/main/src/fetch ) . Ask questions like "Who is Tom Cruise?".
20
16
21
17
### Setup
22
18
@@ -71,7 +67,7 @@ npm run build
71
67
npm link
72
68
```
73
69
74
- ### Deploy the example Python server
70
+ ### Deploy the example Python servers
75
71
76
72
Deploy the Lambda 'time' function - the deployed function will be named "mcp-server-time".
77
73
@@ -83,7 +79,17 @@ uv pip install -r requirements.txt
83
79
cdk deploy --app ' python3 cdk_stack.py'
84
80
```
85
81
86
- ### Deploy the example Typescript server
82
+ Deploy the Lambda 'mcpdoc' function - the deployed function will be named "mcp-server-mcpdoc".
83
+
84
+ ``` bash
85
+ cd examples/servers/mcpdoc/
86
+
87
+ uv pip install -r requirements.txt
88
+
89
+ cdk deploy --app ' python3 cdk_stack.py'
90
+ ```
91
+
92
+ ### Deploy the example Typescript servers
87
93
88
94
Deploy the Lambda 'weather-alerts' function - the deployed function will be named "mcp-server-weather-alerts".
89
95
@@ -99,6 +105,20 @@ npm run build
99
105
cdk deploy --app ' node lib/weather-alerts-mcp-server.js'
100
106
```
101
107
108
+ Deploy the Lambda 'cat-facts' function - the deployed function will be named "mcp-server-cat-facts".
109
+
110
+ ``` bash
111
+ cd examples/servers/cat-facts/
112
+
113
+ npm install
114
+
115
+ npm link @aws/run-mcp-servers-with-aws-lambda
116
+
117
+ npm run build
118
+
119
+ cdk deploy --app ' node lib/cat-facts-mcp-server.js'
120
+ ```
121
+
102
122
### Run the example Python client
103
123
104
124
Run the Python-based chatbot client:
@@ -131,7 +151,7 @@ npm run start
131
151
132
152
Install pre-commit hooks to ensure that your commits follow conventional commit guidelines:
133
153
134
- ```
154
+ ``` bash
135
155
cd src/python
136
156
uv run pre-commit install
137
157
```
0 commit comments