@emit-vision/cli 0.5.0 → 0.6.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.
- package/README.md +36 -0
- package/dist/index.js +55529 -18221
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -109,6 +109,42 @@ emit-vision key get <projectId>
|
|
|
109
109
|
emit-vision key rotate <projectId> --yes
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
## MCP server
|
|
113
|
+
|
|
114
|
+
`emit-vision mcp` starts a [Model Context Protocol](https://modelcontextprotocol.io) server on stdio, so a coding agent can read a project's errors, logs, traces, releases, overview and Pulse checks as tools. It is read-only by default and uses the same login, profiles and repo default project (`.emit-vision.json`) as the rest of the CLI.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Claude Code
|
|
118
|
+
claude mcp add emit-vision -- npx -y @emit-vision/cli mcp
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Any other MCP client (Cursor and others) takes the same command in its `mcpServers` config:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"mcpServers": {
|
|
126
|
+
"emit-vision": {
|
|
127
|
+
"command": "npx",
|
|
128
|
+
"args": ["-y", "@emit-vision/cli", "mcp"]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Authentication is the CLI's: run `emit-vision login` once, or set `EMIT_VISION_PAT` (and `EMIT_VISION_API_URL` for a self-hosted instance) in the server's `env`. Pick a profile with `EMIT_VISION_PROFILE` or `--profile <name>` in `args`.
|
|
135
|
+
|
|
136
|
+
Tools: `list_projects`, `get_overview`, `list_error_groups`, `get_error_group`, `get_error_breadcrumbs`, `list_recent_errors`, `search_logs`, `list_traces`, `get_trace`, `list_releases`, `list_pulse_checks`. Each takes an optional `projectId`; without one the server uses the project in `.emit-vision.json`, and otherwise tells the agent to call `list_projects`.
|
|
137
|
+
|
|
138
|
+
### Write tools (opt-in)
|
|
139
|
+
|
|
140
|
+
Triage tools are off by default, so a read-only setup stays read-only: an agent can't change your project's state unless you decided it may. Start the server with `--allow-writes` (or set `EMIT_VISION_MCP_ALLOW_WRITES=1`) to add `resolve_error_group`, `ignore_error_group` and `reopen_error_group`. Without the flag they are absent from the tool list, not merely refused.
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
claude mcp add emit-vision -- npx -y @emit-vision/cli mcp --allow-writes
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Every tool carries MCP annotations: the read tools are `readOnlyHint`, the write tools are non-destructive and idempotent. They need an editor role on the project; a token without it gets a clear "access denied" tool error. Resolving does not take a release; the dashboard reopens a group if it occurs again.
|
|
147
|
+
|
|
112
148
|
## Scripting and agents
|
|
113
149
|
|
|
114
150
|
Every read command supports `--json`, so output pipes cleanly into `jq` or an agent's tool loop:
|