@productbrain/mcp 0.0.1-beta.27 → 0.0.1-beta.28
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-R4LVIGFQ.js → chunk-PTFZHZZJ.js} +42 -4
- package/dist/chunk-PTFZHZZJ.js.map +1 -0
- package/dist/{chunk-YCHKN75N.js → chunk-UZDFQUAR.js} +10 -1
- package/dist/chunk-UZDFQUAR.js.map +1 -0
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{smart-capture-WWGVXMQ2.js → smart-capture-AEPYZ2EA.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-R4LVIGFQ.js.map +0 -1
- package/dist/chunk-YCHKN75N.js.map +0 -1
- /package/dist/{smart-capture-WWGVXMQ2.js.map → smart-capture-AEPYZ2EA.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
requireWriteAccess,
|
|
15
15
|
setSessionOriented,
|
|
16
16
|
startAgentSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UZDFQUAR.js";
|
|
18
18
|
|
|
19
19
|
// src/server.ts
|
|
20
20
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -1000,7 +1000,7 @@ Use \`list-collections\` to verify the result.`
|
|
|
1000
1000
|
},
|
|
1001
1001
|
async ({ entryId }) => {
|
|
1002
1002
|
requireWriteAccess();
|
|
1003
|
-
const { runContradictionCheck } = await import("./smart-capture-
|
|
1003
|
+
const { runContradictionCheck } = await import("./smart-capture-AEPYZ2EA.js");
|
|
1004
1004
|
const entry = await mcpQuery("chain.getEntry", { entryId });
|
|
1005
1005
|
if (!entry) {
|
|
1006
1006
|
return {
|
|
@@ -1014,7 +1014,8 @@ Use \`list-collections\` to verify the result.`
|
|
|
1014
1014
|
}
|
|
1015
1015
|
const result = await mcpMutation("chain.commitEntry", {
|
|
1016
1016
|
entryId,
|
|
1017
|
-
author: getAgentSessionId() ? `agent:${getAgentSessionId()}` : void 0
|
|
1017
|
+
author: getAgentSessionId() ? `agent:${getAgentSessionId()}` : void 0,
|
|
1018
|
+
sessionId: getAgentSessionId() ?? void 0
|
|
1018
1019
|
});
|
|
1019
1020
|
const docId = result?._id ?? entry._id;
|
|
1020
1021
|
await recordSessionActivity({ entryModified: docId });
|
|
@@ -3549,6 +3550,43 @@ function slotSummary(slots) {
|
|
|
3549
3550
|
}).join("\n");
|
|
3550
3551
|
}
|
|
3551
3552
|
function registerMapTools(server) {
|
|
3553
|
+
server.registerTool(
|
|
3554
|
+
"create-audience-map-set",
|
|
3555
|
+
{
|
|
3556
|
+
title: "Create Audience Map Set",
|
|
3557
|
+
description: "Create all three audience intelligence maps (Empathy, Narrowing, Jobs & Alternatives) anchored to one audience entry. The audience is pre-slotted in the anchor position of each map.",
|
|
3558
|
+
inputSchema: {
|
|
3559
|
+
audienceEntryId: z8.string().describe("Entry ID of the audience (e.g. STR-fb7hje)")
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
async ({ audienceEntryId }) => {
|
|
3563
|
+
const result = await mcpMutation(
|
|
3564
|
+
"maps.createAudienceMapSet",
|
|
3565
|
+
{ audienceEntryId }
|
|
3566
|
+
);
|
|
3567
|
+
const wsCtx = await getWorkspaceContext();
|
|
3568
|
+
const lines = result.maps.map(
|
|
3569
|
+
(m) => `- **${m.templateId}**: \`${m.mapEntryId}\``
|
|
3570
|
+
);
|
|
3571
|
+
return {
|
|
3572
|
+
content: [
|
|
3573
|
+
{
|
|
3574
|
+
type: "text",
|
|
3575
|
+
text: `# Audience Map Set Created
|
|
3576
|
+
|
|
3577
|
+
**Audience:** \`${result.audienceEntryId}\`
|
|
3578
|
+
**Workspace:** ${wsCtx.workspaceSlug}
|
|
3579
|
+
|
|
3580
|
+
## Maps
|
|
3581
|
+
|
|
3582
|
+
${lines.join("\n")}
|
|
3583
|
+
|
|
3584
|
+
Use map-slot to add ingredients. View at /empathy, /narrowing, and /jobs.`
|
|
3585
|
+
}
|
|
3586
|
+
]
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
);
|
|
3552
3590
|
server.registerTool(
|
|
3553
3591
|
"map",
|
|
3554
3592
|
{
|
|
@@ -4858,4 +4896,4 @@ export {
|
|
|
4858
4896
|
SERVER_VERSION,
|
|
4859
4897
|
createProductBrainServer
|
|
4860
4898
|
};
|
|
4861
|
-
//# sourceMappingURL=chunk-
|
|
4899
|
+
//# sourceMappingURL=chunk-PTFZHZZJ.js.map
|