@amazon-devices/amazon-devices-buildertools-mcp 0.1.23 → 0.1.26
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.ja.md +388 -0
- package/README.md +181 -24
- package/dist/assets/vega-developer-context.db +0 -0
- package/dist/startserver +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Amazon Devices Builder Tools MCP Server
|
|
2
2
|
|
|
3
|
+
**English** | [日本語](README.ja.md)
|
|
4
|
+
|
|
3
5
|
A Model Context Protocol (MCP) server that provides context and tools for AI agents to develop and debug apps for Amazon's [Vega OS](https://developer.amazon.com/apps-and-games/vega).
|
|
4
6
|
|
|
5
7
|
## Migration Notice
|
|
@@ -8,13 +10,19 @@ A Model Context Protocol (MCP) server that provides context and tools for AI age
|
|
|
8
10
|
|
|
9
11
|
## Features
|
|
10
12
|
|
|
11
|
-
The Amazon Devices Builder Tools MCP
|
|
13
|
+
The Amazon Devices Builder Tools MCP supports the following capabilities:
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
| App Dev Area | Description | Example Prompts |
|
|
16
|
+
| ------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| **Onboarding** | Onboard to Vega app development using AI agents with setup guidance and Q&A support | <ul><li>`Help me set up Vega app project and test my VPKG on Virtual Device?`</li><li>`Help me setup Vega SDK?`</li><li>`Build and run the app on Virtual device/Connected Device.`</li><li>`Can you tell me about vega app development?`</li><li>`What is the Vega CLI command for measuring cpu usage on a Vega device?`</li></ul> |
|
|
18
|
+
| **Performance** | Debug and fix Time to First Frame (TTFF), Time to Fully Drawn (TTFD), and UI re-rendering issues | <ul><li>`Why is the TTFF higher for my Vega app?`</li><li>`Can you help me debug and fix Time to First Frame issue in my Vega app?`</li><li>`Why is the TTFD higher for my Vega app?`</li><li>`Can you help me minimize unnecessary re-renders in my app?`</li><li>`Find any re-rendering issues in my app.`</li></ul> |
|
|
19
|
+
| **Performance Best Practices** | Analyze components and code to ensure they follow React Native Vega performance best practices | <ul><li>`Help me analyze if this component is following React Native Vega performance best practices`</li></ul> |
|
|
20
|
+
| **Best Practices** | Validate manifest files and implement Vega components following best practices | <ul><li>`Can you help me upgrade my MovieCarousel.tsx from Carousel V1 to V2?`</li><li>`Can you help me implement Carousel?`</li><li>`Can you validate my manifest file and update as needed for my app?`</li></ul> |
|
|
21
|
+
| **UI Development** | Create Vega app UI from screenshots and design mockups | <ul><li>`I have an image at {image_path}. Create a Vega app by creating a new folder using the sample template, update the sample test app to match the image, and confirm that the app can be built and run.`</li></ul> |
|
|
22
|
+
| **Focus Management** | Implement D-Pad navigation and focus management for TV interfaces | <ul><li>`Can you create an app with 2 buttons to show case focus management?`</li></ul> |
|
|
23
|
+
| **Give Feedback** | Provide feedback to Amazon about your experience with the MCP | <ul><li>`I want to provide feedback`</li><li>`How can I provide vega mcp feedback?`</li></ul> |
|
|
24
|
+
| **Crash Analysis** | Diagnose JavaScript, Native, LMK, and ANR crashes with automated ACR analysis | <ul><li>`Why did my app crash?`</li><li>`Help me analyze this ACR file /path/to/crash.acr`</li></ul> |
|
|
25
|
+
| **SDK & CLI** | Install/update SDK and efficiently run CLI tools via spec-driven CLI | <ul><li>`Install/update SDK from AI agents`</li><li>`Build my app`</li><li>`Run my app on virtual device`</li><li>`Run my app on physical device`</li><li>`Run KPI Visualizer and get performance results`</li></ul> |
|
|
18
26
|
|
|
19
27
|
## One-Click Installation
|
|
20
28
|
|
|
@@ -32,48 +40,96 @@ Some of the popular AI Agents support installing MCP servers with a single click
|
|
|
32
40
|
|
|
33
41
|
[Add to VSCode](vscode:mcp/install?%7B%22name%22%3A%22amazon-devices-buildertools-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40amazon-devices%2Famazon-devices-buildertools-mcp%40latest%22%5D%7D)
|
|
34
42
|
|
|
35
|
-
|
|
36
43
|
## Installation with script
|
|
37
44
|
|
|
38
45
|
Run the following command to **automatically** install Amazon Devices Builder Tools MCP in your AI Agent and add Vega-specific context document to your project to guide AI agents:
|
|
39
46
|
|
|
40
|
-
> ℹ️ Important: It is important to run `npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest
|
|
47
|
+
> ℹ️ Important: It is important to run `npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context` to install the Vega-context document for your preferred AI agent in the project directory. This step is required even after one-click install of mcp.
|
|
48
|
+
|
|
49
|
+
> ⚠️ **Deprecation Notice**: The `--init-context` flag is deprecated and will be removed in a future version. Please use the `init-context` subcommand instead.
|
|
41
50
|
|
|
42
51
|
```bash
|
|
52
|
+
# Recommended (new subcommand)
|
|
53
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context
|
|
54
|
+
|
|
55
|
+
# Deprecated (will be removed)
|
|
43
56
|
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest --init-context
|
|
44
57
|
```
|
|
45
58
|
|
|
46
|
-
This interactive
|
|
59
|
+
This command supports both **interactive** and **non-interactive** modes:
|
|
60
|
+
|
|
61
|
+
**Interactive Mode (default):**
|
|
47
62
|
|
|
48
63
|
1. **Display available AI agents** and their context file requirements
|
|
49
64
|
2. **Let you select your preferred AI agent** from the supported list
|
|
50
|
-
3. **Update selected agent's MCP settings** to configure the Amazon Devices Builder Tools MCP server
|
|
65
|
+
3. **Update selected agent's MCP settings** to configure the Amazon Devices Builder Tools MCP server
|
|
51
66
|
4. **Ask for context installation directory** (defaults to current working directory)
|
|
52
67
|
5. **Handle existing context files** by offering to merge or update content
|
|
53
68
|
6. **Create the appropriate context file** in the correct location for your chosen AI agent
|
|
54
69
|
|
|
70
|
+
**Non-Interactive Mode:**
|
|
71
|
+
Use command-line options to skip prompts and automate the setup process.
|
|
72
|
+
|
|
73
|
+
### Command Line Options
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
init-context [options]
|
|
77
|
+
|
|
78
|
+
Options:
|
|
79
|
+
-a, --agent <type> Target AI agent (cursor, cline, kiro, claude-code-cli,
|
|
80
|
+
claude-code-desktop, github-copilot, amazon-q, other)
|
|
81
|
+
-p, --context-document-path Path to save context document
|
|
82
|
+
-d, --skip-context-document Skip context document installation (MCP config only)
|
|
83
|
+
-m, --skip-mcp-config Skip MCP configuration (context document only)
|
|
84
|
+
-f, --force Skip all confirmation prompts and force overwrite
|
|
85
|
+
-h, --help Show help for init-context command
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
> ⚠️ **Note**: Command-line options are only supported with the `init-context` subcommand. The deprecated `--init-context` flag does not support these options.
|
|
89
|
+
|
|
55
90
|
### Example Usage
|
|
56
91
|
|
|
57
92
|
```bash
|
|
58
93
|
# Navigate to your project directory
|
|
59
94
|
cd my-vega-project
|
|
60
95
|
|
|
61
|
-
#
|
|
62
|
-
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest
|
|
96
|
+
# Interactive mode (default)
|
|
97
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context
|
|
98
|
+
|
|
99
|
+
# Non-interactive with specific agent
|
|
100
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context --agent cursor --force
|
|
101
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context -a cursor -f
|
|
102
|
+
|
|
103
|
+
# MCP config only (skip context document)
|
|
104
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context --agent cursor --skip-context-document
|
|
105
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context -a cursor -d
|
|
106
|
+
|
|
107
|
+
# Context document only with custom path (skip MCP config)
|
|
108
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context --agent kiro --context-document-path ./docs --skip-mcp-config
|
|
109
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context -a kiro -p ./docs -m
|
|
110
|
+
|
|
111
|
+
# Show help
|
|
112
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context --help
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Interactive Mode Prompts
|
|
116
|
+
|
|
117
|
+
When running in interactive mode, you'll be guided through:
|
|
118
|
+
|
|
119
|
+
# 1. Select your AI agent (e.g., "1" for Cursor, "6" for Kiro, "8" for Other/Custom)
|
|
63
120
|
|
|
64
|
-
# Follow the interactive prompts:
|
|
65
|
-
# 1. Select your AI agent (e.g., "5" for Kiro, "7" for Other/Custom)
|
|
66
121
|
# 2. Enter y/n to automatically update Agent's MCP settings file
|
|
122
|
+
|
|
67
123
|
# 3. Choose default context document installation path or enter custom path
|
|
124
|
+
|
|
68
125
|
# 4. Choose action: merge, update or save file. Review the installed context document before proceeding.
|
|
69
|
-
```
|
|
70
126
|
|
|
71
127
|
### Using with Other AI Agents
|
|
72
128
|
|
|
73
129
|
If your AI agent isn't in the supported list, select **"Other/Custom Agent"** which provides:
|
|
74
130
|
|
|
75
|
-
-
|
|
76
|
-
-
|
|
131
|
+
- **View full content**: Display the complete context for manual copying
|
|
132
|
+
- **Manual setup**: Copy the content to your agent's configuration directory
|
|
77
133
|
|
|
78
134
|
> ℹ️ Important: Start the MCP Server from Agent's MCP config, if not already started - check your current running MCPs to ensure the amazon-devices-buildertools-mcp is listed as running/connected.
|
|
79
135
|
|
|
@@ -97,28 +153,73 @@ Below we list some popular AI agents and the link to how to install MCP servers.
|
|
|
97
153
|
| --- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
98
154
|
| 1 | Cursor | [Instructions](https://cursor.com/docs/context/mcp#using-mcpjson) |
|
|
99
155
|
| 2 | Github Copilot | [Instructions](https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp) then choose "Configuring MCP Servers Manually" |
|
|
100
|
-
| 3 | Claude Code
|
|
101
|
-
| 4 |
|
|
102
|
-
| 5 | Amazon Q
|
|
103
|
-
| 6 |
|
|
104
|
-
| 7 |
|
|
156
|
+
| 3 | Claude Code | [Instructions](https://code.claude.com/docs/en/mcp#option-3%3A-add-a-local-stdio-server) |
|
|
157
|
+
| 4 | Claude Code Desktop | [Instructions](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop) |
|
|
158
|
+
| 5 | Amazon Q IDE Extension | [Instructions](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/mcp-ide.html) |
|
|
159
|
+
| 6 | Amazon Q CLI | [Instructions](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-config-CLI.html) |
|
|
160
|
+
| 7 | Kiro | [Instructions](https://kiro.dev/docs/mcp/) |
|
|
161
|
+
| 8 | Cline | [Instructions](https://docs.cline.bot/mcp/configuring-mcp-servers) |
|
|
105
162
|
|
|
106
163
|
_If your agent is not listed, please ensure it supports MCP before continuing._
|
|
107
164
|
|
|
108
|
-
> ℹ️ Important: Once configured, run `npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest
|
|
165
|
+
> ℹ️ Important: Once configured, run `npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context` to install the Vega-context document for your preferred AI agent in the project directory
|
|
109
166
|
|
|
110
167
|
## Usage
|
|
111
168
|
|
|
112
169
|
### Command Line Options
|
|
113
170
|
|
|
114
171
|
```bash
|
|
115
|
-
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest
|
|
172
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest init-context # Install Amazon Devices Builder Tools MCP and initialize Vega context for AI agents
|
|
173
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest check-status # Check setup status of AI agents
|
|
116
174
|
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest --version # Show version information
|
|
117
175
|
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest -v # Show version information (alias)
|
|
118
176
|
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest --help # Show help message
|
|
119
177
|
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest -h # Show help message (alias)
|
|
120
178
|
```
|
|
121
179
|
|
|
180
|
+
### Check Agent Setup Status
|
|
181
|
+
|
|
182
|
+
After installing the MCP server and context documents, you can verify your setup using the `check-status` command:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Check all agents
|
|
186
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest check-status
|
|
187
|
+
|
|
188
|
+
# Check specific agent
|
|
189
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest check-status --agent kiro
|
|
190
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest check-status -a cursor
|
|
191
|
+
|
|
192
|
+
# Show help
|
|
193
|
+
npx -y @amazon-devices/amazon-devices-buildertools-mcp@latest check-status --help
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**What it checks:**
|
|
197
|
+
- ✅ Context document installation status and version
|
|
198
|
+
- ✅ MCP configuration status
|
|
199
|
+
- ✅ Detection of legacy configurations
|
|
200
|
+
- ✅ Overall setup summary
|
|
201
|
+
|
|
202
|
+
**Example output:**
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
====================================================
|
|
206
|
+
🔍 Checking Agent Setup Status
|
|
207
|
+
====================================================
|
|
208
|
+
|
|
209
|
+
─────────────────────────────────────────────────────────────────────────────
|
|
210
|
+
Agent │ Context Document │ MCP Configuration
|
|
211
|
+
─────────────────────────────────────────────────────────────────────────────
|
|
212
|
+
Cursor │ ✅ v5.1 │ ✅ Configured
|
|
213
|
+
Kiro │ ✅ v5.1 │ ✅ Configured
|
|
214
|
+
─────────────────────────────────────────────────────────────────────────────
|
|
215
|
+
|
|
216
|
+
📊 Summary:
|
|
217
|
+
Total agents checked: 2
|
|
218
|
+
✅ Fully configured: 2
|
|
219
|
+
⚠️ Partially configured: 0
|
|
220
|
+
❌ Not configured: 0
|
|
221
|
+
```
|
|
222
|
+
|
|
122
223
|
### Verify Amazon Devices Builder Tools MCP is installed in your AI Agent
|
|
123
224
|
|
|
124
225
|
In your AI Agent's chat interface, run the following prompt
|
|
@@ -130,8 +231,10 @@ List the tools provided by Amazon Devices Builder Tools MCP
|
|
|
130
231
|
You should see a response that includes the following tools:
|
|
131
232
|
|
|
132
233
|
- analyze_perfetto_traces
|
|
234
|
+
- get_app_hot_functions
|
|
133
235
|
- read_document
|
|
134
236
|
- list_documents
|
|
237
|
+
- read_asset
|
|
135
238
|
|
|
136
239
|
## MCP Tools
|
|
137
240
|
|
|
@@ -142,9 +245,11 @@ The Amazon Devices Builder Tools MCP provides the following tools to assist with
|
|
|
142
245
|
Read documents related to App development for Amazon Vega OS. This tool provides access to comprehensive documentation about Vega app development and debugging topics.
|
|
143
246
|
|
|
144
247
|
**Parameters:**
|
|
248
|
+
|
|
145
249
|
- `document_name` (required): Name of the document to read (e.g., `react-native-for-vega-performance-best-practices.md`). Must be a markdown document with `.md` extension.
|
|
146
250
|
|
|
147
251
|
**Example usage:**
|
|
252
|
+
|
|
148
253
|
```
|
|
149
254
|
Read the document react-native-for-vega-performance-best-practices.md
|
|
150
255
|
```
|
|
@@ -154,13 +259,17 @@ Read the document react-native-for-vega-performance-best-practices.md
|
|
|
154
259
|
List all available Vega documents related to App development for Amazon Vega OS. Returns name and description of available documents that can be retrieved using the `read_document` tool.
|
|
155
260
|
|
|
156
261
|
**Parameters:**
|
|
262
|
+
|
|
157
263
|
- `documentType` (optional): Filter documents by type. Valid values: `KB` (Knowledge Base), `PROMPT`, `STEERING`, `WORKFLOW`
|
|
158
264
|
|
|
159
265
|
**Example usage:**
|
|
266
|
+
|
|
160
267
|
```
|
|
161
268
|
List all available Vega documents
|
|
162
269
|
```
|
|
270
|
+
|
|
163
271
|
or
|
|
272
|
+
|
|
164
273
|
```
|
|
165
274
|
List documents of type KB
|
|
166
275
|
```
|
|
@@ -170,6 +279,7 @@ List documents of type KB
|
|
|
170
279
|
Analyze Vega platform traces using Perfetto trace processor to extract KPI metrics and related performance data. This tool helps diagnose performance issues and analyze app launch times.
|
|
171
280
|
|
|
172
281
|
**Parameters:**
|
|
282
|
+
|
|
173
283
|
- `traceFilePath` (required): Path to the trace file to analyze. Usually found in Vega performance data output directories with names like `iter_*_vs_trace`
|
|
174
284
|
- `queryType` (optional): Type of query to execute. Default: `kpi_analysis`
|
|
175
285
|
- `kpiType` (optional): Specific KPI type to analyze. Options: `ttff` (Time to First Frame), `ttfd` (Time to First Display), `all`. Default: `all`
|
|
@@ -178,6 +288,7 @@ Analyze Vega platform traces using Perfetto trace processor to extract KPI metri
|
|
|
178
288
|
- `appProcessName` (optional): Main application process name to analyze (will be auto-detected if not provided)
|
|
179
289
|
|
|
180
290
|
**Example usage:**
|
|
291
|
+
|
|
181
292
|
```
|
|
182
293
|
Analyze the trace file at /path/to/iter_1_vs_trace
|
|
183
294
|
```
|
|
@@ -187,6 +298,7 @@ Analyze the trace file at /path/to/iter_1_vs_trace
|
|
|
187
298
|
Reads and analyzes CPU trace files to identify hot functions (CPU-intensive operations) contributing to performance bottlenecks. This tool helps pinpoint which functions in your application are consuming the most CPU time, enabling targeted performance optimization.
|
|
188
299
|
|
|
189
300
|
**Parameters:**
|
|
301
|
+
|
|
190
302
|
- `traceDataFilePath` (required): Path to the trace data file from the Activity Monitor. Usually found in Vega performance data output directories with names like `iter_<iteration>_trace<epoch>-converted.json` (e.g., `iter_2_trace1766067380670018106-converted.json`)
|
|
191
303
|
- `limit` (optional): Maximum number of hot functions to return (default: 10)
|
|
192
304
|
- `useSelfTime` (optional): Flag to indicate whether to use self CPU time or total CPU time for sorting (default: false)
|
|
@@ -195,15 +307,36 @@ Reads and analyzes CPU trace files to identify hot functions (CPU-intensive oper
|
|
|
195
307
|
- `endOffsetSeconds` (optional): End time offset in seconds from trace beginning (e.g., 15.8 for analysis ending 15.8 seconds after trace start)
|
|
196
308
|
|
|
197
309
|
**Example usage:**
|
|
310
|
+
|
|
198
311
|
```
|
|
199
312
|
Analyze hot functions in the trace file at /path/to/iter_2_trace1766067380670018106-converted.json
|
|
200
313
|
```
|
|
201
314
|
|
|
202
315
|
or with time window filtering:
|
|
316
|
+
|
|
203
317
|
```
|
|
204
318
|
Analyze hot functions in /path/to/trace.json from 5 to 15 seconds with a limit of 20 functions
|
|
205
319
|
```
|
|
206
320
|
|
|
321
|
+
### 5. `read_asset`
|
|
322
|
+
|
|
323
|
+
Read assets referenced in Vega documentation. Assets are saved to a temporary location and the path is returned. Images can be viewed with
|
|
324
|
+
`fs_read` and scripts executed with the appropriate interpreter (e.g., `python3`)
|
|
325
|
+
|
|
326
|
+
**Parameters**
|
|
327
|
+
- `asset_id` (required): Path of the asset to read (e.g., `assets/scripts/example.py` or `assets/images/diagram.png`)
|
|
328
|
+
|
|
329
|
+
**Example usage:**
|
|
330
|
+
```
|
|
331
|
+
Read the script assets/scripts/setup.sh and execute it
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
or
|
|
335
|
+
|
|
336
|
+
```
|
|
337
|
+
Read the image assets/images/architecture.png and describe what it shows
|
|
338
|
+
```
|
|
339
|
+
|
|
207
340
|
## MCP Prompts
|
|
208
341
|
|
|
209
342
|
> Check if your AI Agents supports MCP Prompts (`/prompts`) in https://modelcontextprotocol.io/clients
|
|
@@ -217,10 +350,12 @@ Amazon Devices Builder Tools MCP provides the following pre-defined prompt templ
|
|
|
217
350
|
**Description:** Diagnose Vega application's Time to First Frame (TTFF) KPI
|
|
218
351
|
|
|
219
352
|
**Parameters:**
|
|
353
|
+
|
|
220
354
|
- `kpi_report_file_path` (required, string): Absolute path to the KPI report file
|
|
221
355
|
- `kpi_to_diagnose` (required, string): Name of the KPI from KPI report to diagnose
|
|
222
356
|
|
|
223
357
|
**Example usage:**
|
|
358
|
+
|
|
224
359
|
```
|
|
225
360
|
> @diagnose_kpi_ttff /path/to/report.json ttff
|
|
226
361
|
```
|
|
@@ -230,10 +365,12 @@ Amazon Devices Builder Tools MCP provides the following pre-defined prompt templ
|
|
|
230
365
|
**Description:** Diagnose Vega application's Time to Fully Drawn (TTFD) KPI
|
|
231
366
|
|
|
232
367
|
**Parameters:**
|
|
368
|
+
|
|
233
369
|
- `kpi_report_file_path` (required, string): Absolute path to the KPI report file
|
|
234
370
|
- `kpi_to_diagnose` (required, string): Name of the KPI from KPI report to diagnose
|
|
235
371
|
|
|
236
372
|
**Example usage:**
|
|
373
|
+
|
|
237
374
|
```
|
|
238
375
|
> @diagnose_kpi_ttfd /path/to/report.json ttfd
|
|
239
376
|
```
|
|
@@ -243,9 +380,11 @@ Amazon Devices Builder Tools MCP provides the following pre-defined prompt templ
|
|
|
243
380
|
**Description:** Diagnose and optimize React Native application performance issues including component rendering, memory management, navigation, network optimization, and state management.
|
|
244
381
|
|
|
245
382
|
**Parameters:**
|
|
383
|
+
|
|
246
384
|
- `app_source_path` (required, string): Path to the React Native application source code directory for analysis
|
|
247
385
|
|
|
248
386
|
**Example usage:**
|
|
387
|
+
|
|
249
388
|
```
|
|
250
389
|
> @apply_performance_best_practices /path/to/my-vega-app/src
|
|
251
390
|
```
|
|
@@ -255,9 +394,11 @@ Amazon Devices Builder Tools MCP provides the following pre-defined prompt templ
|
|
|
255
394
|
**Description:** Diagnose and optimize Vega application UI fluidity performance issues caused by component re-rendering using React Native tools.
|
|
256
395
|
|
|
257
396
|
**Parameters:**
|
|
397
|
+
|
|
258
398
|
- `vega_app_package_path` (required, string): Absolute path to the Vega app package root directory
|
|
259
399
|
|
|
260
400
|
**Example usage:**
|
|
401
|
+
|
|
261
402
|
```
|
|
262
403
|
> @detect_component_re-renders /path/to/my-vega-app
|
|
263
404
|
```
|
|
@@ -267,11 +408,27 @@ Amazon Devices Builder Tools MCP provides the following pre-defined prompt templ
|
|
|
267
408
|
**Description:** Assists in migrating to newer versions of the Carousel component in the Vega SDK.
|
|
268
409
|
|
|
269
410
|
**Parameters:**
|
|
411
|
+
|
|
270
412
|
- `current_implementation_file_path` (required, string): Absolute path to the file containing the V1 implementation of Carousel
|
|
271
413
|
- `current_version` (required, string): The current version of Carousel, independent of package
|
|
272
414
|
- `target_version` (required, string): The target version of Carousel, independent of package
|
|
273
415
|
|
|
274
416
|
**Example usage:**
|
|
417
|
+
|
|
275
418
|
```
|
|
276
419
|
> @upgrade_carousel_component /path/to/HomeScreen.tsx 1.0.6 2.0.0
|
|
277
420
|
```
|
|
421
|
+
|
|
422
|
+
### 6. `diagnose_crash`
|
|
423
|
+
|
|
424
|
+
**Description:** Diagnose crashes in Vega applications including JavaScript, Native, LMK (Low Memory Killer), and ANR (Application Not Responding) crashes. Automatically discovers ACR files, symbolicates stack traces, and routes to the appropriate analysis workflow.
|
|
425
|
+
|
|
426
|
+
**Parameters:**
|
|
427
|
+
|
|
428
|
+
- `acr_file_path` (optional, string): Path to ACR file. If not provided, the tool will auto-discover ACR files from the device temp directory.
|
|
429
|
+
|
|
430
|
+
**Example usage:**
|
|
431
|
+
|
|
432
|
+
```
|
|
433
|
+
> @diagnose_crash /path/to/crash.acr
|
|
434
|
+
```
|
|
Binary file
|