From e12937763828ba27dcfa38d910f0c1a1be71cd9c Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 18 Nov 2024 14:50:21 +0000 Subject: [PATCH] Tweak recommended next steps --- README.md | 7 ++++++- src/index.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 669928c..d8c6d60 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,13 @@ After creating your server: ```bash cd my-server # Navigate to server directory npm install # Install dependencies + +npm run build # Build once +# or... npm run watch # Start TypeScript compiler in watch mode -npm link # Make your server binary globally available (optional) + +# optional +npm link # Make your server binary globally available ``` ## License diff --git a/src/index.ts b/src/index.ts index b8e8a35..32d001b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -163,9 +163,13 @@ async function createServer(directory: string, options: any = {}) { console.log("\nNext steps:"); console.log(chalk.cyan(` cd ${directory}`)); console.log(chalk.cyan(" npm install")); - console.log(chalk.cyan(" npm run watch")); console.log( - chalk.cyan(" npm link (optional, to make available globally)\n"), + chalk.cyan(` npm run build ${chalk.reset("# or: npm run watch")}`), + ); + console.log( + chalk.cyan( + ` npm link ${chalk.reset("# optional, to make available globally")}\n`, + ), ); } catch (error) { spinner.fail(chalk.red("Failed to create MCP server"));