Skip to content

Commit 16dec31

Browse files
committed
Switch to allow-write by default and add jq check
1 parent 7676b87 commit 16dec31

6 files changed

Lines changed: 25 additions & 22 deletions

File tree

plugins/aws-serverless/.mcp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"aws-serverless-mcp": {
44
"command": "uvx",
55
"args": [
6-
"awslabs.aws-serverless-mcp-server@latest"
6+
"awslabs.aws-serverless-mcp-server@latest",
7+
"--allow write"
78
],
89
"env": {
910
"FASTMCP_LOG_LEVEL": "ERROR"

plugins/aws-serverless/skills/aws-lambda-durable-functions/SKILL.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ When not specified, ALWAYS use CDK
7474
- State: "[framework] might not support Lambda durable functions yet"
7575
- Suggest supported frameworks as alternatives
7676

77+
### Serverless MCP Server Unavailable
78+
79+
- Inform user: "AWS Serverless MCP not responding"
80+
- Ask: "Proceed without MCP support?"
81+
- DO NOT continue without user confirmation
82+
7783
### Step 3: Install SDK
7884

7985
**For TypeScript/JavaScript:**
@@ -181,6 +187,12 @@ When implementing or modifying tests for durable functions, ALWAYS verify:
181187
3. Replay behavior is tested with multiple invocations
182188
4. Use `LocalDurableTestRunner` for local testing
183189

190+
### MCP Server Configuration
191+
192+
**Write access is enabled by default.** The plugin ships with `--allow write` in `.mcp.json`, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.
193+
194+
Access to sensitive data (like Lambda and API Gateway logs) is **not** enabled by default. To grant it, add `--allow-sensitive-data-access` to `.mcp.json`.
195+
184196
## Resources
185197

186198
- [AWS Lambda durable functions Documentation](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html)

plugins/aws-serverless/skills/aws-lambda/SKILL.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ This skill requires that AWS credentials are configured on the host machine:
113113

114114
### SAM CLI Setup
115115

116-
1. **Install SAM CLI**: Follow the [SAM CLI installation guide](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html)2
116+
1. **Install SAM CLI**: Follow the [SAM CLI installation guide](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html)
117117
2. **Verify**: Run `sam --version`
118118

119119
### Container Runtime Setup
@@ -123,24 +123,15 @@ This skill requires that AWS credentials are configured on the host machine:
123123

124124
### MCP Server Configuration
125125

126-
The default configuration **prevents** write access and **prevents** access to sensitive data such as Lambda functions logs.
126+
**Write access is enabled by default.** The plugin ships with `--allow write` in `.mcp.json`, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.
127127

128-
To grant access, add these flags to `.mcp.json`:
129-
130-
- `--allow-write`: Enables write operations (project creation, deployments)
131-
- `--allow-sensitive-data-access`: Enables access to Lambda logs and API Gateway logs
128+
Access to sensitive data (like Lambda and API Gateway logs) is **not** enabled by default. To grant it, add `--allow-sensitive-data-access` to `.mcp.json`.
132129

133130
### SAM Template Validation Hook
134131

135-
This plugin includes a `PostToolUse` hook that runs `sam validate` automatically after any edit to `template.yaml` or `template.yml`. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI to be installed and silently skips if it is not available. Users can disable it via `/hooks`.
136-
137-
**Version policy:** `.mcp.json` uses `awslabs.aws-serverless-mcp-server@latest`. This is intentional — the package is pre-1.0 (currently 0.1.x) and under active development, so pinning would miss bug fixes and new tool capabilities. If you need a stable, reproducible setup, pin to a specific version:
138-
139-
```json
140-
"args": ["awslabs.aws-serverless-mcp-server@0.1.17", "--allow-write", "--allow-sensitive-data-access"]
141-
```
132+
This plugin includes a `PostToolUse` hook that runs `sam validate` automatically after any edit to `template.yaml` or `template.yml`. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI and `jq` to be installed and silently skips if it is not available. Users can disable it via `/hooks`.
142133

143-
Check for new versions with `uvx pip index versions awslabs.aws-serverless-mcp-server`.
134+
**Verify**: Run `jq --version`
144135

145136
## Language selection
146137

plugins/aws-serverless/skills/aws-lambda/references/step-functions-testing-skills.md renamed to plugins/aws-serverless/skills/aws-lambda/references/step-functions-testing.md

File renamed without changes.

plugins/aws-serverless/skills/aws-lambda/references/step-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Avoiding Lambda intermediaries for simple DynamoDB reads/writes, SNS publishes,
213213

214214
## Testing
215215

216-
For testing Step Functions workflows, see [step-functions-testing-skills.md](step-functions-testing-skills.md) — covers TestState API (mocking, inspection levels, retry simulation, chained tests) and Step Functions Local (Docker).
216+
For testing Step Functions workflows, see [step-functions-testing.md](step-functions-testing.md) — covers TestState API (mocking, inspection levels, retry simulation, chained tests) and Step Functions Local (Docker).
217217

218218
## Anti-Polling Pattern
219219

plugins/aws-serverless/skills/aws-serverless-deployment/SKILL.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,15 @@ This skill requires that AWS credentials are configured on the host machine:
6262

6363
### AWS Serverless MCP Server
6464

65-
The default configuration **prevents** write access and **prevents** access to sensitive data such as Lambda functions logs.
65+
**Write access is enabled by default.** The plugin ships with `--allow write` in `.mcp.json`, so the MCP server can create projects, generate IaC, and deploy on behalf of the user.
6666

67-
To grant access, add these flags to `.mcp.json`:
68-
69-
- `--allow-write`: Enables write operations (project creation, deployments)
70-
- `--allow-sensitive-data-access`: Enables access to Lambda logs and API Gateway logs
67+
Access to sensitive data (like Lambda and API Gateway logs) is **not** enabled by default. To grant it, add `--allow-sensitive-data-access` to `.mcp.json`.
7168

7269
### SAM Template Validation Hook
7370

74-
This plugin includes a `PostToolUse` hook that runs `sam validate` automatically after any edit to `template.yaml` or `template.yml`. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI to be installed and silently skips if it is not available. Users can disable it via `/hooks`.
71+
This plugin includes a `PostToolUse` hook that runs `sam validate` automatically after any edit to `template.yaml` or `template.yml`. If validation fails, the error is returned as a system message so you can fix it immediately. The hook requires SAM CLI and `jq` to be installed and silently skips if it is not available. Users can disable it via `/hooks`.
72+
73+
**Verify**: Run `jq --version`
7574

7675
## IaC framework selection
7776

0 commit comments

Comments
 (0)