@leanmcp/env-injection 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img
|
|
3
|
+
src="https://raw.githubusercontent.com/LeanMCP/leanmcp-sdk/refs/heads/main/assets/logo.png"
|
|
4
|
+
alt="LeanMCP Logo"
|
|
5
|
+
width="400"
|
|
6
|
+
/>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>@leanmcp/env-injection</strong><br/>
|
|
11
|
+
Request-scoped environment variable injection for LeanMCP tools.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://www.npmjs.com/package/@leanmcp/env-injection">
|
|
16
|
+
<img src="https://img.shields.io/npm/v/@leanmcp/env-injection" alt="npm version" />
|
|
17
|
+
</a>
|
|
18
|
+
<a href="https://www.npmjs.com/package/@leanmcp/env-injection">
|
|
19
|
+
<img src="https://img.shields.io/npm/dm/@leanmcp/env-injection" alt="npm downloads" />
|
|
20
|
+
</a>
|
|
21
|
+
<a href="https://docs.leanmcp.com/sdk/env-injection">
|
|
22
|
+
<img src="https://img.shields.io/badge/Docs-leanmcp-0A66C2?" />
|
|
23
|
+
</a>
|
|
24
|
+
<a href="https://discord.com/invite/DsRcA3GwPy">
|
|
25
|
+
<img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" />
|
|
26
|
+
</a>
|
|
27
|
+
<a href="https://x.com/LeanMcp">
|
|
28
|
+
<img src="https://img.shields.io/badge/@LeanMCP-f5f5f5?logo=x&logoColor=000000" />
|
|
29
|
+
</a>
|
|
30
|
+
</p>
|
|
4
31
|
|
|
5
32
|
## Features
|
|
6
33
|
|
|
7
|
-
- **Request-scoped isolation**
|
|
8
|
-
- **@RequireEnv decorator**
|
|
9
|
-
- **getEnv() / getAllEnv()**
|
|
10
|
-
- **Type-safe**
|
|
11
|
-
- **Works with @leanmcp/auth**
|
|
34
|
+
- **Request-scoped isolation** — Each user's secrets are isolated using `AsyncLocalStorage`
|
|
35
|
+
- **@RequireEnv decorator** — Validate required env vars exist before method execution
|
|
36
|
+
- **getEnv() / getAllEnv()** — Access user-specific secrets in your tool code
|
|
37
|
+
- **Type-safe** — Full TypeScript support
|
|
38
|
+
- **Works with @leanmcp/auth** — Integrates with `@Authenticated` decorator
|
|
12
39
|
|
|
13
40
|
## Installation
|
|
14
41
|
|