Skip to content

Commit 98dc8b7

Browse files
committed
better secrets explanation
1 parent 6f992cc commit 98dc8b7

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

  • app/en/home/custom-mcp-server-quickstart

‎app/en/home/custom-mcp-server-quickstart/page.mdx‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,29 @@ This generates a complete project with:
8181
8282
## Setup the secrets in your environment
8383

84-
Secrets can be provided via environment variables.
84+
Secrets are sensitive strings like passwords, api-keys, or other tokens that grant access to a protected resource or API. Arcade includes the "whisper_secret" tool that requires a secret key to be set in your environment. If the secret is not set, the tool will return an error.
8585

86-
<Tabs items={["Terminal", "Environment File"]}>
86+
<Tabs items={["Environment Variable", "Terminal"]}>
8787
<Tabs.Tab>
88-
You can set the environment variable in your terminal directly with this command:
88+
You can create a `.env` file in the root of your project and add your secret:
89+
90+
```env filename=".env"
91+
MY_SECRET_KEY="my-secret-value"
92+
```
93+
94+
The project includes a `.env.example` file with the secret key name and example value.
95+
You can rename it to `.env` to start using it.
8996

9097
```bash
91-
export MY_SECRET_KEY="my-secret-value"
98+
mv .env.example .env
9299
```
93100

94101
</Tabs.Tab>
95102
<Tabs.Tab>
96-
You can create a `.env` file in the root of your project and add your secret:
103+
You can set the environment variable in your terminal directly with this command:
97104

98-
```env filename=".env"
99-
MY_SECRET_KEY="my-secret-value"
105+
```bash
106+
export MY_SECRET_KEY="my-secret-value"
100107
```
101108

102109
</Tabs.Tab>

0 commit comments

Comments
 (0)