Skip to content

Commit bde6b36

Browse files
committed
add eslint and prettier to the project
1 parent 5df50a1 commit bde6b36

17 files changed

Lines changed: 1923 additions & 773 deletions

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Build output
2+
dist
3+
build
4+
5+
# Dependencies
6+
node_modules
7+
8+
# Lock files
9+
package-lock.json
10+
yarn.lock
11+
12+
# Log files
13+
*.log

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"endOfLine": "lf"
8+
}

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ This server eliminates custom scripts and manual LocalStack management with dire
1313

1414
This server provides your AI with dedicated tools for managing your LocalStack environment:
1515

16-
| Tool Name | Description | Key Features |
17-
| :--- | :--- | :--- |
18-
| [`localstack-management`](./src/tools/localstack-management.ts) | Manages LocalStack container operations and settings | - Execute start, stop, restart, and status checks<br/>- Integrate LocalStack Pro authentication tokens<br/>- Inject custom environment variables<br/>- Verify real-time status and perform health monitoring |
19-
| [`localstack-deployer`](./src/tools/localstack-deployer.ts) | Handles infrastructure deployment to LocalStack environments | - Automatically run CDK and Terraform tooling to deploy infrastructure locally<br/>- Enable parameterized deployments with variable support<br/>- Process and present deployment results<br/>- Requires you to have [`cdklocal`](https://github.com/localstack/aws-cdk-local) or [`tflocal`](https://github.com/localstack/terraform-local) installed in your system path |
20-
| [`localstack-logs-analysis`](./src/tools/localstack-logs-analysis.ts) | Analyzes LocalStack logs for troubleshooting and insights | - Offer multiple analysis options including summaries, errors, requests, and raw data<br/>- Filter by specific services and operations<br/>- Generate API call metrics and failure breakdowns<br/>- Group errors intelligently and identify patterns |
21-
| [`localstack-iam-policy-analyzer`](./src/tools/localstack-iam-policy-analyzer.ts) | Handles IAM policy management and violation remediation | - Set IAM enforcement levels including `enforced`, `soft`, and `disabled` modes<br/>- Search logs for permission-related violations<br/>- Generate IAM policies automatically from detected access failures<br/>- Requires a valid LocalStack Auth Token |
22-
| [`localstack-chaos-injector`](./src/tools/localstack-chaos-injector.ts) | Injects and manages chaos engineering faults for system resilience testing | - Inject, add, remove, and clear service fault rules<br/>- Configure network latency effects<br/>- Comprehensive fault targeting by service, region, and operation<br/>- Built-in workflow guidance for chaos experiments |
23-
| [`localstack-cloud-pods`](./src/tools/localstack-cloud-pods.ts) | Manages LocalStack state snapshots for development workflows | - Save current state as Cloud Pods<br/>- Load previously saved Cloud Pods instantly<br/>- Delete Cloud Pods or reset to a clean state<br/>- Requires a valid LocalStack Auth Token |
16+
| Tool Name | Description | Key Features |
17+
| :-------------------------------------------------------------------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
18+
| [`localstack-management`](./src/tools/localstack-management.ts) | Manages LocalStack container operations and settings | - Execute start, stop, restart, and status checks<br/>- Integrate LocalStack Pro authentication tokens<br/>- Inject custom environment variables<br/>- Verify real-time status and perform health monitoring |
19+
| [`localstack-deployer`](./src/tools/localstack-deployer.ts) | Handles infrastructure deployment to LocalStack environments | - Automatically run CDK and Terraform tooling to deploy infrastructure locally<br/>- Enable parameterized deployments with variable support<br/>- Process and present deployment results<br/>- Requires you to have [`cdklocal`](https://github.com/localstack/aws-cdk-local) or [`tflocal`](https://github.com/localstack/terraform-local) installed in your system path |
20+
| [`localstack-logs-analysis`](./src/tools/localstack-logs-analysis.ts) | Analyzes LocalStack logs for troubleshooting and insights | - Offer multiple analysis options including summaries, errors, requests, and raw data<br/>- Filter by specific services and operations<br/>- Generate API call metrics and failure breakdowns<br/>- Group errors intelligently and identify patterns |
21+
| [`localstack-iam-policy-analyzer`](./src/tools/localstack-iam-policy-analyzer.ts) | Handles IAM policy management and violation remediation | - Set IAM enforcement levels including `enforced`, `soft`, and `disabled` modes<br/>- Search logs for permission-related violations<br/>- Generate IAM policies automatically from detected access failures<br/>- Requires a valid LocalStack Auth Token |
22+
| [`localstack-chaos-injector`](./src/tools/localstack-chaos-injector.ts) | Injects and manages chaos engineering faults for system resilience testing | - Inject, add, remove, and clear service fault rules<br/>- Configure network latency effects<br/>- Comprehensive fault targeting by service, region, and operation<br/>- Built-in workflow guidance for chaos experiments |
23+
| [`localstack-cloud-pods`](./src/tools/localstack-cloud-pods.ts) | Manages LocalStack state snapshots for development workflows | - Save current state as Cloud Pods<br/>- Load previously saved Cloud Pods instantly<br/>- Delete Cloud Pods or reset to a clean state<br/>- Requires a valid LocalStack Auth Token |
2424

2525
## Installation
2626

27-
| Editor | Installation |
28-
|:------:|:-------------|
29-
| **Cursor** | [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=localstack-mcp-server&config=eyJjb21tYW5kIjoibnB4IC15IEBsb2NhbHN0YWNrL2xvY2Fsc3RhY2stbWNwLXNlcnZlciJ9) |
30-
| **VS Code** | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_LocalStack_MCP-0098FF?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22localstack-mcp-server%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40localstack%2Flocalstack-mcp-server%22%5D%7D) |
27+
| Editor | Installation |
28+
| :------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
29+
| **Cursor** | [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=localstack-mcp-server&config=eyJjb21tYW5kIjoibnB4IC15IEBsb2NhbHN0YWNrL2xvY2Fsc3RhY2stbWNwLXNlcnZlciJ9) |
30+
| **VS Code** | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_LocalStack_MCP-0098FF?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22localstack-mcp-server%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40localstack%2Flocalstack-mcp-server%22%5D%7D) |
3131
| **VS Code Insiders** | [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_LocalStack_MCP-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode-insiders:mcp/install?%7B%22name%22%3A%22localstack-mcp-server%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40localstack%2Flocalstack-mcp-server%22%5D%7D) |
3232

