error-mom 0.7.0 → 0.7.1
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/LICENSE +21 -0
- package/README.md +92 -2
- package/dist/cli.js +1 -1
- package/package.json +8 -8
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ken Kai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,14 +1,104 @@
|
|
|
1
1
|
# error-mom
|
|
2
2
|
|
|
3
|
-
Agent-first CLI and MCP tools for a self-hosted Error Mom
|
|
3
|
+
Agent-first CLI and MCP tools for a self-hosted [Error Mom](https://github.com/KenKaiii/error-mom) deployment.
|
|
4
|
+
|
|
5
|
+
## Install and authenticate
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm install --global error-mom
|
|
7
9
|
error-mom login https://errors.example.com --token "$ERROR_MOM_ADMIN_TOKEN"
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Login stores the server URL and private admin token in `~/.error-mom/config.json` with private file permissions. You can instead set `ERROR_MOM_SERVER` and `ERROR_MOM_ADMIN_TOKEN`.
|
|
13
|
+
|
|
14
|
+
## Connect an app
|
|
15
|
+
|
|
16
|
+
Run this from the app you want to monitor:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
error-mom init
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`init` creates or reuses a project, installs `@kenkaiiii/error-mom`, generates a setup file, detects the framework, and returns exact wiring instructions. For a pnpm or Yarn workspace, use `error-mom init --skip-install` and install the SDK with the workspace package manager.
|
|
23
|
+
|
|
24
|
+
The generated project key is write-only and safe to commit or ship. It can submit events but cannot read issues, manage projects, or upload source maps. Keep the admin token private.
|
|
25
|
+
|
|
26
|
+
Verify health and ingestion with the exact `error-mom doctor --project-key ...` command printed by `init`. Synthetic doctor events are validated but never stored as issues.
|
|
27
|
+
|
|
28
|
+
## Work with projects and issues
|
|
29
|
+
|
|
30
|
+
```bash
|
|
8
31
|
error-mom projects
|
|
9
32
|
error-mom issues
|
|
33
|
+
error-mom issues --project <project-id>
|
|
10
34
|
error-mom inspect <issue-id>
|
|
35
|
+
error-mom inspect <issue-id> --samples 5
|
|
11
36
|
error-mom resolve <issue-id> --release 1.4.2
|
|
12
37
|
```
|
|
13
38
|
|
|
14
|
-
|
|
39
|
+
Resolved issues stay hidden by default. If the same issue returns in the fixed release or a newer release, Error Mom marks it as regressed.
|
|
40
|
+
|
|
41
|
+
Permanently deleting a project also deletes its issues, samples, ingest keys, and receipts:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
error-mom delete-project <project-id>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Source maps
|
|
48
|
+
|
|
49
|
+
Upload source maps immediately after a production build. The release must exactly match the release reported by the SDK.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
error-mom sourcemaps <build-directory> \
|
|
53
|
+
--release <app-version> \
|
|
54
|
+
--project <project-slug>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The command discovers JavaScript/source-map pairs and warns about missing `sourcesContent` or release mismatches. Uploads require the admin token; project ingest keys are rejected.
|
|
58
|
+
|
|
59
|
+
Test symbolication without storing an event or map:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
error-mom doctor --symbolication
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## MCP server
|
|
66
|
+
|
|
67
|
+
Run `error-mom mcp` as a stdio MCP server. It exposes:
|
|
68
|
+
|
|
69
|
+
- `list_projects`
|
|
70
|
+
- `list_issues`
|
|
71
|
+
- `get_issue`
|
|
72
|
+
- `resolve_issue`
|
|
73
|
+
- `check_symbolication`
|
|
74
|
+
- `delete_project`
|
|
75
|
+
|
|
76
|
+
Example client configuration:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"mcpServers": {
|
|
81
|
+
"error-mom": {
|
|
82
|
+
"command": "error-mom",
|
|
83
|
+
"args": ["mcp"],
|
|
84
|
+
"env": {
|
|
85
|
+
"ERROR_MOM_SERVER": "https://errors.example.com",
|
|
86
|
+
"ERROR_MOM_ADMIN_TOKEN": "set-this-in-your-secret-store"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Prefer your MCP client's secure environment or secret configuration instead of committing the admin token.
|
|
94
|
+
|
|
95
|
+
## Command help
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
error-mom --help
|
|
99
|
+
error-mom <command> --help
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Operational commands write machine-readable JSON to stdout, making the CLI suitable for coding agents and automation.
|
|
103
|
+
|
|
104
|
+
See the [repository README](https://github.com/KenKaiii/error-mom#readme) for deployment, SDK, framework, dashboard, and security instructions.
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "error-mom",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Agent-first CLI and MCP tools for self-hosted Error Mom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
"dist",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsup src/cli.ts --format esm --dts --clean",
|
|
16
|
-
"check": "tsc --noEmit",
|
|
17
|
-
"test": "vitest run --passWithNoTests"
|
|
18
|
-
},
|
|
19
14
|
"dependencies": {
|
|
20
15
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
21
16
|
"commander": "^15.0.0",
|
|
@@ -28,5 +23,10 @@
|
|
|
28
23
|
"publishConfig": {
|
|
29
24
|
"access": "public"
|
|
30
25
|
},
|
|
31
|
-
"license": "MIT"
|
|
32
|
-
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup src/cli.ts --format esm --dts --clean",
|
|
29
|
+
"check": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run --passWithNoTests"
|
|
31
|
+
}
|
|
32
|
+
}
|