@tryvira/mcp 0.1.67 → 0.1.69

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 +15 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -24,6 +24,7 @@ add(["list_host_tools"], read("integration.read"));
24
24
  add(["test_connection"], effectful("integration.write", "server", ["studio.write", "admin"]));
25
25
  add(["resolve_semantic", "resolve_task_run", "simulate_behavior_strategy"], read("runtime.execute"));
26
26
  add(["observe"], effectful("observation.write", "server", ["integration.write", "studio.write", "admin"]));
27
+ add(["list_observations", "get_observation"], read("observation.write"));
27
28
  add(["resolve_runtime", "start_task_run", "continue_task_run", "cancel_task_run", "retry_task_run", "start_strategy_execution", "continue_strategy_execution", "cancel_strategy_execution", "compile_behavior_capsule", "serve_behavior_projection", "authorize_host_tool"], effectful("runtime.execute"));
28
29
  add(["create_semantic_task", "create_behavior_point", "activate_behavior_strategy", "delete_ai_system", "delete_semantic_task", "delete_behavior_point", "delete_behavior_strategy"], effectful("behavior.write", "server", ["integration.write", "studio.write", "release.approve", "admin"]));
29
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"]));
@@ -241,6 +242,8 @@ var fullTools = [
241
242
  { 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)) },
242
243
  { 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)) },
243
244
  { name: "observe", description: "Ingest a scoped observation.", inputSchema: input({ event: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.observe(args.event) },
245
+ { name: "list_observations", description: "List admitted observations in the current environment with bounded pagination.", inputSchema: input(pageFields), run: (args) => client.listObservations(args) },
246
+ { name: "get_observation", description: "Read one admitted observation by event ID in the current environment.", inputSchema: input({ eventId: z.string().min(1) }), run: (args) => client.getObservation(String(args.eventId)) },
244
247
  { 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) },
245
248
  { 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) },
246
249
  { 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) },
@@ -337,7 +340,18 @@ var genericTools = [
337
340
  { name: "read_control_api", description: "Call one registered read-only Control API path not promoted to a first-class MCP tool.", inputSchema: input({ path: z.string().regex(/^\/v1\/[A-Za-z0-9_./{}-]+$/), query: z.record(z.string(), z.unknown()).optional() }), run: readControlApi },
338
341
  { name: "write_control_api", description: "Call one registered effectful Control API path not promoted to a first-class MCP tool. Server authorization and receipts still apply.", inputSchema: input({ path: z.string().regex(/^\/v1\/[A-Za-z0-9_./{}-]+$/), method: z.enum(["POST", "PUT", "PATCH", "DELETE"]).default("POST"), body: z.record(z.string(), z.unknown()), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: writeControlApi }
339
342
  ];
340
- var tools = Object.freeze([...fullTools.filter((tool) => promotedNames.has(tool.name)), ...genericTools]);
343
+ var descriptionOverrides = {
344
+ resolve_semantic: "ROUTING 1/3: classify input into registered Semantic Tasks and intent candidates. It never resolves runtime authority or executes; follow with resolve_runtime for one selected BehaviorPoint or resolve_task_run for AUTO/multi-task planning.",
345
+ resolve_runtime: "ROUTING 2/3: resolve one already-selected BehaviorPoint into released runtime authority. It does not classify text or execute; use resolve_task_run/start_task_run for TaskRun execution.",
346
+ resolve_task_run: "ROUTING 2/3 FOR TASKRUN: preview server-owned AUTO mode and the SINGLE/STRATEGY/COMPOUND/HYBRID child plan. It never executes; call start_task_run after inspection.",
347
+ start_evaluation: "EVALUATION ENTRYPOINT: start a standalone dataset/evaluation-plan run, including comparative execution. Use evaluate_pack for an imported Pack and evaluate_behavior_revision_candidate for one immutable candidate.",
348
+ evaluate_pack: "PACK LIFECYCLE EVALUATION: evaluate one imported/installed Pack before approve_pack/release_pack. It is not start_evaluation and not evaluate_behavior_revision_candidate.",
349
+ evaluate_behavior_revision_candidate: "CANDIDATE EVALUATION ONLY: execute a real dataset against exactly one immutable candidate. It does not evaluate/release the parent Pack or grant human approval.",
350
+ approve_pack: "PACK APPROVAL: record human approval for a passed imported/installed Pack evaluation; use before release_pack. For a Pack Revision use transition_pack_revision approve.",
351
+ release_pack: "PACK FINAL STEP: release an already evaluated and approved imported/installed Pack. For a Pack Revision use transition_pack_revision release.",
352
+ transition_pack_revision: "PACK REVISION STATE MACHINE: validate, request approval, approve, release, or reject a Pack Revision. Do not substitute approve_pack/release_pack; those operate on imported Pack records."
353
+ };
354
+ var tools = Object.freeze([...fullTools.filter((tool) => promotedNames.has(tool.name)), ...genericTools].map((tool) => descriptionOverrides[tool.name] ? { ...tool, description: descriptionOverrides[tool.name] } : tool));
341
355
  if (tools.some((tool) => !isKnownMcpTool(tool.name) || Boolean(tool.effectful) !== (getMcpToolAuthority(tool.name)?.effectType === "effectful"))) throw new Error("MCP_TOOL_REGISTRY_DRIFT");
342
356
  var authorize = async (tool, args) => {
343
357
  if (!tool.effectful) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/mcp",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "mcpName": "io.github.hrpering/vira",
5
5
  "description": "Vira MCP client and npx-ready JSON-RPC launcher.",
6
6
  "keywords": [