通过 blastengine 服务发送电子邮件
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
BLASTENGINE_API_KEYBLASTENGINE_USER_ID
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。