通过 blastengine 服务发送电子邮件
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add blastengine --env BLASTENGINE_API_KEY='<BLASTENGINE_API_KEY>' --env BLASTENGINE_USER_ID='<BLASTENGINE_USER_ID>' -- node /path/to/blastengine-mailer/server.js~/.codex/config.toml
[mcp_servers.blastengine]
command = "node"
args = ["/path/to/blastengine-mailer/server.js"]
env = { BLASTENGINE_API_KEY = "<BLASTENGINE_API_KEY>", BLASTENGINE_USER_ID = "<BLASTENGINE_USER_ID>" }
# codex mcp add blastengine --env BLASTENGINE_API_KEY='<BLASTENGINE_API_KEY>' --env BLASTENGINE_USER_ID='<BLASTENGINE_USER_ID>' -- node /path/to/blastengine-mailer/server.js~/.cursor/mcp.json
{
"mcpServers": {
"blastengine": {
"command": "node",
"args": [
"/path/to/blastengine-mailer/server.js"
],
"env": {
"BLASTENGINE_API_KEY": "<BLASTENGINE_API_KEY>",
"BLASTENGINE_USER_ID": "<BLASTENGINE_USER_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"blastengine": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/blastengine-mailer/server.js"
],
"env": {
"BLASTENGINE_API_KEY": "<BLASTENGINE_API_KEY>",
"BLASTENGINE_USER_ID": "<BLASTENGINE_USER_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"blastengine": {
"command": "node",
"args": [
"/path/to/blastengine-mailer/server.js"
],
"env": {
"BLASTENGINE_API_KEY": "<BLASTENGINE_API_KEY>",
"BLASTENGINE_USER_ID": "<BLASTENGINE_USER_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"blastengine": {
"command": "node",
"args": [
"/path/to/blastengine-mailer/server.js"
],
"env": {
"BLASTENGINE_API_KEY": "<BLASTENGINE_API_KEY>",
"BLASTENGINE_USER_ID": "<BLASTENGINE_USER_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"blastengine": {
"command": "node",
"args": [
"/path/to/blastengine-mailer/server.js"
],
"env": {
"BLASTENGINE_API_KEY": "<BLASTENGINE_API_KEY>",
"BLASTENGINE_USER_ID": "<BLASTENGINE_USER_ID>"
}
}
}
}Environment variables
BLASTENGINE_API_KEYBLASTENGINE_USER_ID
Replace the placeholders with your own credentials and keep them out of version control.