
mcp email processor
An MCP plugin for processing emails, summarizing content, and generating outlines.(用于处理电子邮件,汇总内容和生成大纲的MCP插件。)
Repository Info
About This Server
An MCP plugin for processing emails, summarizing content, and generating outlines.(用于处理电子邮件,汇总内容和生成大纲的MCP插件。)
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP邮件处理器
中文文档
一个用于处理邮件、总结内容和生成大纲的MCP插件。
开发待办
- 对接Gmail的IMAP服务
- 开放自定义Prompt设置
- 开发不同模型与推送的适配插件
安装
-
克隆仓库:
git clone https://github.com/your-repo/mcp-email-processor.git cd mcp-email-processor -
安装依赖:
pnpm install -
构建项目:
pnpm run build
配置
环境变量
在项目根目录下创建一个.env文件,包含以下变量:
OPENAI_API_KEY=YOUR_MODULE_APIKEY
BASE_URL=YOUR_MODULE_URL
MODULE_CONTEXT=YOUR_MODULE
# LOG_LEVEL=info
# IMAP_HOST=imap.example.com
# IMAP_PORT=993
# IMAP_SECURE=true
# IMAP_USER=your-email@example.com
# IMAP_PASS=your-password
总结配置
编辑src/config.ts以自定义总结选项:
export const summarizationConfig = {
language: 'zh',
summaryTargetLength: 100,
outlineTargetPoints: 5,
outlineStyle: 'bullet',
recognizeImages: false,
imageRecognitionStrategy: 'ocr' as const,
};
使用
命令行工具命令
运行应用程序:
pnpm build
pnpm start
以开发模式运行:
pnpm run dev
运行测试:
pnpm test
代码检查和格式化:
pnpm run lint
pnpm run format
处理命令
处理手动输入的邮件内容或文件:
pnpm start process <input>
<input>:要处理的邮件内容或文件路径。
选项:
-l, --language <language>:总结语言(默认:"zh")。-s, --summary-length <length>:总结目标长度(默认:"medium")。-g, --outline:是否生成大纲(默认:false)。-o, --outline-points <points>:大纲目标点数(默认:"3")。-t, --outline-style <style>:大纲样式(默认:"bullet")。-i, --recognize-images:是否识别图片内容(默认:false)。-r, --recognition-strategy <strategy>:图片识别策略(默认:"ocr")。
API端点
目前,该项目作为命令行应用程序运行。API端点将在未来的更新中添加。
开发
代码风格
该项目使用ESLint进行代码检查,使用Prettier进行格式化。使用Husky和Lint-Staged设置了预提交钩子以确保代码质量。
测试
单元测试和集成测试使用Jest编写。要添加测试,请将它们放在src/__tests__目录中。
安全
- IMAP凭据应安全处理,不应提交到版本控制中。
- 数据隐私:请注意,邮件数据可能会被发送到第三方NLP服务进行处理。
贡献
欢迎贡献!请遵循代码风格指南并提交拉取请求以供审查。
许可证
Apache 2.0 © 2025 Ruby Ceng, Inc.
Quick Start
Clone the repository
git clone https://github.com/rubyceng/mcp-email-processorInstall dependencies
cd mcp-email-processor
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.