Skip to content

Commit b7a77ca

Browse files
author
strausr
committed
fix: update readme
1 parent 1ca04cf commit b7a77ca

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ During setup, you'll be asked which AI coding assistant(s) you're using. The CLI
4444

4545
-**Cursor**`.cursorrules` + `.cursor/mcp.json` (if selected)
4646
-**GitHub Copilot**`.github/copilot-instructions.md`
47-
-**Claude Code (VS Code extension)**`.claude`, `claude.md` + `.cursor/mcp.json` (if selected)
47+
-**Claude Code**`CLAUDE.md` + `.mcp.json` (if selected)
4848
-**Generic AI tools**`AI_INSTRUCTIONS.md`, `PROMPT.md`
4949

50-
**MCP Configuration**: The `.cursor/mcp.json` file is automatically generated if you select Cursor or Claude, as it works with both tools.
50+
**MCP Configuration**: Cursor and Claude Code use different config paths. If you select **Cursor**, the CLI writes `.cursor/mcp.json`. If you select **Claude**, it writes `.mcp.json` in the project root. Each tool only reads its own path, so both files are generated when you select both.
5151

5252
These rules help AI assistants understand Cloudinary React SDK patterns, common errors, and best practices. The generated app also includes an "AI Prompts" section with ready-to-use suggestions for your AI assistant.
5353

cli.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async function main() {
141141
choices: [
142142
{ name: 'Cursor', value: 'cursor' },
143143
{ name: 'GitHub Copilot', value: 'copilot' },
144-
{ name: 'Claude Code (VS Code extension)', value: 'claude' },
144+
{ name: 'Claude Code', value: 'claude' },
145145
{ name: 'Other / Generic AI tools', value: 'generic' },
146146
],
147147
default: ['cursor'],
@@ -262,18 +262,21 @@ async function main() {
262262
writeFileSync(join(projectPath, 'PROMPT.md'), aiRulesContent);
263263
}
264264

265-
// Generate MCP configuration if using Cursor or Claude (MCP works with both)
266-
if (aiTools.includes('cursor') || aiTools.includes('claude')) {
267-
const mcpTemplatePath = join(TEMPLATES_DIR, '.cursor/mcp.json.template');
268-
if (existsSync(mcpTemplatePath)) {
265+
// Generate MCP configuration: Cursor uses .cursor/mcp.json, Claude Code uses .mcp.json in project root
266+
const mcpTemplatePath = join(TEMPLATES_DIR, '.cursor/mcp.json.template');
267+
if (existsSync(mcpTemplatePath)) {
268+
const mcpContent = replaceTemplate(
269+
readFileSync(mcpTemplatePath, 'utf-8'),
270+
templateVars
271+
);
272+
if (aiTools.includes('cursor')) {
269273
const cursorDir = join(projectPath, '.cursor');
270274
mkdirSync(cursorDir, { recursive: true });
271-
const mcpContent = replaceTemplate(
272-
readFileSync(mcpTemplatePath, 'utf-8'),
273-
templateVars
274-
);
275275
writeFileSync(join(cursorDir, 'mcp.json'), mcpContent);
276276
}
277+
if (aiTools.includes('claude')) {
278+
writeFileSync(join(projectPath, '.mcp.json'), mcpContent);
279+
}
277280
}
278281
}
279282

@@ -291,9 +294,8 @@ async function main() {
291294
if (aiTools.includes('copilot')) console.log(chalk.gray(' • GitHub Copilot: .github/copilot-instructions.md'));
292295
if (aiTools.includes('claude')) console.log(chalk.gray(' • Claude: CLAUDE.md'));
293296
if (aiTools.includes('generic')) console.log(chalk.gray(' • Generic: AI_INSTRUCTIONS.md, PROMPT.md'));
294-
if (aiTools.includes('cursor') || aiTools.includes('claude')) {
295-
console.log(chalk.gray(' • MCP (Cursor/Claude): .cursor/mcp.json'));
296-
}
297+
if (aiTools.includes('cursor')) console.log(chalk.gray(' • MCP (Cursor): .cursor/mcp.json'));
298+
if (aiTools.includes('claude')) console.log(chalk.gray(' • MCP (Claude Code): .mcp.json'));
297299
console.log('');
298300
}
299301

0 commit comments

Comments
 (0)