🪄 UNO: Unified Narrative Operator

🪄 UNO: Unified Narrative Operator

site icon
2025.03.23 0
TypeScript文本增强故事叙述写作辅助内容生成
UNO (Unified Narrative Operator) 是一个神奇的文本增强工具,能够将普通的故事内容转化为丰富详细的叙述。它使用先进的文学技巧和启发式分析,可以在保持原声和意图的同时,将文本长度翻倍。UNO 可以分析文本的优缺点,发展未充分的故事元素,丰富环境描述,增强动作序列,平滑散文流程和节奏,并消除重复语言。
View on GitHub

Overview

✨ 核心功能

  1. 文本分析 (analyze_text): 对故事页面进行深度分析,生成包括叙述位置评估、角色焦点识别、场景类型分类、情绪和语调评估、增强建议和重复模式检测在内的全面报告。
  2. 文本增强 (enhance_text): 应用所有五种增强技术,自动扩展文本以达到目标长度(默认200%),并根据文本需求智能应用技术。
  3. 自定义增强 (custom_enhance_text): 完全控制增强过程,选择要应用的增强技术,设置自定义扩展目标(100%-500%),并专注于叙述的特定方面。

🌟 增强技术

  1. Golden Shadow 增强: 识别并扩展故事中未充分发展的元素。
  2. 环境扩展: 通过生动的感官体验丰富您的设置。
  3. 动作场景增强: 将动作序列转化为动态、高强度的体验。
  4. 散文平滑: 改善写作的流程和节奏。
  5. 重复消除: 减少无意的重复,同时保持风格。

📋 安装教程

前置依赖

  • Node.js (v14 或更高版本)
  • NPM (v6 或更高版本)

安装步骤

  1. 克隆或下载仓库 bash git clone https://github.com/your-username/uno-mcp.git cd uno-mcp

  2. 安装依赖 bash npm install

  3. 构建 TypeScript 文件 bash npm run build

  4. 使服务器可执行 (Windows 跳过) bash chmod +x dist/index.js

  5. 测试服务器 bash node test-run.js

🔌 MCP 集成

Claude Desktop 集成

  1. 编辑 Claude 配置文件
  2. Windows: C:\Users\[username]\AppData\Roaming\Claude\claude_desktop_config.json
  3. macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  4. 将 UNO 添加到 MCP 服务器部分 json { "mcpServers": { "uno": { "command": "node", "args": ["/absolute/path/to/uno-mcp/dist/index.js"], "disabled": false, "autoApprove": [] } } }

  5. 重启 Claude 保存配置后,重启 Claude 以激活 UNO MCP 服务器。

🚀 使用示例

分析故事

<use_mcp_tool>
<server_name>uno</server_name>
<tool_name>analyze_text</tool_name>
<arguments>
{
  "text": "As Sarah walked into the garden, she noticed the old statue in the corner. It was covered in moss and vines, almost hidden from view. She felt drawn to it somehow."
}
</arguments>
</use_mcp_tool>

增强故事 (200% 扩展)

<use_mcp_tool>
<server_name>uno</server_name>
<tool_name>enhance_text</tool_name>
<arguments>
{
  "text": "As Sarah walked into the garden, she noticed the old statue in the corner. It was covered in moss and vines, almost hidden from view. She felt drawn to it somehow."
}
</arguments>
</use_mcp_tool>

自定义增强

<use_mcp_tool>
<server_name>uno</server_name>
<tool_name>custom_enhance_text</tool_name>
<arguments>
{
  "text": "As Sarah walked into the garden, she noticed the old statue in the corner. It was covered in moss and vines, almost hidden from view. She felt drawn to it somehow.",
  "expansionTarget": 150,
  "enableGoldenShadow": true,
  "enableEnvironmental": true,
  "enableActionScene": false,
  "enableProseSmoother": true,
  "enableRepetitionElimination": false
}
</arguments>
</use_mcp_tool>

💡 提示与技巧

  • 始终从 analyze_text 开始,以了解您的文本需求。
  • 对于微妙的增强,使用 custom_enhance_text 并设置较低的扩展目标(120-150%)。
  • 将较长的文本分成较小的部分进行处理,然后合并结果。
  • 在增强较长作品时,最后一步应用重复消除。
  • 仅对包含动作元素的场景使用 enableActionScene: true

许可证

该项目遵循 ISC 开源许可条款,请参阅 ISC 了解完整条款。