@uniswap/ai-toolkit-nx-claude 0.5.30-next.1 → 0.5.30-next.2
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/dist/generators/addons/CLAUDE.md +91 -91
- package/dist/generators/addons/generator.cjs +13 -338
- package/dist/generators/addons/schema.json +1 -32
- package/dist/index.cjs +13 -338
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/addon-registry.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/aws-log-analyzer-setup.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/generator.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/spec-workflow-setup.d.ts +0 -52
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/spec-workflow-setup.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
Nx generator for installing optional add-
|
|
5
|
+
Nx generator for installing optional MCP server add-ons to the AI Toolkit. These are MCP servers that are NOT bundled via plugins and require manual installation.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -11,12 +11,12 @@ Nx generator for installing optional add-on components to the AI Toolkit. Add-on
|
|
|
11
11
|
npx nx generate @uniswap/ai-toolkit-nx-claude:addons
|
|
12
12
|
|
|
13
13
|
# Install all addons
|
|
14
|
-
npx nx generate @uniswap/ai-toolkit-nx-claude:addons --
|
|
14
|
+
npx nx generate @uniswap/ai-toolkit-nx-claude:addons --selection-mode=all
|
|
15
15
|
|
|
16
16
|
# Install specific addon
|
|
17
17
|
npx nx generate @uniswap/ai-toolkit-nx-claude:addons \
|
|
18
|
-
--
|
|
19
|
-
--
|
|
18
|
+
--selection-mode=specific \
|
|
19
|
+
--addons=slack-mcp
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Options
|
|
@@ -24,7 +24,7 @@ npx nx generate @uniswap/ai-toolkit-nx-claude:addons \
|
|
|
24
24
|
### Installation Control
|
|
25
25
|
|
|
26
26
|
- `selectionMode` - Selection mode for which addons to install:
|
|
27
|
-
- `all` - Install all available addons
|
|
27
|
+
- `all` - Install all available addons (6 MCP servers)
|
|
28
28
|
- `specific` - Choose specific addons to install
|
|
29
29
|
- `addons` - Specific addons to install (when `selectionMode=specific`)
|
|
30
30
|
- `installationType` - Installation location for MCP servers:
|
|
@@ -39,28 +39,53 @@ npx nx generate @uniswap/ai-toolkit-nx-claude:addons \
|
|
|
39
39
|
|
|
40
40
|
## Available Addons
|
|
41
41
|
|
|
42
|
-
Registered in `addon-registry.ts
|
|
42
|
+
Registered in `addon-registry.ts`. These 6 MCP servers are available for manual installation:
|
|
43
43
|
|
|
44
|
-
### 1.
|
|
44
|
+
### 1. slack-mcp
|
|
45
45
|
|
|
46
|
-
**Purpose**:
|
|
46
|
+
**Purpose**: Slack workspace integration for Claude Code
|
|
47
47
|
|
|
48
48
|
**Features**:
|
|
49
49
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
- Steering document integration
|
|
50
|
+
- Send and receive Slack messages
|
|
51
|
+
- Search channels and conversations
|
|
52
|
+
- Manage workspace interactions
|
|
54
53
|
|
|
55
|
-
**
|
|
54
|
+
**Requires**: Slack Bot Token authentication
|
|
56
55
|
|
|
57
|
-
|
|
56
|
+
### 2. github-mcp
|
|
57
|
+
|
|
58
|
+
**Purpose**: GitHub repository integration
|
|
59
|
+
|
|
60
|
+
**Features**:
|
|
61
|
+
|
|
62
|
+
- Repository management
|
|
63
|
+
- Issue and PR interactions
|
|
64
|
+
- Code review capabilities
|
|
65
|
+
|
|
66
|
+
**Requires**: GitHub Personal Access Token (can be obtained via `gh auth token`)
|
|
67
|
+
|
|
68
|
+
### 3. figma-mcp
|
|
69
|
+
|
|
70
|
+
**Purpose**: Figma design platform integration
|
|
71
|
+
|
|
72
|
+
**Features**:
|
|
73
|
+
|
|
74
|
+
- Access design files
|
|
75
|
+
- Extract design components
|
|
76
|
+
- Translate designs to code
|
|
77
|
+
|
|
78
|
+
### 4. vercel-mcp
|
|
58
79
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
80
|
+
**Purpose**: Vercel deployment platform integration
|
|
81
|
+
|
|
82
|
+
**Features**:
|
|
62
83
|
|
|
63
|
-
|
|
84
|
+
- Deployment management
|
|
85
|
+
- Environment configuration
|
|
86
|
+
- Project monitoring
|
|
87
|
+
|
|
88
|
+
### 5. aws-log-analyzer-mcp
|
|
64
89
|
|
|
65
90
|
**Purpose**: MCP server for AWS CloudWatch log analysis
|
|
66
91
|
|
|
@@ -75,28 +100,36 @@ Registered in `addon-registry.ts`:
|
|
|
75
100
|
|
|
76
101
|
**Installation**:
|
|
77
102
|
|
|
103
|
+
- Clones the AWS Log Analyzer repository
|
|
104
|
+
- Installs Python dependencies with uv
|
|
78
105
|
- Adds MCP server configuration
|
|
79
|
-
- Prompts for AWS credentials
|
|
80
|
-
- Creates necessary configuration files
|
|
81
106
|
|
|
82
|
-
|
|
107
|
+
**Requires**: AWS credentials with CloudWatchLogsReadOnlyAccess
|
|
108
|
+
|
|
109
|
+
### 6. pulumi-mcp
|
|
83
110
|
|
|
84
|
-
**Purpose**:
|
|
111
|
+
**Purpose**: Pulumi infrastructure as code integration
|
|
85
112
|
|
|
86
113
|
**Features**:
|
|
87
114
|
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
- Auto-detect and configure servers
|
|
115
|
+
- Infrastructure management
|
|
116
|
+
- Resource state inspection
|
|
117
|
+
- Deployment automation
|
|
92
118
|
|
|
93
|
-
**
|
|
119
|
+
**Requires**: Pulumi Personal Access Token (PAT)
|
|
94
120
|
|
|
95
|
-
|
|
121
|
+
## Note on Plugin-Bundled MCP Servers
|
|
122
|
+
|
|
123
|
+
The following MCP servers are **NOT** available via this addons generator because they are bundled via plugins:
|
|
96
124
|
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
125
|
+
- **spec-workflow-mcp** - Available via development-planning plugin
|
|
126
|
+
- **graphite-mcp** - Available via development-pr-workflow plugin
|
|
127
|
+
- **nx-mcp** - Available via uniswap-integrations plugin
|
|
128
|
+
- **notion-mcp** - Available via uniswap-integrations plugin
|
|
129
|
+
- **linear-mcp** - Available via uniswap-integrations plugin
|
|
130
|
+
- **chrome-devtools-mcp** - Available via development-productivity plugin
|
|
131
|
+
|
|
132
|
+
To access these, install the corresponding plugin from the Claude Code Plugin Marketplace.
|
|
100
133
|
|
|
101
134
|
## Generator Flow
|
|
102
135
|
|
|
@@ -114,7 +147,7 @@ Registered in `addon-registry.ts`:
|
|
|
114
147
|
3. **Installation**:
|
|
115
148
|
|
|
116
149
|
- For each selected addon:
|
|
117
|
-
- Run addon's setup function
|
|
150
|
+
- Run addon's setup function (if any)
|
|
118
151
|
- Install MCP server using `claude mcp add` with appropriate scope:
|
|
119
152
|
- `--scope user` for global installation
|
|
120
153
|
- `--scope project` for local installation
|
|
@@ -132,69 +165,39 @@ Registered in `addon-registry.ts`:
|
|
|
132
165
|
- `schema.json` - Configuration schema with conditional prompting
|
|
133
166
|
- `schema.d.ts` - TypeScript interface
|
|
134
167
|
- `addon-registry.ts` - Registry of available addons
|
|
135
|
-
-
|
|
168
|
+
- `aws-log-analyzer-setup.ts` - AWS Log Analyzer setup implementation
|
|
169
|
+
- `claude-mcp-installer.ts` - MCP server installation utilities
|
|
136
170
|
|
|
137
171
|
## Addon Registry
|
|
138
172
|
|
|
139
173
|
The registry (`addon-registry.ts`) defines available addons:
|
|
140
174
|
|
|
141
175
|
```typescript
|
|
142
|
-
export interface
|
|
176
|
+
export interface McpServerAddon {
|
|
143
177
|
id: string;
|
|
144
178
|
name: string;
|
|
145
179
|
description: string;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
id: 'spec-mcp-workflow',
|
|
153
|
-
name: 'Spec MCP Workflow',
|
|
154
|
-
description: 'Spec-driven development with MCP server',
|
|
155
|
-
setupFunction: setupSpecWorkflow,
|
|
156
|
-
},
|
|
157
|
-
// ... more addons
|
|
158
|
-
];
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
## Creating New Addons
|
|
162
|
-
|
|
163
|
-
### Step 1: Create Setup File
|
|
164
|
-
|
|
165
|
-
Create `{addon-name}-setup.ts`:
|
|
166
|
-
|
|
167
|
-
```typescript
|
|
168
|
-
export async function setupMyAddon(tree: Tree, options: AddonsGeneratorSchema): Promise<void> {
|
|
169
|
-
// 1. Validate prerequisites
|
|
170
|
-
// 2. Create configuration files
|
|
171
|
-
// 3. Update Claude config
|
|
172
|
-
// 4. Install dependencies
|
|
173
|
-
// 5. Provide usage instructions
|
|
180
|
+
mcp: {
|
|
181
|
+
command: string;
|
|
182
|
+
args: string[];
|
|
183
|
+
env?: Record<string, string>;
|
|
184
|
+
};
|
|
185
|
+
requirements?: string[];
|
|
174
186
|
}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Step 2: Register in addon-registry.ts
|
|
178
187
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
export function getAvailableAddons(): McpServerAddon[] {
|
|
189
|
+
return [
|
|
190
|
+
{
|
|
191
|
+
id: 'slack-mcp',
|
|
192
|
+
name: 'Slack MCP',
|
|
193
|
+
description: 'Slack workspace integration',
|
|
194
|
+
mcp: { command: 'npx', args: ['-y', '@anthropic/slack-mcp'] },
|
|
195
|
+
},
|
|
196
|
+
// ... more addons
|
|
197
|
+
];
|
|
186
198
|
}
|
|
187
199
|
```
|
|
188
200
|
|
|
189
|
-
### Step 3: Test
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
npx nx generate @uniswap/ai-toolkit-nx-claude:addons \
|
|
193
|
-
--install-mode=specific \
|
|
194
|
-
--addon=my-addon \
|
|
195
|
-
--dry-run
|
|
196
|
-
```
|
|
197
|
-
|
|
198
201
|
## Integration with Init Generator
|
|
199
202
|
|
|
200
203
|
The addons generator supports the `installMode` pattern for programmatic invocation:
|
|
@@ -207,8 +210,6 @@ await addonsGenerator(tree, {
|
|
|
207
210
|
installationType: normalizedOptions.installationType, // 'global' or 'local'
|
|
208
211
|
force: false,
|
|
209
212
|
skipVerification: false,
|
|
210
|
-
dashboardMode: 'always',
|
|
211
|
-
port: 0,
|
|
212
213
|
});
|
|
213
214
|
```
|
|
214
215
|
|
|
@@ -234,11 +235,11 @@ Addons update `~/.claude/claude.json` (global) or `./.claude/claude.json` (local
|
|
|
234
235
|
```json
|
|
235
236
|
{
|
|
236
237
|
"mcpServers": {
|
|
237
|
-
"
|
|
238
|
-
"command": "
|
|
239
|
-
"args": ["/
|
|
238
|
+
"slack": {
|
|
239
|
+
"command": "npx",
|
|
240
|
+
"args": ["-y", "@anthropic/slack-mcp"],
|
|
240
241
|
"env": {
|
|
241
|
-
"
|
|
242
|
+
"SLACK_BOT_TOKEN": "xoxb-..."
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
245
|
}
|
|
@@ -249,7 +250,7 @@ Addons update `~/.claude/claude.json` (global) or `./.claude/claude.json` (local
|
|
|
249
250
|
|
|
250
251
|
### Addon Setup Functions
|
|
251
252
|
|
|
252
|
-
|
|
253
|
+
For addons that require special setup (like aws-log-analyzer-mcp), create a setup file:
|
|
253
254
|
|
|
254
255
|
1. **Validate Prerequisites**:
|
|
255
256
|
|
|
@@ -260,8 +261,8 @@ All setup functions follow this pattern:
|
|
|
260
261
|
2. **File Operations**:
|
|
261
262
|
|
|
262
263
|
- Create directories
|
|
263
|
-
-
|
|
264
|
-
-
|
|
264
|
+
- Clone repositories
|
|
265
|
+
- Install dependencies
|
|
265
266
|
|
|
266
267
|
3. **Configuration Updates**:
|
|
267
268
|
|
|
@@ -290,7 +291,6 @@ try {
|
|
|
290
291
|
## Related Documentation
|
|
291
292
|
|
|
292
293
|
- Parent package: `../../CLAUDE.md`
|
|
293
|
-
- Init generator (caller): `../init/CLAUDE.md`
|
|
294
294
|
- MCP server documentation: External links per addon
|
|
295
295
|
|
|
296
296
|
## Auto-Update Instructions
|