@viewlint/mcp
v1.0.0
Published
MCP server for ViewLint
Readme
@viewlint/mcp
@viewlint/mcp is the Model Context Protocol (MCP) server for ViewLint.
It lets MCP-capable editors and agents run ViewLint as tools, so they can get feedback from rendered UI while making changes.
Usage
npx @viewlint/mcp@latestOr:
viewlint --mcpWhat it does
- Runs a stdio MCP server
- Discovers the active
viewlint.config.*file from the current working directory - Exposes a
get-configtool to inspect configuration discovery - Exposes a
linttool to run ViewLint with optionalview,options,scopes, andselectors - Returns structured lint results suitable for agent workflows
Example MCP client config
{
"servers": {
"viewlint": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@viewlint/mcp@latest"]
}
}
}See the MCP Server docs in the ViewLint Documentation for full setup details.
