UNO-MCP

ISC License
  • Apple

Integrations

  • Runs as a Node.js application, enabling server-side execution of the narrative enhancement tools.

  • Built with TypeScript, allowing for type-safe development and integration with the MCP server.

🪄 UNO:统一叙事运算符

✨ 概述

UNO(统一叙事算子)是一款神奇的文本增强工具,能够将普通的故事内容转化为丰富细致的叙事。UNO 运用先进的文学技巧和启发式分析,能够在保留原始语调和意图的同时,将文本长度增加一倍。

将 UNO 视为您的个人叙事助理,它能够:

  • 📊 分析你的文本以了解其优点和缺点
  • 🌱 不断增加未充分开发的故事元素
  • 🎨 丰富的环境描述
  • ⚡ 强化动作序列
  • 🌊 流畅的散文和节奏
  • 🔄 消除重复语言

🛠️ 功能

UNO 提供了三个强大的 MCP 工具:

1. 🔍 analyze_text

对您的故事页面进行深入分析并生成综合报告,包括:

  • 📝 叙事立场评估(开头、中间、高潮、结局)
  • 👤 角色焦点识别
  • 🎭 场景类型分类
  • 🌡️ 情绪和语气评估
  • 📈 针对每种技术的增强建议
  • 🔄 重复模式检测

2. ✨ enhance_text

通过应用所有五种增强技术来转换您的文本:

  • 自动扩展文本以达到目标长度(默认值:200%)
  • 根据文本最需要的内容智能地应用技术
  • 平衡整个文本的扩展

3. ⚙️ custom_enhance_text

让您完全控制增强过程:

  • 选择要应用的增强技术
  • 设置自定义扩展目标(100%-500%)
  • 关注叙述的特定方面

🌟 增强技术

1.👻金色阴影增强

识别故事中未充分展现的元素并进行扩展:

  • 培养提及但未培养的性格
  • 探索隐含但未解释的情节元素
  • 展现潜台词和隐藏的含义

2.🏞️ 环境扩展

通过沉浸式细节丰富您的设置:

  • 增加生动的感官体验(视觉、听觉、触觉、嗅觉)
  • 创造对不重要物体的难忘关注
  • 加深氛围和情绪

3.⚡动作场景增强

将动作序列转化为动态、高强度的体验:

  • 操纵感知时间(放慢关键时刻)
  • 强化行动过程中的感官细节
  • 在爆发性动作和瞬间静止之间创造节奏交替
  • 使环境成为行动的积极参与者

4.🌊 散文平滑

改善写作的流畅性和节奏:

  • 增强段落之间的过渡
  • 改变句子结构以提高可读性
  • 创造一种自然的节奏,吸引读者阅读文本

5.🔄 消除重复

减少无意的重复,同时保留风格:

  • 识别重复的单词并用有意义的替代词替换
  • 保留作者的声音和意图
  • 区分有意和无意的重复

📋 安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Unified Narrative Operator:

npx -y @smithery/cli install @MushroomFleet/uno-mcp --client claude

先决条件

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

分步安装

  1. 克隆或下载存储库
    git clone https://github.com/your-username/uno-mcp.git cd uno-mcp
  2. 安装依赖项
    npm install
  3. 构建 TypeScript 文件
    npm run build
  4. 使服务器可执行(Windows 上跳过)
    chmod +x dist/index.js
  5. 测试服务器
    node test-run.js
    这将在示例故事上运行服务器并生成三个文件:
    • test-analysis.md :样本分析报告
    • test-enhanced.txt :增强文本示例(200%)
    • test-custom-enhanced.txt :自定义增强示例(150%)

🔌 MCP 集成

Claude 桌面集成

  1. 编辑 Claude 配置文件
    • Windows: C:\Users\[username]\AppData\Roaming\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. 将 UNO 添加到 MCP 服务器部分
    { "mcpServers": { "uno": { "command": "node", "args": ["/absolute/path/to/uno-mcp/dist/index.js"], "disabled": false, "autoApprove": [] } } }
    确保使用 UNO 安装的绝对路径。
  3. 重启Claude保存配置后,重启Claude以激活UNO MCP服务器。

VS Code 集成

  1. 编辑 VS Code Claude 扩展配置
    • Windows: c:\Users\[username]\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  2. 为 Claude Desktop添加与上面相同的配置
  3. 重新启动 VS Code或重新加载窗口。

🚀 使用示例

分析故事

<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>

此示例仅应用了金色阴影增强、环境扩展和散文平滑,目标是扩展 150%。

⚡ 集成用例

📝 创意写作助理

Can you enhance this scene with more environmental details? <use_mcp_tool> <server_name>uno</server_name> <tool_name>custom_enhance_text</tool_name> <arguments> { "text": "Jack entered the abandoned warehouse, searching for clues.", "expansionTarget": 300, "enableEnvironmental": true, "enableGoldenShadow": false, "enableActionScene": false, "enableProseSmoother": false, "enableRepetitionElimination": false } </arguments> </use_mcp_tool>

📚 写作教练

Let me analyze this paragraph to give you feedback: <use_mcp_tool> <server_name>uno</server_name> <tool_name>analyze_text</tool_name> <arguments> { "text": "[student's writing sample]" } </arguments> </use_mcp_tool> Based on the analysis, I recommend focusing on developing your character motivations more clearly.

🎮 游戏叙事开发

Here's a more intense version of your action scene: <use_mcp_tool> <server_name>uno</server_name> <tool_name>custom_enhance_text</tool_name> <arguments> { "text": "[original action scene]", "enableActionScene": true, "enableEnvironmental": true, "enableGoldenShadow": false, "enableProseSmoother": true, "enableRepetitionElimination": true } </arguments> </use_mcp_tool>

📔 小说扩展

Let me help you expand this chapter: <use_mcp_tool> <server_name>uno</server_name> <tool_name>enhance_text</tool_name> <arguments> { "text": "[chapter excerpt]", "expansionTarget": 180 } </arguments> </use_mcp_tool>

💡 技巧与窍门

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

📄 许可证

国际学习中心

🙏 致谢

UNO 基于先进的文学提升技术和叙事理论。特别感谢那些启发了这个项目的故事讲述者、作家和叙事理论家们。


由 UNO 团队精心制作

ID: gs99casbdj