prism-mcp-server 19.2.1 → 19.2.2

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.
@@ -18,6 +18,7 @@
18
18
  */
19
19
  import { isSessionTaskRouteArgs, } from "./sessionMemoryDefinitions.js";
20
20
  import { getStorage } from "../storage/index.js";
21
+ import { getSetting } from "../storage/configStorage.js";
21
22
  import { getExperienceBias } from "./routerExperience.js";
22
23
  import { toKeywordArray } from "../utils/keywordExtractor.js";
23
24
  import { callLocalLlm } from "../utils/localLlm.js";
@@ -281,6 +282,25 @@ export async function sessionTaskRouteHandler(args) {
281
282
  isError: true,
282
283
  };
283
284
  }
285
+ // Delegation opt-in gate: if delegation_enabled is not "true", always route to host.
286
+ // This enforces the prism-infer-delegation skill's "off by default" rule in code.
287
+ const delegationEnabled = await getSetting("delegation_enabled", "false");
288
+ if (delegationEnabled !== "true") {
289
+ return {
290
+ content: [{
291
+ type: "text",
292
+ text: JSON.stringify({
293
+ target: "host",
294
+ confidence: 1.0,
295
+ complexity_score: 5,
296
+ rationale: "Delegation is off (default). Enable with: configure_notifications({setting: 'delegation_enabled', value: 'true'}) or via the Prism dashboard.",
297
+ recommended_tool: null,
298
+ delegation_enabled: false,
299
+ }),
300
+ }],
301
+ isError: false,
302
+ };
303
+ }
284
304
  const result = computeRoute(args);
285
305
  // v7.2.0: Experience-based bias adjustment
286
306
  if (args.project) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prism-mcp-server",
3
- "version": "19.2.1",
3
+ "version": "19.2.2",
4
4
  "mcpName": "io.github.dcostenco/prism-coder",
5
5
  "description": "Prism Coder — Cognitive memory + tool-calling intelligence for AI agents. Mind Palace persistent memory (BFCL Gold Certified, 100% Tool-Call Accuracy, 114 Agent Skills, PHI Guard, Tier Enforcement, Prompt-Based Skill Routing, Zero-Search HDC/HRR retrieval, HRR Semantic Drift Detection across BCBA/Coding/AAC domains, HIPAA-hardened local-first storage, SLERP-optimized GRPO alignment) plus the prism-coder 1.7B–32B open-weights LLM fleet.",
6
6
  "module": "index.ts",