@productbrain/mcp 0.0.1-beta.11494 → 0.0.1-beta.11506
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/{chunk-AMTSVZXV.js → chunk-P5TJID57.js} +6 -14
- package/dist/chunk-P5TJID57.js.map +1 -0
- package/dist/{chunk-3STAPRQ3.js → chunk-YFH3QOQZ.js} +1 -1
- package/dist/chunk-YFH3QOQZ.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-JSUEHMKA.js → setup-FVZNB7A6.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3STAPRQ3.js.map +0 -1
- package/dist/chunk-AMTSVZXV.js.map +0 -1
- /package/dist/{setup-JSUEHMKA.js.map → setup-FVZNB7A6.js.map} +0 -0
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
runWithToolContext,
|
|
36
36
|
setSessionOriented,
|
|
37
37
|
startAgentSession
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YFH3QOQZ.js";
|
|
39
39
|
|
|
40
40
|
// src/server.ts
|
|
41
41
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -4338,7 +4338,7 @@ var CONTEXT_ACTIONS = [...LOOKUP_ACTIONS, "gather", "build", "neighborhood", "ch
|
|
|
4338
4338
|
var contextSchema = z20.object({
|
|
4339
4339
|
// provenance: neighborhood BET-142; changes/chain/cross-cut/incremental/brief BET-239 (E4, E6)
|
|
4340
4340
|
action: z20.enum(CONTEXT_ACTIONS).describe(
|
|
4341
|
-
LOOKUP_ACTION_DESCRIBE + "'gather': assemble knowledge context (entry graph, task auto-load, journey mode, or graph mode). 'build': structured build spec for an entry. 'neighborhood': typed graph neighborhood for an entry \u2014 blocking chain, dependencies, parent context, tensions, staleness. 'changes': entries modified and relations created since a timestamp. Requires 'since' parameter. 'chain': directed traversal along one relation type to depth 4. Requires entryId. Optional: direction, relationType, maxHops (1-4). 'cross-cut': structural aggregation \u2014 all relations of a given type grouped by source collection. Requires 'relationType' parameter. 'incremental': delta since last brief run for a skill. Requires 'skill' parameter. Returns only entries changed since the skill's last brief. 'brief': compound intelligence query. Requires 'briefType' parameter: 'steering' (changes + structure + delta + readiness), 'confidence' (changes + active bets \u2014 use the pb CLI's `tensions list` for tensions), or 'delta' (changes + relations since timestamp). Optional 'since' for delta type. 'last-verified-brief': fetch the most recent verified brief snapshot for a (templateId, scopeKey) pair
|
|
4341
|
+
LOOKUP_ACTION_DESCRIBE + "'gather': assemble knowledge context (entry graph, task auto-load, journey mode, or graph mode). 'build': structured build spec for an entry. 'neighborhood': typed graph neighborhood for an entry \u2014 blocking chain, dependencies, parent context, tensions, staleness. 'changes': entries modified and relations created since a timestamp. Requires 'since' parameter. 'chain': directed traversal along one relation type to depth 4. Requires entryId. Optional: direction, relationType, maxHops (1-4). 'cross-cut': structural aggregation \u2014 all relations of a given type grouped by source collection. Requires 'relationType' parameter. 'incremental': delta since last brief run for a skill. Requires 'skill' parameter. Returns only entries changed since the skill's last brief. 'brief': compound intelligence query. Requires 'briefType' parameter: 'steering' (changes + structure + delta + readiness), 'confidence' (changes + active bets \u2014 use the pb CLI's `tensions list` for tensions), or 'delta' (changes + relations since timestamp). Optional 'since' for delta type. 'last-verified-brief': fetch the most recent verified brief snapshot for a (templateId, scopeKey) pair. Requires templateId and scopeKey."
|
|
4342
4342
|
),
|
|
4343
4343
|
entryId: z20.string().max(200).optional().describe("For 'get'/'history'/'find'/'outcome'/'readings'/'build'/'neighborhood'/'chain': entry ID. For 'gather': optional (entry-graph mode)."),
|
|
4344
4344
|
...lookupParams,
|
|
@@ -10240,14 +10240,8 @@ function nextActionForVerb(verb, args) {
|
|
|
10240
10240
|
return { tool: "feedback", description: "Read the vendor triage queue (system admins only)", parameters: { action: "queue" } };
|
|
10241
10241
|
case "question.create":
|
|
10242
10242
|
return { tool: "question", description: "Create a routed question", parameters: { action: "create" } };
|
|
10243
|
-
case "question.adopt":
|
|
10244
|
-
return { tool: "question", description: "Attach routing to a captured tension", parameters: { action: "adopt" } };
|
|
10245
10243
|
case "question.assign":
|
|
10246
10244
|
return { tool: "question", description: "Confirm or reassign a question", parameters: { action: "assign" } };
|
|
10247
|
-
case "question.snooze":
|
|
10248
|
-
return { tool: "question", description: "Snooze a routed/escalated question", parameters: { action: "snooze" } };
|
|
10249
|
-
case "question.decline":
|
|
10250
|
-
return { tool: "question", description: "Pass on or decline a question", parameters: { action: "decline" } };
|
|
10251
10245
|
case "question.answer":
|
|
10252
10246
|
return { tool: "question", description: "Answer a question", parameters: { action: "answer" } };
|
|
10253
10247
|
case "question.forceClose":
|
|
@@ -10274,8 +10268,6 @@ function displayVerbFromRoute(route) {
|
|
|
10274
10268
|
switch (route) {
|
|
10275
10269
|
case "question.assign":
|
|
10276
10270
|
return "take it / reassign";
|
|
10277
|
-
case "question.decline":
|
|
10278
|
-
return "pass / decline";
|
|
10279
10271
|
case "question.forceClose":
|
|
10280
10272
|
return "force-close";
|
|
10281
10273
|
default:
|
|
@@ -11146,7 +11138,7 @@ var WORKSPACE_ACTIONS = [
|
|
|
11146
11138
|
];
|
|
11147
11139
|
var workspaceSchema = z31.object({
|
|
11148
11140
|
action: z31.enum(WORKSPACE_ACTIONS).describe(
|
|
11149
|
-
"'check': connectivity and workspace stats
|
|
11141
|
+
"'check': connectivity and workspace stats. 'whoami': session identity. 'status': workspace readiness. 'audit': session audit log. 'self-test': validate all tool schemas. 'usage': LLM usage and cost summary."
|
|
11150
11142
|
),
|
|
11151
11143
|
limit: z31.number().min(1).max(50).optional().describe("For 'audit': how many recent calls to show (max 50, default 20)."),
|
|
11152
11144
|
periodDays: z31.number().min(1).max(90).optional().describe("For 'usage': number of days to look back (default 30, max 90).")
|
|
@@ -11186,7 +11178,7 @@ function registerWorkspaceTools(server) {
|
|
|
11186
11178
|
"workspace",
|
|
11187
11179
|
{
|
|
11188
11180
|
title: "Workspace",
|
|
11189
|
-
description: "Diagnostics, session identity, and usage for the current workspace. Six actions:\n\n- **check**: Verify connectivity \u2014 workspace, collections, entries, latency.\n- **whoami**: Session identity \u2014 workspace ID, slug, name.\n- **status**: Workspace readiness \u2014 checks (pass/fail), gaps, stats (entries, relations, orphans).\n- **audit**: Session audit log \u2014 last N backend calls with summary.\n- **self-test**: Validate all registered tool schemas.\n- **usage**: LLM usage and cost summary \u2014 spend, tokens, model/feature breakdown
|
|
11181
|
+
description: "Diagnostics, session identity, and usage for the current workspace. Six actions:\n\n- **check**: Verify connectivity \u2014 workspace, collections, entries, latency.\n- **whoami**: Session identity \u2014 workspace ID, slug, name.\n- **status**: Workspace readiness \u2014 checks (pass/fail), gaps, stats (entries, relations, orphans).\n- **audit**: Session audit log \u2014 last N backend calls with summary.\n- **self-test**: Validate all registered tool schemas.\n- **usage**: LLM usage and cost summary \u2014 spend, tokens, model/feature breakdown.",
|
|
11190
11182
|
inputSchema: workspaceSchema,
|
|
11191
11183
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
|
|
11192
11184
|
},
|
|
@@ -11672,7 +11664,7 @@ function registerResources(server) {
|
|
|
11672
11664
|
async (uri) => {
|
|
11673
11665
|
const collections = await kernelQuery("chain.listCollections") ?? [];
|
|
11674
11666
|
if (collections.length === 0) {
|
|
11675
|
-
return { contents: [{ uri: uri.href, text: "No collections in this workspace. Ask a platform admin to provision one, or enable a module ontology pack
|
|
11667
|
+
return { contents: [{ uri: uri.href, text: "No collections in this workspace. Ask a platform admin to provision one, or enable a module ontology pack.", mimeType: "text/markdown" }] };
|
|
11676
11668
|
}
|
|
11677
11669
|
const formatted = collections.map((c) => {
|
|
11678
11670
|
const fieldList = (c.fields ?? []).map((f) => ` - \`${f.key}\` (${f.type}${f.required ? ", required" : ""}${f.searchable ? ", searchable" : ""})`).join("\n");
|
|
@@ -12204,4 +12196,4 @@ export {
|
|
|
12204
12196
|
SERVER_VERSION,
|
|
12205
12197
|
createProductBrainServer
|
|
12206
12198
|
};
|
|
12207
|
-
//# sourceMappingURL=chunk-
|
|
12199
|
+
//# sourceMappingURL=chunk-P5TJID57.js.map
|