文本重写可视化工具

Wordly MCP应用是一款提供文本重写可视化交互界面的工具,支持语法检查、风格调整和实时比较,适用于文本优化场景。

  • by arifszn
  • TypeScript
  • 本地部署
  • 6 星标
  • 更新于
在 GitHub 查看 arifszn/wordly-mcp-app

使用说明

措辞MCP应用程序

一个MCP(模型上下文协议)应用程序,提供交互式UI,用于可视化多个重写的文本变体。非常适合语法检查、风格调整和实时比较的文本改进。

此应用程序展示了中描述的mcp-ui功能https://blog.modelcontextprotocol.io/posts/2026-01-26-mcp-apps/.

https://github.com/user-attachments/assets/f34d9d00-c8b4-4857-9bd9-709371783523

配置

添加到MCP客户端配置中:

{
  "mcpServers": {
    "wordly": {
      "command": "npx",
      "args": ["-y", "wordly-mcp-app", "--stdio"]
    }
  }
}

运作原理

配置后,Wordly MCP应用程序提供 visualize_rewrites AI助手可以使用该工具在交互式UI中显示文本重写。

示例用法

用户:以多种样式重写此文本:感谢您分享的详细信息

AI助手 将呼叫 visualize_rewrites 工具包括:

{
  "original_text": "thanks for the details you shared",
  "variations": [
    {
      "intent": "Professional & Formal",
      "text": "Thank you for providing those details."
    },
    {
      "intent": "Clear & Conversational",
      "text": "Thanks for sharing that information!"
    },
    {
      "intent": "Constructive & Collaborative",
      "text": "I appreciate you sharing those details with me."
    },
    {
      "intent": "Friendly & Direct",
      "text": "Thanks for the info!"
    }
  ]
}

然后,该应用程序将呈现一个交互式UI,显示所有变体,并能够:

  • 在不同的重写样式之间切换
  • 将原始文本与重写文本进行比较
  • 一键复制任何变体

api参考

工具: visualize_rewrites

向用户显示重写的文本变体。

输入架构:

{
  original_text: string;           // The original text to rewrite
  variations: Array<{
    intent: string;                // The rewrite style/intent
    text: string;                  // The rewritten text
  }>;
}

许可证

麻省理工学院