edit-ui-mcp-server
v0.1.27
Published
A custom MCP server for editing UI messages.
Maintainers
Readme
Edit UI MCP Server
This package provides a Model-Context Protocol (MCP) server for reviewing and editing UI strings based on a set of instructions and a terminology glossary.
Installation
Install the package globally using npm:
npm install -g @my-org/edit-ui-mcp-serverUsage
Once installed, the server can be run from the command line:
edit-ui-mcp-serverThis will start the MCP server, which can then be connected to by an MCP client.
How It Works
The server exposes a single tool, edit_ui_message, which takes the following arguments:
ui_strings: A JSON string representing an array of UI elements to be reviewed.terminology: A JSON string representing a glossary of approved terms.llm_result: The result from the language model for the previous chunk of UI strings.reset: A boolean to reset the server's state.
The server chunks the UI strings, sends them to a language model for review, and aggregates the results.
