From b9228e28660128d57580e94ca9a24b24a1e78240 Mon Sep 17 00:00:00 2001 From: mbaiza27 Date: Fri, 4 Apr 2025 17:15:22 -0700 Subject: [PATCH] add VS Code config instructions --- README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 58e057a..6fd5f16 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![smithery badge](https://smithery.ai/badge/@ykhli/mcp-send-email)](https://smithery.ai/server/@ykhli/mcp-send-email) -This is a simple MCP server that sends emails using Resend's API. Why? Now you can let Cursor or Claude Desktop compose emails for you and send it right away without having to copy and paste the email content. +This is a simple MCP server that sends emails using Resend's API. Why? Now you can let VS Code, Cursor or Claude Desktop compose emails for you and send it right away without having to copy and paste the email content. Built with: @@ -40,6 +40,54 @@ Now you can test out sending emails by going to email.md, replace the to: email Screenshot 2025-02-25 at 9 13 05 AM +**VS Code** +Same set up as above, and then add the following MCP config. + +For one-click installation, click one of the install buttons below: + +[![Install with Node in VS Code](https://img.shields.io/badge/VS_Code-Node-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=resend-email&config=%7B%22command%22%3A%22node%22%2C%22args%22%3A%5B%22build%2Findex.js%22%5D%2C%22env%22%3A%7B%22RESEND_API_KEY%22%3A%22%24%7Binput%3AresendApiKey%7D%22%2C%22SENDER_EMAIL_ADDRESS%22%3A%22%24%7Binput%3AsenderEmail%7D%22%2C%22REPLY_TO_EMAIL_ADDRESSES%22%3A%22%24%7Binput%3AreplyToEmails%7D%22%7D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22resendApiKey%22%2C%22description%22%3A%22Resend+API+Key%22%2C%22password%22%3Atrue%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22senderEmail%22%2C%22description%22%3A%22Sender+Email+Address%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22replyToEmails%22%2C%22description%22%3A%22Reply-To+Email+Addresses+%28comma+separated%29%22%7D%5D) [![Install with Node in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Node-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=resend-email&config=%7B%22command%22%3A%22node%22%2C%22args%22%3A%5B%22build%2Findex.js%22%5D%2C%22env%22%3A%7B%22RESEND_API_KEY%22%3A%22%24%7Binput%3AresendApiKey%7D%22%2C%22SENDER_EMAIL_ADDRESS%22%3A%22%24%7Binput%3AsenderEmail%7D%22%2C%22REPLY_TO_EMAIL_ADDRESSES%22%3A%22%24%7Binput%3AreplyToEmails%7D%22%7D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22resendApiKey%22%2C%22description%22%3A%22Resend+API+Key%22%2C%22password%22%3Atrue%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22senderEmail%22%2C%22description%22%3A%22Sender+Email+Address%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22replyToEmails%22%2C%22description%22%3A%22Reply-To+Email+Addresses+%28comma+separated%29%22%7D%5D&quality=insiders) + +### Manual Installation +Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`. + +```json +{ + "mcp": { + "inputs": [ + { + "type": "promptString", + "id": "resendApiKey", + "description": "Resend API Key", + "password": true + }, + { + "type": "promptString", + "id": "senderEmail", + "description": "Sender Email Address" + }, + { + "type": "promptString", + "id": "replyToEmails", + "description": "Reply-To Email Addresses (comma separated)" + } + ], + "servers": { + "resend-email": { + "command": "node", + "args": ["build/index.js"], + "env": { + "RESEND_API_KEY": "${input:resendApiKey}", + "SENDER_EMAIL_ADDRESS": "${input:senderEmail}", + "REPLY_TO_EMAIL_ADDRESSES": "${input:replyToEmails}" + } + } + } + } +} +``` + +Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. Note when you do this you will no longer need the `"mcp":{}` key in this json file. + **Claude desktop** Same set up as above, and then add the following MCP config @@ -60,6 +108,7 @@ Same set up as above, and then add the following MCP config } ``` + **Develop** `npm install`