@strand-ai/lambda-mcp 0.3.3 → 0.5.2
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 +91 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Lambda MCP Server
|
|
2
|
+
|
|
3
|
+
> [!CAUTION]
|
|
4
|
+
> **UNOFFICIAL PROJECT** — This is a community-built tool, not affiliated with or endorsed by Lambda.
|
|
5
|
+
|
|
6
|
+
[](https://github.com/Strand-AI/lambda-cli/actions/workflows/ci.yml)
|
|
7
|
+
[](https://github.com/Strand-AI/lambda-cli/blob/main/LICENSE)
|
|
8
|
+
[](https://www.npmjs.com/package/@strand-ai/lambda-mcp)
|
|
9
|
+
[](https://modelcontextprotocol.io)
|
|
10
|
+
|
|
11
|
+
An [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server that lets AI assistants manage your [Lambda](https://lambda.ai/) cloud GPU infrastructure.
|
|
12
|
+
|
|
13
|
+
[](https://vscode.dev/redirect/mcp/install?name=lambda&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40strand-ai%2Flambda-mcp%22%5D%7D)
|
|
14
|
+
[](cursor://anysphere.cursor-deeplink/mcp/install?name=lambda&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40strand-ai%2Flambda-mcp%22%5D%7D)
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx @strand-ai/lambda-mcp
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Authentication
|
|
23
|
+
|
|
24
|
+
Get your API key from the [Lambda dashboard](https://cloud.lambda.ai/api-keys/cloud-api).
|
|
25
|
+
|
|
26
|
+
### Option 1: Environment Variable
|
|
27
|
+
```bash
|
|
28
|
+
export LAMBDA_API_KEY=<your-key>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Option 2: Command (1Password, etc.)
|
|
32
|
+
```bash
|
|
33
|
+
export LAMBDA_API_KEY_COMMAND="op read op://Personal/Lambda/api-key"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Claude Code Setup
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
claude mcp add lambda -s user -e LAMBDA_API_KEY=your-api-key -- npx -y @strand-ai/lambda-mcp
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**With 1Password CLI:**
|
|
43
|
+
```bash
|
|
44
|
+
claude mcp add lambda -s user -e LAMBDA_API_KEY_COMMAND="op read op://Personal/Lambda/api-key" -- npx -y @strand-ai/lambda-mcp
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Then restart Claude Code.
|
|
48
|
+
|
|
49
|
+
## Available Tools
|
|
50
|
+
|
|
51
|
+
| Tool | Description |
|
|
52
|
+
|------|-------------|
|
|
53
|
+
| `list_gpu_types` | List all available GPU instance types with pricing, specs, and current availability |
|
|
54
|
+
| `start_instance` | Launch a new GPU instance |
|
|
55
|
+
| `stop_instance` | Terminate a running instance |
|
|
56
|
+
| `list_running_instances` | Show all running instances with status and connection details |
|
|
57
|
+
| `check_availability` | Check if a specific GPU type is available |
|
|
58
|
+
|
|
59
|
+
## Example Prompts
|
|
60
|
+
|
|
61
|
+
Once configured, you can ask Claude things like:
|
|
62
|
+
|
|
63
|
+
- "What GPUs are currently available on Lambda?"
|
|
64
|
+
- "Launch an H100 instance with my ssh key 'macbook'"
|
|
65
|
+
- "Show me my running instances"
|
|
66
|
+
- "Check if any A100s are available"
|
|
67
|
+
- "Terminate instance i-abc123"
|
|
68
|
+
|
|
69
|
+
## Notifications (Optional)
|
|
70
|
+
|
|
71
|
+
Get notified on Slack, Discord, or Telegram when your instance is ready and SSH-able.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Slack
|
|
75
|
+
export LAMBDA_NOTIFY_SLACK_WEBHOOK="https://hooks.slack.com/services/T00/B00/XXX"
|
|
76
|
+
|
|
77
|
+
# Discord
|
|
78
|
+
export LAMBDA_NOTIFY_DISCORD_WEBHOOK="https://discord.com/api/webhooks/123/abc"
|
|
79
|
+
|
|
80
|
+
# Telegram
|
|
81
|
+
export LAMBDA_NOTIFY_TELEGRAM_BOT_TOKEN="123456:ABC-DEF..."
|
|
82
|
+
export LAMBDA_NOTIFY_TELEGRAM_CHAT_ID="123456789"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## CLI
|
|
86
|
+
|
|
87
|
+
Looking for the CLI? See the [full documentation](https://github.com/Strand-AI/lambda-cli).
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strand-ai/lambda-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "MCP server for Lambda
|
|
3
|
+
"version": "0.5.2",
|
|
4
|
+
"description": "Unofficial MCP server for Lambda cloud GPU instances",
|
|
5
5
|
"bin": "lib/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"type": "commonjs",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"keywords": [
|
|
13
13
|
"mcp",
|
|
14
14
|
"model-context-protocol",
|
|
15
|
-
"lambda
|
|
15
|
+
"lambda",
|
|
16
16
|
"gpu",
|
|
17
17
|
"cloud",
|
|
18
18
|
"ai",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"typescript": "^5.0.0"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@strand-ai/lambda-mcp-linux-x64": "0.
|
|
36
|
-
"@strand-ai/lambda-mcp-darwin-x64": "0.
|
|
37
|
-
"@strand-ai/lambda-mcp-darwin-arm64": "0.
|
|
38
|
-
"@strand-ai/lambda-mcp-win32-x64": "0.
|
|
35
|
+
"@strand-ai/lambda-mcp-linux-x64": "0.5.2",
|
|
36
|
+
"@strand-ai/lambda-mcp-darwin-x64": "0.5.2",
|
|
37
|
+
"@strand-ai/lambda-mcp-darwin-arm64": "0.5.2",
|
|
38
|
+
"@strand-ai/lambda-mcp-win32-x64": "0.5.2"
|
|
39
39
|
}
|
|
40
40
|
}
|