@viewlint/mcp 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @viewlint/mcp
2
2
 
3
- MCP server for ViewLint. You can use ViewLint with any AI Agent to improve its UI design skills.
3
+ [GitHub](https://github.com/EvanZhouDev/viewlint) | [Documentation](https://viewlint.vercel.app/docs)
4
+
5
+ `@viewlint/mcp` is the Model Context Protocol (MCP) server for ViewLint.
6
+
7
+ It lets MCP-capable editors and agents run ViewLint as tools, so they can get feedback from rendered UI while making changes.
4
8
 
5
9
  ## Usage
6
10
 
@@ -16,4 +20,24 @@ viewlint --mcp
16
20
 
17
21
  ## What it does
18
22
 
19
- See the [docs](https://viewlint.vercel.app/docs/mcp-server)
23
+ - Runs a stdio MCP server
24
+ - Discovers the active `viewlint.config.*` file from the current working directory
25
+ - Exposes a `get-config` tool to inspect configuration discovery
26
+ - Exposes a `lint` tool to run ViewLint with optional `view`, `options`, `scopes`, and `selectors`
27
+ - Returns structured lint results suitable for agent workflows
28
+
29
+ ## Example MCP client config
30
+
31
+ ```json
32
+ {
33
+ "servers": {
34
+ "viewlint": {
35
+ "type": "stdio",
36
+ "command": "npx",
37
+ "args": ["-y", "@viewlint/mcp@latest"]
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
43
+ See the [MCP Server docs](https://viewlint.vercel.app/docs/mcp-server) in the ViewLint Documentation for full setup details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewlint/mcp",
3
- "version": "0.0.2",
3
+ "version": "1.0.0",
4
4
  "description": "MCP server for ViewLint",
5
5
  "type": "module",
6
6
  "bin": {