@tryvira/mcp 0.1.97 → 0.1.98

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
@@ -1,4 +1,4 @@
1
- # @tryvira/mcp 0.1.97
1
+ # @tryvira/mcp 0.1.98
2
2
 
3
3
  An MCP server for connecting MCP-compatible applications to Vira's governed AI
4
4
  behavior and runtime APIs. The package is MIT licensed.
package/dist/cli.js CHANGED
@@ -154,7 +154,7 @@ var coreTools = Object.freeze([
154
154
  { name: "get_compound_task_plan", description: "Read one persisted compound execution plan in the authenticated organization, project, and environment.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, planId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "planId"] } },
155
155
  { name: "get_task_run", description: "Read a scoped TaskRun state and lifecycle version.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId"] } },
156
156
  { name: "queue_task_run_host_dispatch", description: "Queue an effectful SINGLE TaskRun after a real human approval has already been issued in the authenticated session. Never execute locally or issue an approval through this tool; read TaskRun evidence for the result.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, organizationUnitId: { type: "string" }, taskRunId: { type: "string" }, childRunId: { type: "string" }, aiSystemId: { type: "string" }, sessionId: { type: "string" }, approvalId: { type: "string" }, context: { type: "object", additionalProperties: true }, proposal: { type: "object", additionalProperties: true } }, required: ["organizationId", "projectId", "environmentId", "organizationUnitId", "taskRunId", "childRunId", "aiSystemId", "sessionId", "approvalId", "context", "proposal"] } },
157
- { name: "get_task_run_evidence", description: "Read one authorized TaskRun execution evidence graph: verified Strategy release/evaluation, step receipts and exact rated AI credit usage. Parent and child department/AI System grants are checked by Control API.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId"] } },
157
+ { name: "get_task_run_evidence", description: "Read one authorized TaskRun execution evidence graph: verified Strategy release/evaluation, step receipts and exact rated AI credit usage. Optional commercialUsagePreview measures one root admission only; it is not an invoice, entitlement or permission. Parent and child department/AI System grants are checked by Control API.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId"] } },
158
158
  { name: "list_task_run_events", description: "Read the persisted scoped TaskRun lifecycle events.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId"] } },
159
159
  { name: "continue_task_run", description: "Resume a waiting scoped TaskRun using its current state version.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" }, expectedVersion: { type: "number" }, cursor: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId", "expectedVersion"] } },
160
160
  { name: "cancel_task_run", description: "Cancel a scoped TaskRun using its current state version.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, taskRunId: { type: "string" }, expectedVersion: { type: "number" } }, required: ["organizationId", "projectId", "environmentId", "taskRunId", "expectedVersion"] } },
@@ -1069,7 +1069,7 @@ var fullTools = [
1069
1069
  { name: "validate_behavior_strategy", description: "Validate a Behavior Strategy.", inputSchema: input({ strategyId: z.string().min(1) }), effectful: true, run: (args) => client.validateBehaviorStrategy(String(args.strategyId)) },
1070
1070
  { name: "activate_behavior_strategy", description: "Activate a validated Behavior Strategy.", inputSchema: input({ strategyId: z.string().min(1) }), effectful: true, run: (args) => client.activateBehaviorStrategy(String(args.strategyId)) },
1071
1071
  { name: "simulate_behavior_strategy", description: "Simulate a Behavior Strategy.", inputSchema: input({ strategyId: z.string().min(1), initialState: z.record(z.string(), z.unknown()).optional() }), run: (args) => client.simulateBehaviorStrategy(String(args.strategyId), args.initialState ?? {}) },
1072
- { name: "get_task_run_evidence", description: "Read authorized TaskRun evidence, including SINGLE host completion.", inputSchema: input({ taskRunId: z.string().min(1) }), run: (args) => readFromApi(`/v1/task-runs/${encodeURIComponent(String(args.taskRunId))}/evidence`) },
1072
+ { name: "get_task_run_evidence", description: "Read authorized TaskRun evidence, including SINGLE host completion and optional non-billable root usage preview.", inputSchema: input({ taskRunId: z.string().min(1) }), run: (args) => readFromApi(`/v1/task-runs/${encodeURIComponent(String(args.taskRunId))}/evidence`) },
1073
1073
  { name: "queue_task_run_host_dispatch", description: "Queue a previously human-approved SINGLE host dispatch, not local execution.", inputSchema: input({ organizationUnitId: z.string().min(1), taskRunId: z.string().min(1), childRunId: z.string().min(1), aiSystemId: z.string().min(1), sessionId: z.string().min(1), approvalId: z.string().min(1), context: z.record(z.string(), z.unknown()), proposal: z.record(z.string(), z.unknown()) }), effectful: true, run: async (args) => {
1074
1074
  const body = buildMcpTaskRunHostDispatch(args, scope);
1075
1075
  const response = await viraHttpRequest(`${baseUrl}/v1/runtime/actions/authorize`, { ...mcpHttpOptions, retries: 0, method: "POST", body });
@@ -1155,7 +1155,7 @@ var authorize = async (tool, args) => {
1155
1155
  })).body;
1156
1156
  assertMcpAuthorityDecisionReceipt(decision);
1157
1157
  };
1158
- var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.97" }, { capabilities: { tools: {} } });
1158
+ var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.98" }, { capabilities: { tools: {} } });
1159
1159
  var stdioObserver = createMcpStderrObserver(process.env.VIRA_MCP_LOCAL_DIAGNOSTICS === "true");
1160
1160
  for (const tool of tools) {
1161
1161
  server.registerTool(tool.name, { description: tool.description, inputSchema: tool.inputSchema, outputSchema: z.fromJSONSchema(MCP_PUBLIC_TOOL_CATALOG.find((item) => item.name === tool.name).outputSchema), annotations: tool.annotations }, async (raw) => observeMcpStdioCall(stdioObserver, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/mcp",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
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.100",
41
+ "@tryvira/sdk": "^0.1.101",
42
42
  "zod": "^4.2.0"
43
43
  },
44
44
  "scripts": {