Skip to content

Commit f6eef4d

Browse files
adding script to apply tool annotation changes
1 parent 81de4b1 commit f6eef4d

File tree

3 files changed

+7692
-0
lines changed

3 files changed

+7692
-0
lines changed

scripts/tool-annotations/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Tool Annotations Script
2+
3+
Applies MCP (Model Context Protocol) annotations to Pipedream action files from CSV data.
4+
5+
## Usage
6+
7+
```bash
8+
# Test with first 10 entries
9+
node apply-annotations.js --csv registry-action-changes-2025-09-25_1.csv --limit 10 --dry-run
10+
11+
# Process in batches
12+
node apply-annotations.js --csv registry-action-changes-2025-09-25_1.csv --offset 0 --limit 100
13+
node apply-annotations.js --csv registry-action-changes-2025-09-25_1.csv --offset 100 --limit 100
14+
15+
# Process all
16+
node apply-annotations.js --csv registry-action-changes-2025-09-25_1.csv
17+
```
18+
19+
## What it does
20+
21+
1. Reads CSV with action keys and annotation values
22+
2. Finds corresponding action files in `../../components/*/actions/`
23+
3. Adds `annotations` object after the `version` field
24+
4. Increments patch version (e.g., "0.1.5" → "0.1.6")
25+
26+
## Options
27+
28+
- `--dry-run` - Show changes without applying them
29+
- `--verbose` - Detailed logging
30+
- `--limit N` - Process only N entries
31+
- `--offset N` - Skip N entries before processing

0 commit comments

Comments
 (0)