-
Notifications
You must be signed in to change notification settings - Fork 6
BYOC MCP Prompts #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
BYOC MCP Prompts #281
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4a378d6
update railpack supported providers
KevyVo bd41be2
aws prompt
KevyVo 5cdf77b
gcp prompt
KevyVo 6152603
playground prompt
KevyVo 465901e
more detail in BYOC prompts
KevyVo bf2d49f
discuss mcp deployment in its own tutorial
jordanstephens bbec805
Added playground
KevyVo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Deploying with the Defang MCP Server | ||
|
||
This tutorial will show you how to deploy your services with the [Defang MCP Server](/docs/concepts/mcp.md). | ||
|
||
## Prerequisites | ||
|
||
- [The Defang MCP Server](/docs/concepts/mcp.md#installation) | ||
- [A Defang Account](/docs/concepts/authentication) | ||
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/) | ||
|
||
Open your project with an IDE that has the [Defang MCP Server](/docs/concepts/mcp.md) installed. | ||
|
||
:::tip | ||
If the Defang MCP server doesn’t start automatically, try starting or restarting it from your IDE settings. | ||
 | ||
::: | ||
|
||
## AWS | ||
|
||
### Step 1 - Collect your credentials | ||
|
||
There are many ways to authenticate with your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html). | ||
|
||
:::tip | ||
If you have the AWS CLI installed, you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID. (The AWS CLI is not required in order to use Defang with AWS) | ||
::: | ||
|
||
### Step 2 - Setup Defang for AWS | ||
|
||
Open your chat window and type `/defang.AWS_Setup`, or select the corresponding prompt from your IDE’s options. | ||
|
||
 | ||
|
||
The [MCP prompt](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) accepts two types of credentials: | ||
|
||
1. Method 1 - Using an AWS Profile: | ||
The following prompt will have three arguments and only the first argument is required: | ||
|
||
- AWS Credential - REQUIRED : The name of the AWS profile you want to use (e.g., "default" or "my-profile").  | ||
- AWS_SECRET_ACCESS_KEY - IGNORE : Leave this argument blank and press Enter.  | ||
- AWS_REGION - OPTIONAL : The AWS region where you want to deploy your services (e.g., "us-west-2").  | ||
|
||
2. Method 2 - Using Access Keys: | ||
The following prompt will have three arguments and all three arguments are required: | ||
|
||
- AWS Credential - REQUIRED : The AWS Access Key ID (e.g., "AKIAIOSFODNN7EXAMPLE").  | ||
- AWS_SECRET_ACCESS_KEY - REQUIRED : The AWS Secret Access Key. (e.g., "wJalrXUtnFEMI/K7MDENG/bPExampleSecretKey"). | ||
- AWS_REGION - REQUIRED : The AWS region where you want to deploy your services (e.g., "us-west-2").  | ||
|
||
### Step 3 - Deploy | ||
|
||
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the IDE to execute. | ||
|
||
### Step 4 - Inspect your deployment | ||
|
||
You can check the status of your deployment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the resources created in your AWS Dashboard. | ||
|
||
## GCP | ||
|
||
### Prerequisites | ||
|
||
- [gcloud CLI](https://cloud.google.com/sdk/docs/install) | ||
- [GCP Application Default Credentials](https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment) | ||
|
||
### Step 1 - Collect your credentials | ||
|
||
After signing in to your GCP account, select an existing project or [create a new project](https://developers.google.com/workspace/guides/create-project). Make sure [billing is enabled](https://cloud.google.com/billing/docs/how-to/modify-project). Then, note down the project ID for the next step. | ||
|
||
### Step 2 - Setup Defang for GCP | ||
|
||
In your chat window, type `/defang.GCP_Setup` or select the corresponding prompt from your IDE’s options. | ||
|
||
 | ||
|
||
The [MCP argument](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) will require your GCP project ID you created in [Step 1](#step-1---collect-your-credentials-1). | ||
 | ||
|
||
### Step 3 - Deploy | ||
|
||
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the IDE to execute. | ||
|
||
### Step 4 - Inspect your deployment | ||
|
||
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 GCP Dashboard. | ||
|
||
## Playground | ||
|
||
### Step 1 - Setting your provider | ||
|
||
In your chat window, type `/defang.Playground_Setup` or select the corresponding prompt from your IDE’s options. | ||
|
||
 | ||
|
||
There are no arguments to this prompt. | ||
|
||
### Step 2 - Deploy | ||
|
||
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the LLM to execute. | ||
|
||
### Step 3 - Inspect your deployment | ||
|
||
You can check the status of your deployment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the the project on the [Defang portal](https://portal.defang.io/projects). | ||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a link to instructions on how to sign in to the GCP account (similar to how we have that for AWS)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well not really because we have a list of pre recs and they have to have all that to be able to use this feature. Unless you think we should point that out specifically here.
https://github.com/DefangLabs/defang-docs/pull/281/files#diff-1eba8d9c0631215162beb78c17860fd9be34a65ec489fa858da41f2bfd21c7e2R10-R16