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
If you would like to deploy using [MCP](https://modelcontextprotocol.io/), you like need to setup the [Defang MCP Server](../concepts/mcp.md) with the IDE of your choice.
19
+
:::
20
+
21
+
## CLI
22
+
23
+
### Step 1 - Navigate to your project directory
18
24
Head to the folder where your project is located.
19
25
```bash
20
26
$ cd path/to/your/project
21
27
```
22
28
23
-
## Step 2 - Authenticate Defang to use your AWS Account
29
+
###Step 2 - Authenticate Defang to use your AWS Account
24
30
25
31
There are many ways to authenticate your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
26
32
Once you've done that, Defang will look for your AWS credentials in your shell environment and expect to find one of the following credential sets:
@@ -31,7 +37,7 @@ Once you've done that, Defang will look for your AWS credentials in your shell e
31
37
If you have the AWS CLI installed (which is not required in order to use the Defang CLI), you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID.
32
38
:::
33
39
34
-
## Step 3 - Deploy
40
+
###Step 3 - Deploy
35
41
36
42
Invoke the `defang compose up` CLI command with the `--provider=aws` flag or set the `DEFANG_PROVIDER=aws` environment variable.
37
43
@@ -41,10 +47,38 @@ For example:
41
47
$ defang compose up --provider=aws
42
48
```
43
49
44
-
## Step 4 - Inspect your deployment
50
+
###Step 4 - Inspect your deployment
45
51
46
52
Defang will provision resources in your AWS account and deploy your services. You can inspect the resources created in your AWS Dashboard.
47
53
54
+
---
55
+
56
+
## MCP
57
+
58
+
### Step 1 - Navigate to your project directory with your IDE
59
+
Navigate to your project directory and open it in an IDE that has the [Defang MCP Server](../concepts/mcp.md) installed.
60
+
61
+
:::tip
62
+
If the Defang MCP server doesn’t start automatically, try starting or restarting it from your IDE settings.
63
+

64
+
:::
65
+
66
+
### Step 2 - Setting your provider
67
+
In your chat window, type `/mcp.defang.AWS_Setup` or select the corresponding prompt from your IDE’s options.
68
+
69
+

70
+
71
+
The [MCP prompt](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) accepts two types of credentials:
72
+
* the AWS Profile arguement (skip the rest of the prompts after entering the AWS Profile)
73
+
* or, the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_REGION arguments
74
+
75
+
### Step 3 - Deploy
76
+
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the LLM to execute.
77
+
78
+
### Step 4 - Inspect your deployment
79
+
You can check the status of your depolyment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the resources created in your AWS Dashboard.
80
+
81
+
48
82
***
49
83
50
84
For a deeper discussion of the Defang AWS Architecture, including a list of the resources we provision in your account, see our [AWS Provider docs](/docs/providers/aws).
0 commit comments