@deslop/scope 0.1.1093 → 0.1.1096
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 +15 -12
- package/dist/{contracts-C6i6YWAa.mjs → server.js} +29439 -10565
- package/package.json +7 -11
- package/dist/cli.js +0 -7973
package/README.md
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @deslop/scope
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An Effect development debugger: an OTLP/HTTP JSON receiver on port 4318 whose traces and logs agents query through MCP.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @deslop/scope@latest
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
npx @deslop/scope@latest trace <trace-id>
|
|
10
|
-
npx @deslop/scope@latest watch --service @deslop/portfolio-server
|
|
6
|
+
npx @deslop/scope@latest # http://127.0.0.1:4318, data in ~/.deslop/scope
|
|
7
|
+
claude mcp add --transport http scope http://127.0.0.1:4318/mcp
|
|
8
|
+
codex mcp add scope --url http://127.0.0.1:4318/mcp
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
`
|
|
11
|
+
Apps export to `http://127.0.0.1:4318/v1/traces` and `/v1/logs` with `content-type: application/json`. `HOST` and `PORT` change the address; the MCP endpoint has no authentication, so expose it only on a private network.
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
| Tool | Returns |
|
|
14
|
+
| ---------- | ------------------------------------------------------------------------ |
|
|
15
|
+
| `services` | Services with a current run and their runtime: web, mobile or server |
|
|
16
|
+
| `traces` | Matching traces, newest or slowest first, with the total match count |
|
|
17
|
+
| `spans` | Matching spans with their original OTLP fields |
|
|
18
|
+
| `logs` | Matching logs, standalone or attached to a span |
|
|
19
|
+
| `stats` | Span count, errors and p50, p95 and max latency over the whole window |
|
|
20
|
+
| `trace` | One trace whole: spans in parent order with depth, offset and their logs |
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
For a local server started with `NODE_ENV=development`, the shared auth package uses a mock developer. Run `scope services --dev --server http://localhost:5000`; no OAuth or API key is needed. Without `--dev`, the CLI always sends its stored API key, including from a development shell. Production requires real authentication. OTLP/HTTP JSON ingestion at `/v1/traces` and `/v1/logs` is unauthenticated.
|
|
22
|
+
`traces`, `spans`, `logs` and `stats` take `service`, `operation`, `traceId`, `text`, `errors` and `since` (`"10 minutes"` by default); `traces`, `spans` and `logs` add `limit` and `offset`; `traces` and `spans` add `sort`. Only the current run of each service is visible: when a service exports a newer run, every trace it took part in before is hidden.
|