@tryvira/mcp 0.1.18 → 0.1.21

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 +4 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -923,6 +923,8 @@ function createViraMcpOptions(config) {
923
923
  options.transport = { ...lifecycleTransport, call: async (input) => {
924
924
  const { tool, arguments: args } = input;
925
925
  if (tool === "submit_teach_evidence") return api("/v1/teach/evidence", args, `mcp:${tool}:${String(args.id)}`);
926
+ if (tool === "get_teach_behavior_set") return api(`/v1/teach/runs/${encodeURIComponent(String(args.teachRunId))}/recommendation`, void 0, `mcp:${tool}:${String(args.teachRunId)}`);
927
+ if (tool === "accept_teach_recommendation") return api(`/v1/teach/runs/${encodeURIComponent(String(args.teachRunId))}/recommendation/accept`, { actorId: String(args.actorId) }, `mcp:${tool}:${String(args.teachRunId)}`);
926
928
  if (tool === "create_teach_proposal") return api("/v1/teach/proposals", args, `mcp:${tool}:${String(args.evidenceId)}`);
927
929
  if (tool === "transition_teach_proposal") {
928
930
  const { proposalId, transition, ...body } = args;
@@ -996,6 +998,8 @@ var init_vira_server = __esm({
996
998
  { name: "create_behavior_point", description: "Create a scoped BehaviorPoint bound to one or more Semantic Tasks.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, id: { type: "string" }, key: { type: "string" }, taskId: { type: "string" }, taskIds: { type: "array" }, constraints: { type: "array" } }, required: ["organizationId", "projectId", "environmentId", "key"] } },
997
999
  { name: "activate_behavior_strategy", description: "Activate a validated scoped Behavior Strategy revision.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, strategyId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "strategyId"] } },
998
1000
  { name: "submit_teach_evidence", description: "Submit scoped evidence to the Teach lifecycle.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, id: { type: "string" }, source: { type: "string" }, content: { type: "string" }, consent: { type: "boolean" } }, required: ["organizationId", "projectId", "environmentId", "id", "content", "consent"] } },
1001
+ { name: "get_teach_behavior_set", description: "Read a provider-backed Teach run behavior set and its completeness; review is required before evaluation or release.", effectful: false, inputSchema: { type: "object", properties: { teachRunId: { type: "string" } }, required: ["teachRunId"] } },
1002
+ { name: "accept_teach_recommendation", description: "Accept a complete Teach behavior graph for evaluation; this never publishes directly.", effectful: true, inputSchema: { type: "object", properties: { teachRunId: { type: "string" }, actorId: { type: "string" } }, required: ["teachRunId", "actorId"] } },
999
1003
  { name: "create_teach_proposal", description: "Create a reviewed Teach proposal from admitted evidence.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, evidenceId: { type: "string" }, controlPointId: { type: "string" }, summary: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "evidenceId", "controlPointId", "summary"] } },
1000
1004
  { name: "transition_teach_proposal", description: "Review, evaluate, or promote a Teach proposal.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, proposalId: { type: "string" }, transition: { type: "string" }, decision: { type: "string" }, score: { type: "number" }, evaluationId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "proposalId", "transition"] } },
1001
1005
  { name: "create_release", description: "Create a scoped release using either provider-backed evaluation or explicit manual approval with step-up evidence.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, releaseId: { type: "string" }, artifactId: { type: "string" }, evaluationId: { type: "string" }, manualApproval: { type: "object", properties: { reason: { type: "string" } }, required: ["reason"] }, stepUp: { type: "object", properties: { id: { type: "string" }, assertion: { type: "string" }, purpose: { type: "string" } }, required: ["id", "assertion", "purpose"] } }, required: ["organizationId", "projectId", "environmentId", "artifactId"] } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/mcp",
3
- "version": "0.1.18",
3
+ "version": "0.1.21",
4
4
  "description": "Vira MCP client and npx-ready JSON-RPC launcher.",
5
5
  "keywords": [
6
6
  "vira",