那很无聊(工作中/进行中)
编写编辑器MCP服务器
一个面向学术和技术写作的全面MCP(模型上下文协议)服务器,能够自动执行写作规则并遵循最佳实践。
特点/功能
自动书写功能的改进
- 被动语态转换自动将被动结构转换为主动语态
- 句子简化将长句(>25个单词)拆分,以提高可读性
- 词汇简化用更简单的词汇替换复杂的词汇
- 时态修正在学术写作中,将将来时态转换为现在时态
- 去除行话消除学术术语和冗余短语
- 括号式融合(或插入式整合)将括号内的内容转换为普通文本
文档结构验证
- 引言 验证确保第一段阐述问题,贡献部分清晰明了
- 抽象优化保持100-250字的篇幅,确保内容自成一体
- 部门组织在需要的地方自动插入概述部分
- 结构分析验证预期部分的存在性
全面追踪
- 变更跟踪详细的Markdown文档,展示所有编辑内容
- 前后对比原文与编辑后文本的并排对比
- 指标计算词汇量减少,可读性提升分数
- 规则应用概要关于应用了哪些规则的统计数据
安装
# Clone the repository
git clone [repository-url]
cd writing-editor-mcp
# Install dependencies
npm install
# Build the TypeScript code
npm run build使用方法
作为MCP服务器
在您的MCP客户端配置中添加:
{
"mcpServers": {
"writing-editor": {
"command": "node",
"args": ["path/to/writing-editor-mcp/dist/server.js"]
}
}
}可用工具
1. 编辑文档
使用自动规则执行功能编辑文档:
{
"text": "The system was designed by our team...",
"documentType": "section", // or "full_paper", "paragraph", "abstract"
"outputFormat": "tracked_changes" // or "clean", "both"
}2. 分析结构
验证文档结构:
{
"text": "# Introduction\n...",
"expectedSections": ["Abstract", "Introduction", "Conclusion"] // optional
}3. 检查清晰度指标
分析清晰度和可读性:
{
"text": "Your text here..."
}4. 优化部分
优化特定部分类型:
{
"text": "Section content...",
"sectionType": "introduction" // or "abstract", "conclusion", etc.
}强制执行书写规则
清晰规则
- 将被动语态转换为主动语态
- 将超过25个单词的句子拆分
- 在单句中区分多个想法
- 简化复杂的词汇
风格规则
- 去除被禁止的学术术语
- 将将来时态转换为现在时态
- 整合括号内内容
- 消除冗余短语
- 强制采用主动写作风格
结构规则
- 在引言中明确问题陈述
- 验证摘要的独立性和长度
- 添加导航概览部分
- 检查所需文件部分
示例输出
输入文本
The system was designed by our team. It should be noted that the results will be evaluated.编辑后的输出
Our team designed the system. The results are evaluated.追踪文件
# Writing Edits Tracking Document
## Summary
- Total changes: 3
- Words reduced: 4
- Readability improvement: 12%
## Detailed Changes
### Change 1
**Rule Applied:** Passive Voice
**Before:** The system was designed by our team
**After:** Our team designed the system
### Change 2
**Rule Applied:** Forbidden Vocabulary
**Before:** It should be noted that
**After:** [removed]
### Change 3
**Rule Applied:** Tense Correction
**Before:** will be evaluated
**After:** are evaluated发展
# Run in development mode
npm run dev
# Build for production
npm run build
# Clean build artifacts
npm run clean建筑学
src/
├── server.ts # MCP server setup and request handling
├── tools/ # Tool implementations
│ ├── editDocument.ts # Main editing tool
│ ├── analyzeStructure.ts # Structure validation
│ ├── checkClarity.ts # Clarity metrics
│ └── generateTracking.ts # Change tracking
├── rules/ # Rule engines
│ ├── clarity.rules.ts # Clarity improvements
│ ├── style.rules.ts # Style enforcement
│ └── structure.rules.ts # Structure validation
├── processors/ # Document processing
│ └── documentParser.ts # Parse and process documents
└── types.ts # TypeScript type definitions许可证
麻省理工学院(MIT)
