@tryvira/mcp 0.1.60 → 0.1.61

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/README.md CHANGED
@@ -8,7 +8,7 @@ An npx-ready MCP server for Vira's existing scoped authority boundary.
8
8
  ## Run it
9
9
 
10
10
  ```bash
11
- npx -y @tryvira/mcp@0.1.55
11
+ npx -y @tryvira/mcp@0.1.61
12
12
  ```
13
13
 
14
14
  The package is a thin stdio MCP adapter over the public Vira API. It uses the
@@ -45,7 +45,7 @@ policy, evaluation, and release eligibility. The server does not bypass those ch
45
45
 
46
46
  ## What a client can discover
47
47
 
48
- Version `0.1.55` exposes the complete public lifecycle tool catalog, including
48
+ Version `0.1.61` exposes the complete public lifecycle tool catalog, including
49
49
  AI System/connection diagnostics, Behavior Programs and Strategies, Pack
50
50
  evaluation/approval/revision/materialization, TaskRun readback and recovery,
51
51
  observation and signal operations, Teach analysis/review, comparative
package/dist/cli.js CHANGED
@@ -13,8 +13,10 @@ var registry = {};
13
13
  var add = (names, authority) => names.forEach((name) => {
14
14
  registry[name] = authority;
15
15
  });
16
+ var generatedReadTools = ["list_strategy_executions", "search_runtime_traces", "get_ai_system", "list_system_connections", "list_inventory", "get_connection", "connection_health", "list_teach_analyses", "get_teach_analysis", "get_evaluation", "list_conversation_archive", "list_teach_runs", "get_teach_run_recommendation", "get_improvement_proposal", "list_compound_task_plans", "get_compound_task_plan", "get_behavior_program"];
17
+ add(generatedReadTools, read());
16
18
  add(["get_scope", "list_capabilities", "get_job", "list_inbox", "get_conflict_inspection", "get_optimization_run", "list_semantic_tasks", "list_behavior_points", "list_behavior_programs", "list_behavior_strategies", "get_behavior_strategy", "get_behavior_program", "get_task_run", "list_task_run_events", "get_strategy_execution", "get_strategy_execution_trace", "list_ai_systems", "get_ai_system", "list_system_connections", "get_connection", "connection_health", "inventory", "connection_inventory", "list_discovery_candidates", "get_signal_mapping", "get_pack_revision", "get_pack_revision_diff", "list_packs", "diagnose_pack", "get_teach_analysis", "get_teach_run_recommendation", "get_evaluation", "get_evaluation_comparison", "get_evaluation_plan", "get_improvement_proposal", "search_runtime_traces"], read());
17
- add(["connect_once", "observe", "feedback", "outcome"], effectful("integration.write", "server", ["studio.write", "admin"]));
19
+ add(["connect_ai_system", "observe", "record_user_feedback", "record_business_outcome"], effectful("integration.write", "server", ["studio.write", "admin"]));
18
20
  add(["mark_inbox_read"], effectful("teach.write", "server", ["studio.write", "admin"]));
19
21
  add(["inspect_conflicts", "resolve_conflict"], effectful("behavior.write", "server", ["studio.write", "admin", "release.approve"]));
20
22
  add(["start_optimization", "cancel_optimization_run"], effectful("evaluation.write", "server", ["studio.write", "admin", "optimizer.execute"]));
@@ -34,7 +36,7 @@ add(["create_release"], effectful("release.approve", "human"));
34
36
  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"));
35
37
  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"]));
36
38
  var MCP_TOOL_REGISTRY = Object.freeze(registry);
37
- var getMcpToolAuthority = (tool) => MCP_TOOL_REGISTRY[tool];
39
+ 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" });
38
40
  var isKnownMcpTool = (tool) => Boolean(getMcpToolAuthority(tool));
39
41
 
40
42
  // src/cli.ts
