@bli-cockpit/mcp 0.1.16 → 0.1.18

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.
@@ -25,12 +25,17 @@
25
25
  import { z } from "zod";
26
26
  import { loadAgentDoorSession } from "./agent-door-session.js";
27
27
  import { callAgentDoor } from "./agent-door.js";
28
- const KINDS = ["doc", "msg", "issue", "note", "memory"];
28
+ // Mirrors `SEARCH_KINDS` in apps/dashboard/src/lib/search/contracts.ts.
29
+ // BLI-3880 added mail and cal; nothing in the type system ties the two
30
+ // lists together, so `search-tool.test.ts` pins this one against the door.
31
+ const KINDS = ["doc", "msg", "issue", "note", "mail", "cal", "memory"];
29
32
  const KIND_LABELS = {
30
33
  doc: "Document",
31
34
  msg: "Message",
32
35
  issue: "Issue",
33
36
  note: "Meeting note",
37
+ mail: "Email",
38
+ cal: "Calendar event",
34
39
  memory: "Memory",
35
40
  };
36
41
  function textResult(text, structured) {
@@ -46,13 +51,13 @@ export function registerSearchTool(server, deps) {
46
51
  const register = server.registerTool.bind(server);
47
52
  register("tower_search", {
48
53
  title: "Search everything in Tower",
49
- description: "One search over documents, messages, issues, meeting notes and BLI Memory. Use it when you know WHAT you are looking for but not WHERE it lives. Every result names the corpus it came from and where to open it; a memory has no page, so its text is the whole record. A corpus that could not answer is reported separately from one that found nothing — do not read a failure as silence.",
54
+ description: "One search over documents, messages, issues, meeting notes, the caller's own mail, their calendar and BLI Memory. Use it when you know WHAT you are looking for but not WHERE it lives. Every result names the corpus it came from and where to open it; a memory has no page, so its text is the whole record. Mail and calendar are the caller's OWN — their mailboxes, their calendars and the ones shared with the organisation — never the whole company's. A calendar hit is the stored event, so a recurring meeting comes back once as its series rather than once per occurrence. A corpus that could not answer is reported separately from one that found nothing — do not read a failure as silence.",
50
55
  inputSchema: {
51
56
  query: z.string().min(2).max(1000).describe("What to look for, in the words a person would type."),
52
57
  kinds: z
53
58
  .array(z.enum(KINDS))
54
59
  .optional()
55
- .describe("Narrow to these corpora. Omit to search all five."),
60
+ .describe("Narrow to these corpora. Omit to search every one."),
56
61
  limit: z.number().int().min(1).max(50).optional().describe("Results to return (default 20)."),
57
62
  },
58
63
  }, async (args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/mcp",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
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",
@@ -30,7 +30,7 @@
30
30
  "readme": "npm run build && node scripts/write-readme-census.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "@bli-cockpit/telemetry-core": "0.1.33",
33
+ "@bli-cockpit/telemetry-core": "0.1.34",
34
34
  "@modelcontextprotocol/sdk": "^1.29.0",
35
35
  "zod": "^4.3.6"
36
36
  },