@@ -17,6 +17,7 @@ import fs from 'node:fs'
1717import { fileURLToPath } from 'url'
1818import { createDialog , endSection , logRaw , startSection , updateStatus } from './utils/c3'
1919import { mcpCloudflareVersion } from './utils/helpers'
20+ import which from 'which'
2021
2122const __filename = fileURLToPath ( import . meta. url )
2223
@@ -27,8 +28,8 @@ export async function init(accountTag: string | undefined) {
2728 createDialog ( [
2829 `👋 Welcome to ${ chalk . yellow ( 'mcp-server-cloudflare' ) } v${ mcpCloudflareVersion } !` ,
2930 `💁♀️ This ${ chalk . green ( "'init'" ) } process will ensure you're connected to the Cloudflare API` ,
30- ' and install the Cloudflare MCP Server into Claude Desktop' ,
31- ' ℹ️ For more information, visit https://github.com/cloudflare/mcp-server-cloudflare',
31+ ` and install the Cloudflare MCP Server into Claude Desktop ( ${ chalk . blue . underline ( 'https://claude.ai/download' ) } )` ,
32+ ` ℹ️ For more information, visit ${ chalk . blue . underline ( ' https://github.com/cloudflare/mcp-server-cloudflare') } ` ,
3233 `🧡 Let's get started.` ,
3334 ] ) ,
3435 )
@@ -97,7 +98,7 @@ export async function init(accountTag: string | undefined) {
9798 'claude_desktop_config.json' ,
9899 )
99100 const cloudflareConfig = {
100- command : ( await execAsync ( 'which node') ) . stdout . trim ( ) ,
101+ command : ( await which ( ' node') ) . stdout . trim ( ) ,
101102 args : [ __filename , 'run' , account ] ,
102103 }
103104
0 commit comments