@deslop/scope 0.1.1180 → 0.1.1182
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/dist/server.js +10 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -64995,9 +64995,13 @@ var AuthError = class extends TaggedError()("AuthError", {
|
|
|
64995
64995
|
error: optionalKey(Literals([
|
|
64996
64996
|
"invalid_request",
|
|
64997
64997
|
"invalid_client",
|
|
64998
|
+
"invalid_client_metadata",
|
|
64999
|
+
"invalid_redirect_uri",
|
|
64998
65000
|
"invalid_grant",
|
|
64999
65001
|
"invalid_target",
|
|
65000
65002
|
"invalid_scope",
|
|
65003
|
+
"unsupported_grant_type",
|
|
65004
|
+
"unsupported_response_type",
|
|
65001
65005
|
"access_denied",
|
|
65002
65006
|
"temporarily_unavailable"
|
|
65003
65007
|
])),
|
|
@@ -65012,6 +65016,8 @@ const Resource$1 = Literals([
|
|
|
65012
65016
|
"https://stash.mp281x.xyz/mcp",
|
|
65013
65017
|
"https://opm.mp281x.xyz",
|
|
65014
65018
|
"https://scope.mp281x.xyz/mcp",
|
|
65019
|
+
"https://signal.mp281x.xyz",
|
|
65020
|
+
"https://signal.mp281x.xyz/mcp",
|
|
65015
65021
|
"https://otel.mp281x.xyz",
|
|
65016
65022
|
"https://auth.mp281x.xyz/mcp",
|
|
65017
65023
|
"https://trips.mp281x.xyz",
|
|
@@ -65109,7 +65115,7 @@ function layerMcpAuth(resource) {
|
|
|
65109
65115
|
const user = yield* result$1(auth.access(headers, resource));
|
|
65110
65116
|
if (isFailure$1(user)) {
|
|
65111
65117
|
if (user.failure.error === "temporarily_unavailable") return unavailable;
|
|
65112
|
-
return text("The access token
|
|
65118
|
+
return text("The access token is invalid or expired; your MCP client refreshes it, and asks you to sign in again only if refreshing fails", {
|
|
65113
65119
|
headers: { "www-authenticate": `${challenge}, error="invalid_token"` },
|
|
65114
65120
|
status: 401
|
|
65115
65121
|
});
|
|
@@ -65185,7 +65191,7 @@ const layerNodeHttpServer = layerConfig(createServer, {
|
|
|
65185
65191
|
port: pipe(Port("PORT"), withDefault(5e3))
|
|
65186
65192
|
});
|
|
65187
65193
|
// package.json
|
|
65188
|
-
var version = "0.1.
|
|
65194
|
+
var version = "0.1.1182";
|
|
65189
65195
|
// src/services/telemetry/schema.ts
|
|
65190
65196
|
var TelemetryError = class extends TaggedError()("TelemetryError", {
|
|
65191
65197
|
cause: optional$6(Defect()),
|
|
@@ -65665,7 +65671,7 @@ var Telemetry = class extends Service$2()("@deslop/scope/services/telemetry/serv
|
|
|
65665
65671
|
trace: fn("Telemetry.trace")(function* (id) {
|
|
65666
65672
|
const traceId = toLowerCase(id);
|
|
65667
65673
|
const records = filter$1(yield* read, (entry) => entry.traceId === traceId);
|
|
65668
|
-
if (isReadonlyArrayEmpty(records)) return yield* TelemetryError.make({ message: "No telemetry
|
|
65674
|
+
if (isReadonlyArrayEmpty(records)) return yield* TelemetryError.make({ message: "No kept telemetry has this trace id: check the id, check ingestion with list_services, or reproduce it if it is older than three days." });
|
|
65669
65675
|
return traceView(records, traceId);
|
|
65670
65676
|
}),
|
|
65671
65677
|
traces: fn("Telemetry.traces")(function* (query) {
|
|
@@ -65702,7 +65708,7 @@ var Telemetry = class extends Service$2()("@deslop/scope/services/telemetry/serv
|
|
|
65702
65708
|
};
|
|
65703
65709
|
// src/tools/contracts.ts
|
|
65704
65710
|
const Tools = make$6(make$7("list_services", {
|
|
65705
|
-
description: "Check ingestion first: every stored service, its runtime, latest run, last event time and entry count. Event/run times use the exporter clock (Unix nanoseconds), not receiver arrival time. Rejected OTLP requests are grouped by route, HTTP status and credential-header presence, never attributed to an app. Rejection counters and since (Unix milliseconds) reset when Scope restarts.
|
|
65711
|
+
description: "Check ingestion first: every stored service, its runtime, latest run, last event time and entry count. Event/run times use the exporter clock (Unix nanoseconds), not receiver arrival time. Rejected OTLP requests are grouped by route, HTTP status and credential-header presence, never attributed to an app. Rejection counters and since (Unix milliseconds) reset when Scope restarts. A missing service has no telemetry kept from the last three days: check the rejections above and its exporter before concluding it sent nothing.",
|
|
65706
65712
|
failure: TelemetryError,
|
|
65707
65713
|
success: IngestionStatus
|
|
65708
65714
|
}).annotate(Readonly, true), make$7("find_traces", {
|