3333
### Prerequisites
@@ -43,25 +43,25 @@ Add the following to your MCP client's configuration file (e.g., `~/.cursor/mcp.
4343

4444
```json
4545
{
46-
"mcpServers": {
47-
"localstack-mcp-server": {
48-
"command": "npx",
49-
"args": ["-y", "@localstack/localstack-mcp-server"]
50-
}
46+
"mcpServers": {
47+
"localstack-mcp-server": {
48+
"command": "npx",
49+
"args": ["-y", "@localstack/localstack-mcp-server"]
5150
}
5251
}
52+
}
5353
```
5454

5555
If you installed from source, change `command` and `args` to point to your local build:
5656

5757
```json
5858
{
59-
"mcpServers": {
60-
"localstack-mcp-server": {
61-
"command": "node",
62-
"args": ["/path/to/your/localstack-mcp-server/dist/stdio.js"]
63-
}
59+
"mcpServers": {
60+
"localstack-mcp-server": {
61+
"command": "node",
62+
"args": ["/path/to/your/localstack-mcp-server/dist/stdio.js"]
6463
}
64+
}
6565
}
6666
```
6767

@@ -73,15 +73,15 @@ Here's how to add your LocalStack Auth Token to the environment variables:
7373

7474
```json
7575
{
76-
"mcpServers": {
77-
"localstack-mcp-server": {
78-
"command": "npx",
79-
"args": ["-y", "@localstack/localstack-mcp-server"],
80-
"env": {
81-
"LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>"
82-
}
76+
"mcpServers": {
77+
"localstack-mcp-server": {
78+
"command": "npx",
79+
"args": ["-y", "@localstack/localstack-mcp-server"],
80+
"env": {
81+
"LOCALSTACK_AUTH_TOKEN": "<YOUR_TOKEN>"
8382
}
8483
}
84+
}
8585
}
8686
```
8787

manifest.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"entry_point": "./dist/stdio.js",
1919
"mcp_config": {
2020
"command": "node",
21-
"args": [
22-
"${__dirname}/./dist/stdio.js"
23-
],
21+
"args": ["${__dirname}/./dist/stdio.js"],
2422
"env": {}
2523
}
2624
},
@@ -86,11 +84,11 @@
8684
{
8785
"name": "cdk-deployment",
8886
"description": "Deploy a CDK project to LocalStack",
89-
"arguments": ["project_path"],
90-
"text": "Please help me deploy my CDK project located at ${arguments.project_path} on my LocalStack container."
87+
"arguments": ["project_path"],
88+
"text": "Please help me deploy my CDK project located at ${arguments.project_path} on my LocalStack container."
9189
},
9290
{
93-
"name": "terraform-deployment",
91+
"name": "terraform-deployment",
9492
"description": "Deploy a Terraform project to LocalStack",
9593
"arguments": ["project_path"],
9694
"text": "Please help me deploy my Terraform project located at ${arguments.project_path} on my LocalStack container."
@@ -108,13 +106,7 @@
108106
"text": "Create chaos faults for ${arguments.services} in ${arguments.regions} for ${arguments.operations} with a probability of ${arguments.probability} and an error of ${arguments.error}."
109107
}
110108
],
111-
"keywords": [
112-
"localstack",
113-
"aws",
114-
"cloud",
115-
"cloud-dev",
116-
"cloud-testing"
117-
],
109+
"keywords": ["localstack", "aws", "cloud", "cloud-dev", "cloud-testing"],
118110
"license": "Apache License 2.0",
119111
"repository": {
120112
"type": "git",

0 commit comments

Comments
 (0)