措辞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;
}