@productbrain/mcp 0.0.1-beta.10743 → 0.0.1-beta.10752
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-TY6IGNSJ.js → chunk-GX5RQVW2.js} +21 -6
- package/dist/chunk-GX5RQVW2.js.map +1 -0
- package/dist/{chunk-I46MNOJF.js → chunk-UNDEFOTU.js} +6 -4
- package/dist/chunk-UNDEFOTU.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-5BX5OZAA.js → setup-FN666F4E.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-I46MNOJF.js.map +0 -1
- package/dist/chunk-TY6IGNSJ.js.map +0 -1
- /package/dist/{setup-5BX5OZAA.js.map → setup-FN666F4E.js.map} +0 -0
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
requireVendorTriageAccess,
|
|
28
28
|
requireWriteAccess,
|
|
29
29
|
retryIsFutile,
|
|
30
|
+
runWithCommandId,
|
|
30
31
|
runWithSeatedSession,
|
|
31
32
|
runWithToolContext,
|
|
32
33
|
setSessionOriented,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
trackQualityVerdict,
|
|
46
47
|
trackSessionCaptureRate,
|
|
47
48
|
trackZeroCaptureAuditFired
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-GX5RQVW2.js";
|
|
49
50
|
|
|
50
51
|
// src/server.ts
|
|
51
52
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -12753,7 +12754,8 @@ function acceptSessionIdOnEveryTool(server) {
|
|
|
12753
12754
|
server.registerTool = (name, config, cb) => register(
|
|
12754
12755
|
name,
|
|
12755
12756
|
{ ...config, inputSchema: config.inputSchema.extend({ sessionId: sessionIdArg }) },
|
|
12756
|
-
|
|
12757
|
+
// TASK-893: the command opens here, so the session validation below carries the tool call's x-pb-command.
|
|
12758
|
+
async ({ sessionId, ...args }, extra) => runWithCommandId(async () => {
|
|
12757
12759
|
if (typeof sessionId === "string" && sessionId.length > 0 && !(name === "session" && args.action === "start")) {
|
|
12758
12760
|
const seated = await validateOrRefuse(sessionId);
|
|
12759
12761
|
if ("refused" in seated) return seated.refused;
|
|
@@ -12762,7 +12764,7 @@ function acceptSessionIdOnEveryTool(server) {
|
|
|
12762
12764
|
return { ...result2, content: [{ type: "text", text: sessionRenewedNotice(seated.lc.agentSessionId) }, ...result2.content] };
|
|
12763
12765
|
}
|
|
12764
12766
|
return cb(args, extra);
|
|
12765
|
-
}
|
|
12767
|
+
})
|
|
12766
12768
|
);
|
|
12767
12769
|
}
|
|
12768
12770
|
async function validateOrRefuse(sessionId) {
|
|
@@ -12838,4 +12840,4 @@ export {
|
|
|
12838
12840
|
createProductBrainServer,
|
|
12839
12841
|
initFeatureFlags
|
|
12840
12842
|
};
|
|
12841
|
-
//# sourceMappingURL=chunk-
|
|
12843
|
+
//# sourceMappingURL=chunk-UNDEFOTU.js.map
|