@@ -157,7 +159,7 @@ var tools = [
157
159
  { name: "start_optimization", description: "Start provider-backed scoped optimization with dataset and holdout governance through the authenticated Control API.", inputSchema: input({ request: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => optimizerRequest("/v1/optimize", "POST", args.request) },
158
160
  { name: "get_optimization_run", description: "Read a scoped durable optimization run.", inputSchema: input({ runId: z.string().min(1) }), run: (args) => optimizerRequest(`/v1/optimization/runs/${encodeURIComponent(String(args.runId))}`, "GET") },
159
161
  { name: "cancel_optimization_run", description: "Request cancellation of a scoped optimization run.", inputSchema: input({ runId: z.string().min(1) }), effectful: true, run: (args) => optimizerRequest(`/v1/optimization/runs/${encodeURIComponent(String(args.runId))}/cancel`, "POST", {}) },
160
- { name: "connect_once", description: "Create or reuse a scoped AI System connection and return its capability handshake.", inputSchema: input({ name: z.string().min(1), systemType: z.string().min(1), adapterType: z.string().min(1), adapterVersion: z.string().min(1), capabilities: z.array(z.string()).optional(), config: z.unknown().optional(), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => client.connectOnce({ name: String(args.name), systemType: String(args.systemType), organizationId: scope.organizationId, projectId: scope.projectId, environmentId: scope.environmentId, adapterType: String(args.adapterType), adapterVersion: String(args.adapterVersion), capabilities: args.capabilities, config: args.config, idempotencyKey: args.idempotencyKey }) },
162
+ { name: "connect_ai_system", description: "Create or reuse a scoped AI System connection and return its capability handshake.", inputSchema: input({ name: z.string().min(1), systemType: z.string().min(1), adapterType: z.string().min(1), adapterVersion: z.string().min(1), capabilities: z.array(z.string()).optional(), config: z.unknown().optional(), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => client.connectAiSystem({ name: String(args.name), systemType: String(args.systemType), organizationId: scope.organizationId, projectId: scope.projectId, environmentId: scope.environmentId, adapterType: String(args.adapterType), adapterVersion: String(args.adapterVersion), capabilities: args.capabilities, config: args.config, idempotencyKey: args.idempotencyKey }) },
161
163
  { name: "get_job", description: "Read a scope-bound asynchronous job and completion evidence.", inputSchema: input({ jobId: z.string().min(1) }), run: (args) => readFromApi(`/v1/jobs/${encodeURIComponent(String(args.jobId))}`) },
162
164
  { name: "list_semantic_tasks", description: "List Semantic Tasks with bounded cursor pagination.", inputSchema: input(pageFields), run: (args) => listFromApi("/v1/semantic-tasks", args) },
163
165
  { name: "list_behavior_points", description: "List BehaviorPoints with bounded cursor pagination.", inputSchema: input(pageFields), run: (args) => listFromApi("/v1/behavior-points", args) },
@@ -219,8 +221,8 @@ var tools = [
219
221
  { name: "get_task_run", description: "Read TaskRun state and final result.", inputSchema: input({ taskRunId: z.string().min(1) }), run: (args) => client.getTaskRun(String(args.taskRunId)) },
220
222
  { name: "list_task_run_events", description: "Read TaskRun lifecycle events and child lineage.", inputSchema: input({ taskRunId: z.string().min(1) }), run: (args) => client.listTaskRunEvents(String(args.taskRunId)) },
221
223
  { name: "observe", description: "Ingest a scoped observation.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.observe(args.event) },
222
- { name: "feedback", description: "Record scoped user feedback for an observed AI interaction.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.feedback(args.event) },
223
- { name: "outcome", description: "Record a scoped business outcome for an observed AI interaction.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.outcome(args.event) },
224
+ { name: "record_user_feedback", description: "Record scoped user feedback for an observed AI interaction.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.recordUserFeedback(args.event) },
225
+ { name: "record_business_outcome", description: "Record a scoped business outcome for an observed AI interaction.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.recordBusinessOutcome(args.event) },
224
226
  { name: "search_runtime_traces", description: "Search scoped runtime traces and receipts.", inputSchema: input({ limit: z.number().int().positive().optional(), cursor: z.string().optional(), query: z.string().optional(), event: z.string().optional() }), run: (args) => client.searchRuntimeTraces(args) },
225
227
  { name: "create_signal_discovery_proposal", description: "Create an evidence-backed signal discovery proposal.", inputSchema: input({ proposal: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.createSignalDiscoveryProposal(args.proposal) },
226
228
  { name: "review_signal_discovery_proposal", description: "Approve or reject a signal discovery proposal.", inputSchema: input({ proposalId: z.string().min(1), decision: z.enum(["APPROVE", "REJECT"]) }), effectful: true, run: (args) => client.reviewSignalDiscoveryProposal(String(args.proposalId), args.decision) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/mcp",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
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.60",
41
+ "@tryvira/sdk": "^0.1.68",
42
42
  "zod": "^4.2.0"
43
43
  },
44
44
  "scripts": {