@tryvira/mcp 0.1.75 → 0.1.77

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -4
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import { z } from "zod";
9
9
  // src/tool-registry.ts
10
10
  var read = (permissionClass = "integration.read") => ({ permissionClass, requiredRoles: [permissionClass], effectType: "read", scopePolicy: "environment", approvalRequirement: "none" });
11
11
  var effectful = (permissionClass, approvalRequirement = "server", aliases = []) => ({ permissionClass, requiredRoles: [permissionClass, ...aliases], effectType: "effectful", scopePolicy: "environment", approvalRequirement });
12
- var registry = {};
12
+ var registry = /* @__PURE__ */ Object.create(null);
13
13
  var add = (names, authority) => names.forEach((name) => {
14
14
  registry[name] = authority;
15
15
  });
@@ -30,16 +30,23 @@ add(["create_semantic_task", "create_behavior_point", "activate_behavior_strateg
30
30
  add(["create_behavior_program", "delete_behavior_program", "delete_behavior_program_cascade", "validate_behavior_strategy", "activate_behavior_strategy", "create_behavior_strategy", "create_behavior_strategy_variant"], effectful("behavior.write", "server", ["integration.write", "studio.write", "release.approve", "admin"]));
31
31
  add(["submit_teach_evidence", "create_teach_proposal", "transition_teach_proposal", "accept_teach_recommendation"], effectful("teach.write", "server", ["integration.write", "studio.write", "admin"]));
32
32
  add(["create_teach_analysis", "reject_teach_recommendation", "edit_teach_recommendation", "request_teach_proposal_changes"], effectful("teach.write", "server", ["integration.write", "studio.write", "admin"]));
33
- registry.get_teach_behavior_set = read("teach.write");
33
+ registry.get_teach_behavior_set = read();
34
34
  add(["start_evaluation", "create_evaluation_plan", "seal_evaluation_plan", "create_improvement_proposal", "review_improvement_proposal", "create_behavior_revision_candidate", "evaluate_behavior_revision_candidate", "accept_behavior_revision_candidate"], effectful("evaluation.write", "server", ["integration.write", "studio.write", "admin"]));
35
35
  add(["review_comparative_finding", "edit_improvement_proposal", "transition_behavior_revision_candidate"], effectful("evaluation.write", "server", ["integration.write", "studio.write", "admin"]));
36
36
  add(["create_release"], effectful("release.approve", "human"));
37
- add(["create_signal_discovery_proposal", "review_signal_discovery_proposal", "materialize_signal_discovery", "create_signal_mapping", "review_signal_mapping", "create_observation", "review_discovery_candidate"], effectful("discovery.write"));
37
+ add(["create_signal_discovery_proposal", "review_signal_discovery_proposal", "materialize_signal_discovery", "create_signal_mapping", "review_signal_mapping", "review_discovery_candidate"], effectful("discovery.write"));
38
+ add(["create_observation"], effectful("observation.write"));
38
39
  add(["create_pack_revision", "transition_pack_revision", "materialize_pack_revision", "import_pack", "install_pack", "evaluate_pack", "approve_pack", "release_pack", "preview_pack_upgrade"], effectful("pack.write", "server", ["integration.write", "studio.write", "release.approve", "admin"]));
39
40
  add(["read_control_api"], read());
40
41
  add(["write_control_api"], effectful("integration.write", "server", ["studio.write", "admin"]));
42
+ add(["connect_once"], registry.connect_ai_system);
43
+ add(["feedback"], registry.record_user_feedback);
44
+ add(["outcome"], registry.record_business_outcome);
45
+ add(["connection_health"], registry.get_connection_health);
46
+ add(["connection_inventory"], registry.list_connection_inventory);
47
+ add(["inventory"], registry.list_inventory);
41
48
  var MCP_TOOL_REGISTRY = Object.freeze(registry);
42
- var getMcpToolAuthority = (tool) => MCP_TOOL_REGISTRY[tool] ?? (tool.startsWith("api_get_") ? { requiredRoles: ["integration.read"], scopePolicy: "environment", effectType: "read" } : { requiredRoles: ["integration.write"], scopePolicy: "environment", effectType: "effectful" });
49
+ var getMcpToolAuthority = (tool) => Object.hasOwn(MCP_TOOL_REGISTRY, tool) ? MCP_TOOL_REGISTRY[tool] : void 0;
43
50
  var isKnownMcpTool = (tool) => Boolean(getMcpToolAuthority(tool));
44
51
 
45
52
  // src/cli.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/mcp",
3
- "version": "0.1.75",
3
+ "version": "0.1.77",
4
4
  "mcpName": "io.github.hrpering/vira",
5
5
  "description": "Vira MCP client and npx-ready JSON-RPC launcher.",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@modelcontextprotocol/server": "^2.4.0",
41
- "@tryvira/sdk": "^0.1.71",
41
+ "@tryvira/sdk": "^0.1.74",
42
42
  "zod": "^4.2.0"
43
43
  },
44
44
  "scripts": {