Skip to content

Commit d10e0e2

Browse files
critesjoshclaude
andcommitted
v1.4.1: Add aztec-version command to dropdown
Add aztec-version.md to commands/ directory so it appears in the Claude Code command dropdown, not just as a skill. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 85ed96a commit d10e0e2

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"repo": "critesjosh/aztec-claude-plugin"
1313
},
1414
"description": "Claude Code plugin for Aztec smart contract and application development",
15-
"version": "1.4.0"
15+
"version": "1.4.1"
1616
}
1717
]
1818
}

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aztec",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Claude Code plugin for Aztec smart contract and application development. Provides specialized agents, skills, and commands for building privacy-preserving applications on Aztec Network.",
55
"author": {
66
"name": "critesjosh"

‎commands/aztec-version.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
description: Switch the Aztec version used by the MCP server. Autodetects version from Nargo.toml if no version specified.
3+
---
4+
5+
# Aztec Version
6+
7+
Switch the Aztec version used by the local MCP server repositories.
8+
9+
**Version argument:** $ARGUMENTS
10+
11+
## Workflow
12+
13+
### Step 1: Determine Version
14+
15+
**If version argument provided:**
16+
- Use the provided version directly
17+
18+
**If no version argument (autodetect):**
19+
20+
1. Search for Nargo.toml files in the project using Glob: `**/Nargo.toml`
21+
22+
2. Read the Nargo.toml and extract the aztec dependency tag:
23+
```toml
24+
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v3.0.0-devnet.6-patch.1", directory = "aztec" }
25+
```
26+
27+
3. If no Nargo.toml found or no aztec dependency, ask the user to specify a version explicitly.
28+
29+
### Step 2: Confirm with User
30+
31+
Before syncing, show the detected/provided version and ask for confirmation.
32+
33+
### Step 3: Sync Repositories
34+
35+
Call `aztec_sync_repos` with the version:
36+
```
37+
aztec_sync_repos({ version: "<detected-or-provided-version>", force: true })
38+
```
39+
40+
### Step 4: Verify and Report
41+
42+
1. Call `aztec_status()` to verify the sync
43+
2. Report which version was synced and any errors

0 commit comments

Comments
 (0)