@deslop/scope 0.1.1208 → 0.1.1223
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 +7 -30
- package/dist/client/apple-touch-icon.png +0 -0
- package/dist/client/assets/(home)-DkKrI3Jv.js +2 -0
- package/dist/client/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/client/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/client/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/client/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/client/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/client/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/client/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/client/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/client/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/client/assets/icon-C0ALcvgs.svg +1 -0
- package/dist/client/assets/icon-dark-8E7IJN5j.svg +1 -0
- package/dist/client/assets/index-B3AfjWoo.js +25 -0
- package/dist/client/assets/index-PPIRm6Pt.css +2 -0
- package/dist/client/assets/rolldown-runtime-WkwZ5CU-.js +1 -0
- package/dist/client/index.html +25 -0
- package/dist/server.js +61995 -47677
- package/package.json +34 -31
package/README.md
CHANGED
|
@@ -1,36 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Scope
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A debugger for Effect apps: it receives their traces and logs, and agents query them.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
claude mcp login scope --no-browser
|
|
9
|
-
codex mcp add scope --url https://scope.mp281x.xyz/mcp
|
|
10
|
-
codex mcp login --no-browser scope
|
|
6
|
+
npm install --global @deslop/scope
|
|
7
|
+
scope service install --url https://scope.mp281x.xyz --auth https://auth.mp281x.xyz
|
|
11
8
|
```
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
- **Send** telemetry by starting other apps with `--traces https://scope.mp281x.xyz`; it accepts OTLP/HTTP JSON from anywhere and keeps three days.
|
|
11
|
+
- **MCP** at `/mcp`: `list_services`, `find`, `read_trace`, `measure_latency`.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Stored OAuth credentials do not prove the MCP connection works. Check the client's MCP status and tool discovery: Scope exposes the tools below. If startup reports `OAuth authorization required`, sign in again with that client's login command above. An auth-store reset invalidates previously saved credentials.
|
|
18
|
-
|
|
19
|
-
Open the printed authorization URL in a browser on the same worker as the client. Leave it waiting: it shows a QR code and a code, which you scan with a phone where you are signed in or enter at https://auth.mp281x.xyz. The worker's browser completes its localhost callback. Do not move the callback to the phone.
|
|
20
|
-
|
|
21
|
-
The public `/.well-known/oauth-protected-resource/mcp` document names the authorization server. A request without credentials gets a 401 discovery challenge; a rejected bearer adds `error="invalid_token"` and requires sign-in again. An unavailable authorization server returns 503 with `Retry-After`, not a false invalid-token challenge.
|
|
22
|
-
|
|
23
|
-
| Tool | Returns |
|
|
24
|
-
| ----------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
25
|
-
| `list_services` | Every stored service's latest run, runtime, last event time and entry count, plus rejected-export counters |
|
|
26
|
-
| `find` | Matching traces, spans with their OTLP fields, or logs, newest or slowest first, with the total count |
|
|
27
|
-
| `measure_latency` | Span count, errors and p50, p95 and max latency over the whole window |
|
|
28
|
-
| `read_trace` | One stored trace whole, including earlier runs, with parent order, offsets and logs |
|
|
29
|
-
|
|
30
|
-
Entries persist under `~/.deslop/scope/entries/` for three days, by their exporter time.
|
|
31
|
-
|
|
32
|
-
## Ingestion health
|
|
33
|
-
|
|
34
|
-
Start with `list_services`. `lastEventAt` and `runStartedAt` are Unix nanoseconds from the exporter clock, not receiver arrival times; a zero run marker means the exporter supplied no valid run start. `entries` counts records from that service's latest run. A missing service has no retained telemetry, not proof that it is healthy.
|
|
35
|
-
|
|
36
|
-
Rejected requests are counted on both ingestion ports by route, HTTP status and credential-header presence (`authorization`, `cookie` or `none`). These counts cannot identify the exporting app, and anonymous public visitors also produce 401s. No credentials or request bodies are kept. `since` and each rejection's `lastAt` are receiver-clock Unix milliseconds; counters reset when Scope restarts. Scope does not export its own diagnostic traffic back into itself.
|
|
13
|
+
Common flags and service commands: [Deslop app runtime](https://github.com/MP281X/deslop/blob/main/packages/runtime/README.md).
|
|
Binary file
|