@agent-inspect/mcp-server 6.7.1 → 6.7.3
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 +13 -3
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Read-only MCP server exposing local trace listings (no tool invocation, no mutation).
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
**Support level:** Preview — see [SUPPORT-LEVELS.md](https://github.com/rajudandigam/agent-inspect/blob/main/docs/SUPPORT-LEVELS.md).
|
|
7
|
+
|
|
5
8
|
## When to use
|
|
6
9
|
|
|
7
10
|
- Let MCP-compatible clients **read** trace metadata from disk
|
|
@@ -27,8 +30,14 @@ npx agent-inspect-mcp-server --dir .agent-inspect
|
|
|
27
30
|
## Privacy
|
|
28
31
|
|
|
29
32
|
- Reads local trace directory only
|
|
30
|
-
-
|
|
31
|
-
-
|
|
33
|
+
- Tool results go through a share-profile redaction / size boundary
|
|
34
|
+
- Exposes configured local evidence to the **connected MCP client** — treat that client as a trust boundary
|
|
35
|
+
- No trace mutation; no agent tool invocation
|
|
36
|
+
|
|
37
|
+
## Limitations
|
|
38
|
+
|
|
39
|
+
- Preview surface — tool catalog and bounds may evolve
|
|
40
|
+
- Not a gateway or remote upload service
|
|
32
41
|
|
|
33
42
|
## API
|
|
34
43
|
|
|
@@ -47,9 +56,10 @@ Prefer `agent-inspect list` / `view` for humans; MCP server for tool integration
|
|
|
47
56
|
- **Empty resources:** Confirm `--dir` points at JSONL traces
|
|
48
57
|
- **Security:** Do not expose server beyond localhost without redaction review
|
|
49
58
|
|
|
59
|
+
|
|
50
60
|
## Version
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
Part of the fixed AgentInspect release line. See the npm badge / package manifest for the current version.
|
|
53
63
|
|
|
54
64
|
## License
|
|
55
65
|
|
package/dist/index.cjs
CHANGED
|
@@ -4628,6 +4628,10 @@ function manualTraceEventsToComparableRun(events) {
|
|
|
4628
4628
|
meta = { ...meta ?? {}, agent_inspect_diff_parent_missing: true };
|
|
4629
4629
|
}
|
|
4630
4630
|
const outputPreview = extractOutputPreview(meta);
|
|
4631
|
+
if (meta !== void 0 && ("outputPreview" in meta || "resultPreview" in meta)) {
|
|
4632
|
+
delete meta.outputPreview;
|
|
4633
|
+
delete meta.resultPreview;
|
|
4634
|
+
}
|
|
4631
4635
|
const sc = {
|
|
4632
4636
|
id: acc.id,
|
|
4633
4637
|
name: acc.name,
|
|
@@ -5321,6 +5325,11 @@ function exportMarkdown(tree, options) {
|
|
|
5321
5325
|
function hexFrom(seed, byteLen) {
|
|
5322
5326
|
return crypto__default.default.createHash("sha256").update(seed, "utf8").digest("hex").slice(0, byteLen * 2);
|
|
5323
5327
|
}
|
|
5328
|
+
function unixNano(ms) {
|
|
5329
|
+
const whole = Math.trunc(ms);
|
|
5330
|
+
const fractionNs = Math.round((ms - whole) * 1e6);
|
|
5331
|
+
return BigInt(whole) * 1000000n + BigInt(fractionNs);
|
|
5332
|
+
}
|
|
5324
5333
|
function mapInspectKindToOI(kind, warnings) {
|
|
5325
5334
|
switch (kind) {
|
|
5326
5335
|
case "LLM":
|
|
@@ -5370,10 +5379,10 @@ function exportOpenInference(tree, options) {
|
|
|
5370
5379
|
const ev = n.event;
|
|
5371
5380
|
const spanId = hexFrom(`${tree.runId}:${ev.eventId}`, 8);
|
|
5372
5381
|
const parentSpanHex = ev.parentId ? hexFrom(`${tree.runId}:${ev.parentId}`, 8) : void 0;
|
|
5373
|
-
const startNs =
|
|
5382
|
+
const startNs = unixNano(ev.timestamp);
|
|
5374
5383
|
let endNs;
|
|
5375
5384
|
if (ev.durationMs !== void 0 && Number.isFinite(ev.durationMs)) {
|
|
5376
|
-
endNs = startNs +
|
|
5385
|
+
endNs = startNs + unixNano(ev.durationMs);
|
|
5377
5386
|
}
|
|
5378
5387
|
const { openInferenceKind } = mapInspectKindToOI(ev.kind, warnings);
|
|
5379
5388
|
const attrs = {
|
|
@@ -5421,8 +5430,8 @@ function exportOpenInference(tree, options) {
|
|
|
5421
5430
|
span_id: spanId,
|
|
5422
5431
|
parent_span_id: parentSpanHex,
|
|
5423
5432
|
name: ev.name,
|
|
5424
|
-
start_time_unix_nano: startNs,
|
|
5425
|
-
end_time_unix_nano: endNs,
|
|
5433
|
+
start_time_unix_nano: startNs.toString(),
|
|
5434
|
+
end_time_unix_nano: endNs?.toString(),
|
|
5426
5435
|
attributes: attrs,
|
|
5427
5436
|
status
|
|
5428
5437
|
});
|