@bli-cockpit/mcp 0.1.22 → 0.1.23
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/models-tools.js +21 -5
- package/package.json +1 -1
package/dist/models-tools.js
CHANGED
|
@@ -46,9 +46,13 @@ export function registerModelsTools(server, deps) {
|
|
|
46
46
|
}));
|
|
47
47
|
register("models_card", {
|
|
48
48
|
title: "Read one model card",
|
|
49
|
-
description: "One model in full
|
|
50
|
-
+ "
|
|
51
|
-
+ "
|
|
49
|
+
description: "One model in full, as six questions: what's going on (window, price, today's spend and turns), what's "
|
|
50
|
+
+ "wrong (stale fields, refused probes, today's failures), what's right (probe verdicts, bench record), "
|
|
51
|
+
+ "what should we do / double down / forget about it — each a verbatim quotation from a committed bench "
|
|
52
|
+
+ "report or the words `no bench verdict — not recommended either way`, never advice this tool composed. "
|
|
53
|
+
+ "The provider's claim and our measurement stay in separate columns, and a legend names the window and "
|
|
54
|
+
+ "row count behind every measured figure. A field the provider does not state reads unknown with the "
|
|
55
|
+
+ "reason — never a guess.",
|
|
52
56
|
inputSchema: {
|
|
53
57
|
id: z
|
|
54
58
|
.string()
|
|
@@ -59,6 +63,9 @@ export function registerModelsTools(server, deps) {
|
|
|
59
63
|
}, async (args) => withSession(deps, async (session) => {
|
|
60
64
|
const params = new URLSearchParams();
|
|
61
65
|
params.set("id", String(args.id));
|
|
66
|
+
// The six sections (BLI-3918) — the same answer the model page renders
|
|
67
|
+
// and `cockpit models show` prints.
|
|
68
|
+
params.set("sections", "1");
|
|
62
69
|
const response = await callAgentDoor(session, deps.fetchImpl, "GET", `/api/models/cards${queryString(params)}`);
|
|
63
70
|
// A 404 here is the door's own sentence naming the id and the command
|
|
64
71
|
// that would add it, which is more useful than anything this file
|
|
@@ -67,7 +74,16 @@ export function registerModelsTools(server, deps) {
|
|
|
67
74
|
return errorResult(doorFailureText("models_card", response));
|
|
68
75
|
const body = response.body;
|
|
69
76
|
const card = (body.card ?? {});
|
|
70
|
-
const
|
|
71
|
-
|
|
77
|
+
const sections = (body.sections ?? null);
|
|
78
|
+
const sectionLines = (Array.isArray(body.section_lines) ? body.section_lines : []);
|
|
79
|
+
// A server that predates the sections still answers the whole card, and
|
|
80
|
+
// an agent gets that rather than nothing.
|
|
81
|
+
const lines = sectionLines.length > 0
|
|
82
|
+
? sectionLines
|
|
83
|
+
: (Array.isArray(body.lines) ? body.lines : []);
|
|
84
|
+
return textResult(lines.join("\n") || `Model card ${card.id ?? args.id}.`, {
|
|
85
|
+
card,
|
|
86
|
+
...(sections ? { sections } : {}),
|
|
87
|
+
});
|
|
72
88
|
}));
|
|
73
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bli-cockpit/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "bli-tower \u2014 an MCP server over BLI Cockpit's agent doors: JARVIS (jarvis_*), documents (docs_*), channels (msg_*), issues (work_*), the daily page (brief_*), meeting notes (notes_*), the ops board (ops_status/slack_*), settings/team/model, Scout and the workbook, plus the legacy event-stream tools (emit_event, get_ticket_timeline, get_active_tickets).",
|
|
6
6
|
"type": "module",
|