https://github.com/ajaychinthapalli/copilot-mcp-email
https://github.com/ajaychinthapalli/copilot-mcp-email
copilot-coding-agent
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajaychinthapalli/copilot-mcp-email
- Owner: ajaychinthapalli
- Created: 2025-12-24T04:25:46.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-27T05:31:34.000Z (6 months ago)
- Last Synced: 2025-12-27T18:07:49.706Z (6 months ago)
- Topics: copilot-coding-agent
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# copilot-mcp-email
MCP (Model Context Protocol) server for sending emails using nodemailer.
## Features
- Implements `sendEmail` tool for sending emails via MCP protocol
- Uses nodemailer for email delivery
- Supports Gmail and other SMTP services
## Setup
1. Install dependencies:
```bash
npm install
```
2. Create a `.env` file with your email credentials:
```bash
cp .env.example .env
```
Edit `.env` and add your Gmail credentials:
- `EMAIL_USER`: Your Gmail address
- `EMAIL_PASS`: Your Gmail App Password (generate at https://myaccount.google.com/apppasswords)
3. Build the project:
```bash
npm run build
```
## Usage
### Verify Installation
To verify the MCP server is properly configured:
```bash
npm run verify
```
This will display the sendEmail tool configuration and usage instructions.
### As an MCP Server
Run the server:
```bash
npm start
```
The server runs on stdio and exposes the `sendEmail` tool with the following parameters:
- `to` (string): Recipient email address
- `subject` (string): Email subject
- `body` (string): Email body content
### Send Test Email
To send a test email to srisowmyarupaputta@gmail.com:
```bash
npm run send-test
```
This will send an email with:
- To: srisowmyarupaputta@gmail.com
- Subject: Test
- Body: Hello from MCP
## MCP Tool Schema
```json
{
"name": "sendEmail",
"description": "Send an email using nodemailer",
"inputSchema": {
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Recipient email address"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"body": {
"type": "string",
"description": "Email body content"
}
},
"required": ["to", "subject", "body"]
}
}
```