@tryvira/mcp 0.1.97 → 0.1.99
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 +1 -1
- package/dist/cli.js +28 -19
- package/package.json +8 -3
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ var registry = /* @__PURE__ */ Object.create(null);
|
|
|
48
48
|
var add = (names, authority) => names.forEach((name) => {
|
|
49
49
|
registry[name] = authority;
|
|
50
50
|
});
|
|
51
|
-
var generatedReadTools = ["list_strategy_executions", "search_runtime_traces", "get_ai_system", "list_system_connections", "list_inventory", "get_connection", "get_connection_health", "list_teach_analyses", "get_teach_analysis", "get_evaluation", "list_conversation_archive", "list_teach_runs", "get_teach_run_recommendation", "get_task_run_evidence", "get_improvement_proposal", "list_compound_task_plans", "get_compound_task_plan", "get_behavior_program"];
|
|
51
|
+
var generatedReadTools = ["list_task_runs", "list_strategy_executions", "search_runtime_traces", "get_ai_system", "list_system_connections", "list_inventory", "get_connection", "get_connection_health", "list_teach_analyses", "get_teach_analysis", "get_evaluation", "list_conversation_archive", "list_teach_runs", "get_teach_run_recommendation", "get_task_run_evidence", "get_improvement_proposal", "list_compound_task_plans", "get_compound_task_plan", "get_behavior_program"];
|
|
52
52
|
add(generatedReadTools, read());
|
|
53
53
|
add(["get_scope", "list_capabilities", "get_job", "list_inbox", "read_notification_updates", "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", "get_ai_usage_reconciliation", "list_ai_systems", "get_ai_system", "list_system_connections", "get_connection", "get_connection_health", "list_inventory", "list_connection_inventory", "list_discovery_candidates", "get_signal_mapping", "get_pack_revision", "get_pack_revision_diff", "list_packs", "get_pack", "diagnose_pack", "list_evaluations", "get_teach_analysis", "get_teach_run_recommendation", "get_evaluation", "get_evaluation_comparison", "get_evaluation_plan", "get_improvement_proposal", "search_runtime_traces"], read());
|
|
54
54
|
add(["list_organization_units", "list_organization_unit_members", "list_project_organization_units", "list_organization_billing_admins", "list_ai_system_unit_grants", "get_ai_credit_wallet", "list_ai_credit_budgets", "list_ai_usage_receipts", "get_ai_usage_summary", "list_notification_destinations"], read());
|
|
@@ -81,6 +81,8 @@ add(["review_comparative_finding", "edit_improvement_proposal", "transition_beha
|
|
|
81
81
|
add(["create_release"], effectful("release.approve", "human"));
|
|
82
82
|
add(["retire_program_pointer"], effectful("release.approve", "human"));
|
|
83
83
|
add(["create_signal_discovery_proposal", "review_signal_discovery_proposal", "materialize_signal_discovery", "create_signal_mapping", "review_signal_mapping", "review_discovery_candidate"], effectful("discovery.write"));
|
|
84
|
+
add(["revoke_signal_mapping"], effectful("discovery.write", "human", ["studio.write"]));
|
|
85
|
+
add(["bind_pack_signal_mappings"], effectful("discovery.write", "human", ["studio.write"]));
|
|
84
86
|
add(["create_observation"], effectful("observation.write"));
|
|
85
87
|
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"]));
|
|
86
88
|
add(["read_control_api"], read());
|
|
@@ -146,25 +148,26 @@ var coreTools = Object.freeze([
|
|
|
146
148
|
{ name: "create_release", description: "Create a scoped release using either provider-backed evaluation or explicit manual approval with step-up evidence. Optionally set aiSystemId (or manifest.aiSystemId) to bind the release to an AI System; it must match the linked evaluation and the caller needs release.approve on that System.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, releaseId: { type: "string" }, artifactId: { type: "string" }, evaluationId: { type: "string" }, aiSystemId: { type: "string" }, manifest: { type: "object", properties: { aiSystemId: { type: "string" } }, additionalProperties: true }, 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"] } },
|
|
147
149
|
{ name: "retire_program_pointer", description: "Retire the current scoped program pointer with a version fence. Irreversible for the active pointer; requires release.approve permission and explicit human confirmation.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, pointerKey: { type: "string", minLength: 1 }, confirm: { type: "boolean", const: true }, expectedVersion: { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER }, reason: { type: "string", minLength: 1, maxLength: 500 } }, required: ["organizationId", "projectId", "environmentId", "pointerKey", "confirm", "expectedVersion", "reason"] } },
|
|
148
150
|
{ name: "resolve_semantic", description: "Resolve input through the governed semantic runtime. Remote inference consumes AI credits for the authorized AI System.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, input: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, requestId: { type: "string", minLength: 1 }, sessionId: { type: "string" }, profile: { type: "object" }, selection: { type: "object" }, candidates: { type: "array", items: { type: "object", additionalProperties: true } }, timeoutMs: { type: "number" } }, required: ["organizationId", "projectId", "environmentId", "input", "aiSystemId"] } },
|
|
149
|
-
{ name: "execute_managed_chat", description: "Run an authorized Vira-managed chat completion. A provider usage receipt is settled before output is returned. This is a billable model operation, not BYOK observation.", effectful: true, inputSchema: { type: "object", additionalProperties: false, properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, organizationUnitId: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, connectionId: { type: "string", minLength: 1 }, operationId: { type: "string", minLength: 1, maxLength: 200 }, model: { type: "string", minLength: 1 }, messages: { type: "array", minItems: 1, maxItems: 128, items: { type: "object", additionalProperties: true } }, max_tokens: { type: "integer", minimum: 1, maximum: 8192 } }, required: ["organizationId", "projectId", "environmentId", "aiSystemId", "connectionId", "operationId", "
|
|
150
|
-
{ name: "resolve_task_run", description: "Resolve a scoped TaskRun route without starting execution. Remote inference consumes AI credits for the authorized AI System.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, input: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, requestId: { type: "string", minLength: 1 }, requestedMode: { type: "string" }, intentCount: { type: "
|
|
151
|
-
{ name: "start_task_run", description: "Start a TaskRun from a natural-language request. The server requires an authorized AI System and derives the actor, host capabilities, mode and released plan; requestedMode and plan fields are advanced overrides only.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string" }, taskRunId: { type: "string" }, requestId: { type: "string" }, ownerActorRef: { type: "string" }, input: { type: "string" }, requestedMode: { type: "string" }, hostCapabilities: { type: "array", items: { type: "string" } } }, required: ["organizationId", "projectId", "environmentId", "aiSystemId", "input"] } },
|
|
151
|
+
{ name: "execute_managed_chat", description: "Run an authorized Vira-managed chat completion. A provider usage receipt is settled before output is returned. This is a billable model operation, not BYOK observation.", effectful: true, inputSchema: { type: "object", additionalProperties: false, properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, organizationUnitId: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, connectionId: { type: "string", minLength: 1 }, operationId: { type: "string", minLength: 1, maxLength: 200 }, model: { type: "string", minLength: 1, description: "Omit to use the approved scoped default." }, messages: { type: "array", minItems: 1, maxItems: 128, items: { type: "object", additionalProperties: true } }, max_tokens: { type: "integer", minimum: 1, maximum: 8192 } }, required: ["organizationId", "projectId", "environmentId", "aiSystemId", "connectionId", "operationId", "messages"] } },
|
|
152
|
+
{ name: "resolve_task_run", description: "Resolve a scoped TaskRun route without starting execution. Remote inference consumes AI credits for the authorized AI System.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, input: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, requestId: { type: "string", minLength: 1 }, requestedMode: { type: "string", enum: ["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"] }, connectionId: { type: "string", minLength: 1 }, hybridPlan: { type: "array", items: { type: "object", properties: { semanticTaskKey: { type: "string", minLength: 1 }, mode: { type: "string", enum: ["SINGLE", "STRATEGY"] } }, required: ["semanticTaskKey", "mode"], additionalProperties: false } }, intentCount: { type: "integer", minimum: 1, maximum: 9007199254740991 }, hostCapabilities: { type: "array", items: { type: "string" } } }, required: ["organizationId", "projectId", "environmentId", "input", "aiSystemId"] } },
|
|
153
|
+
{ name: "start_task_run", description: "Start a TaskRun from a natural-language request. The server requires an authorized AI System and derives the actor, host capabilities, mode and released plan; requestedMode and plan fields are advanced overrides only.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string" }, taskRunId: { type: "string" }, requestId: { type: "string" }, ownerActorRef: { type: "string" }, input: { type: "string" }, requestedMode: { type: "string", enum: ["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"] }, connectionId: { type: "string", minLength: 1 }, compoundPlanId: { type: "string", minLength: 1 }, hybridPlan: { type: "array", items: { type: "object", properties: { semanticTaskKey: { type: "string", minLength: 1 }, mode: { type: "string", enum: ["SINGLE", "STRATEGY"] } }, required: ["semanticTaskKey", "mode"], additionalProperties: false } }, conversationId: { type: "string" }, episodeId: { type: "string" }, traceRootRef: { type: "string" }, budget: { type: "object", properties: { maxChildren: { type: "integer", minimum: 1, maximum: 9007199254740991 }, maxCalls: { type: "integer", minimum: 1, maximum: 9007199254740991 }, maxLatencyMs: { type: "integer", minimum: 1, maximum: 9007199254740991 }, maxCostMicros: { type: "integer", minimum: 1, maximum: 9007199254740991 } }, additionalProperties: false }, hostCapabilities: { type: "array", items: { type: "string" } } }, required: ["organizationId", "projectId", "environmentId", "aiSystemId", "input"] } },
|
|
152
154
|
{ name: "list_compound_task_plans", description: "List persisted compound execution plans for the authenticated organization, project, and environment with bounded cursor pagination.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, limit: { type: "number" }, cursor: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
153
155
|
{ name: "save_compound_task_plan", description: "Persist a validated immutable compound execution plan in the authenticated scope. This writes a plan but does not execute it.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, plan: { type: "object", additionalProperties: true }, idempotencyKey: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "plan"] } },
|
|
154
156
|
{ 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
157
|
{ 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
158
|
{ 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"] } },
|
|
159
|
+
{ 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
160
|
{ 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
161
|
{ 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
162
|
{ 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"] } },
|
|
161
163
|
{ name: "retry_task_run", description: "Retry a failed, blocked, or partial scoped TaskRun using its immutable plan and 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"] } },
|
|
162
|
-
{ name: "resolve_runtime", description: "Resolve a persisted BehaviorPoint through the governed runtime boundary. behaviorPoint may be omitted when semanticContext supplies the selected canonical route. Provide idempotencyKey when retrying the same logical resolve; distinct calls should use distinct keys.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, behaviorPoint: { type: "string" }, executionBoundary: { type: "object" }, semanticContext: { type: "object" }, idempotencyKey: { type: "string", minLength: 1 } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
164
|
+
{ name: "resolve_runtime", description: "Resolve a persisted BehaviorPoint through the governed runtime boundary. behaviorPoint may be omitted when semanticContext supplies the selected canonical route. Provide idempotencyKey when retrying the same logical resolve; distinct calls should use distinct keys.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string", minLength: 1 }, behaviorPoint: { type: "string" }, executionBoundary: { type: "object" }, semanticContext: { type: "object" }, provider: { type: "string" }, model: { type: "string" }, protocol: { type: "string", enum: ["openai-chat", "anthropic-messages", "generic-chat"] }, idempotencyKey: { type: "string", minLength: 1 } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
163
165
|
{ name: "create_signal_discovery_proposal", description: "Propose a discovered signal for scoped human review.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, signalStableKey: { type: "string" }, evidenceEventIds: { type: "array", items: { type: "string" } }, suggestedProducerType: { type: "string" }, suggestedProducerKey: { type: "string" }, confidence: { type: "number" } }, required: ["organizationId", "projectId", "environmentId", "signalStableKey", "evidenceEventIds"] } },
|
|
164
166
|
{ name: "review_signal_discovery_proposal", description: "Approve or reject a discovered signal proposal.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, proposalId: { type: "string" }, decision: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "proposalId", "decision"] } },
|
|
165
167
|
{ name: "materialize_signal_discovery", description: "Materialize an approved signal into a definition and producer mapping.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, proposalId: { type: "string" }, valueType: { type: "string" }, description: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "proposalId"] } },
|
|
166
168
|
{ name: "create_signal_mapping", description: "Create a scoped signal producer mapping proposal.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, signalStableKey: { type: "string" }, signalVersion: { type: "number" }, producerType: { type: "string" }, producerKey: { type: "string" }, sourceEventType: { type: "string" }, evidenceEventIds: { type: "array", items: { type: "string" } } }, required: ["organizationId", "projectId", "environmentId", "signalStableKey", "signalVersion", "producerType", "producerKey"] } },
|
|
167
169
|
{ name: "get_signal_mapping", description: "Read one scoped signal producer mapping.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, mappingId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "mappingId"] } },
|
|
170
|
+
{ name: "revoke_signal_mapping", description: "Permanently revoke an active scoped Signal mapping after explicit human authorization. Requires the exact current mapping digest; never deletes evidence or reactivates a revoked mapping.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, mappingId: { type: "string" }, expectedMappingDigest: { type: "string", pattern: "^[a-f0-9]{64}$" } }, required: ["organizationId", "projectId", "environmentId", "mappingId", "expectedMappingDigest"] } },
|
|
168
171
|
{ name: "review_signal_mapping", description: "Approve or reject a scoped signal producer mapping.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, mappingId: { type: "string" }, decision: { type: "string" }, eventId: { type: "string" }, definition: { type: "object" }, teachConsentRecord: { type: "object" } }, required: ["organizationId", "projectId", "environmentId", "mappingId", "decision"] } },
|
|
169
172
|
{ name: "list_behavior_programs", description: "Read scoped canonical behavior programs with optional cursor pagination and search.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, limit: { type: "number" }, cursor: { type: "string" }, search: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
170
173
|
{ name: "list_behavior_strategies", description: "Read persisted immutable Behavior Strategy revisions with optional cursor pagination and search.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, limit: { type: "number" }, cursor: { type: "string" }, search: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
@@ -200,12 +203,13 @@ var coreTools = Object.freeze([
|
|
|
200
203
|
{ name: "transition_pack_revision", description: "Validate, request approval, approve, or release a governed Pack Revision.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, revisionId: { type: "string" }, transition: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "revisionId", "transition"] } },
|
|
201
204
|
{ name: "materialize_pack_revision", description: "Materialize an approved Pack Revision into canonical runtime state.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, revisionId: { type: "string" }, packId: { type: "string" }, variables: { type: "object" } }, required: ["organizationId", "projectId", "environmentId", "revisionId", "packId"] } },
|
|
202
205
|
{ name: "get_pack_revision_diff", description: "Read the immutable lineage and change summary for a Pack Revision.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, revisionId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "revisionId"] } },
|
|
203
|
-
{ name: "compile_behavior_capsule", description: "Compile a persisted scoped Behavior VM capsule and return its receipt.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, programId: { type: "string" }, input: { type: "string" }, selection: { type: "object" }, candidates: { type: "array" } }, required: ["organizationId", "projectId", "environmentId", "programId", "input"] } },
|
|
204
|
-
{ name: "serve_behavior_projection", description: "Serve the active scoped behavior projection through the governed runtime boundary.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, programId: { type: "string" }, input: { type: "string" }, provider: { type: "string" }, protocol: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "input", "provider"] } },
|
|
206
|
+
{ name: "compile_behavior_capsule", description: "Compile a persisted scoped Behavior VM capsule and return its receipt.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string" }, programId: { type: "string" }, input: { type: "string" }, selection: { type: "object" }, candidates: { type: "array" } }, required: ["organizationId", "projectId", "environmentId", "programId", "input"] } },
|
|
207
|
+
{ name: "serve_behavior_projection", description: "Serve the active scoped behavior projection through the governed runtime boundary.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string" }, programId: { type: "string" }, input: { type: "string" }, provider: { type: "string" }, model: { type: "string" }, protocol: { type: "string", enum: ["openai-chat", "anthropic-messages", "generic-chat"] } }, required: ["organizationId", "projectId", "environmentId", "input", "provider"] } },
|
|
205
208
|
{ name: "list_packs", description: "Read scoped behavior packs with optional cursor pagination, status and search filters.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, limit: { type: "number" }, cursor: { type: "string" }, status: { type: "string" }, search: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
206
209
|
{ name: "get_pack", description: "Read one scoped behavior pack, including manifest and materialization metadata.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, packId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "packId"] } },
|
|
207
210
|
{ name: "list_evaluations", description: "Read scoped evaluations with bounded pagination and optional status filter.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, limit: { type: "number" }, cursor: { type: "string" }, status: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
208
|
-
{ name: "
|
|
211
|
+
{ name: "bind_pack_signal_mappings", description: "Bind declared Pack Signal mappings to a scoped AI System and connection after human authorization. Approval is optional and never grants runtime evidence or release authority.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, packId: { type: "string", minLength: 1 }, aiSystemId: { type: "string", minLength: 1 }, connectionId: { type: "string", minLength: 1 }, approve: { type: "boolean" } }, required: ["organizationId", "projectId", "environmentId", "packId", "aiSystemId", "connectionId"] } },
|
|
212
|
+
{ name: "diagnose_pack", description: "Read scoped Pack Doctor checks and Signal readiness (canonical definitions, mapping, verifier, refresh and derived binding). Configuration readiness never authorizes release.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, packId: { type: "string" }, runtimeBindings: { type: "array", items: { type: "string" } }, knownVerifiers: { type: "array", items: { type: "string" } } }, required: ["organizationId", "projectId", "environmentId", "packId"] } },
|
|
209
213
|
{ name: "import_pack", description: "Import and validate a scoped behavior pack.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, manifest: { type: "object" }, objects: { type: "object" }, archiveBase64: { type: "string" }, fileName: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "manifest"] } },
|
|
210
214
|
{ name: "install_pack", description: "Install a scoped behavior pack.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, packId: { type: "string" }, variables: { type: "object" } }, required: ["organizationId", "projectId", "environmentId", "packId"] } },
|
|
211
215
|
{ name: "evaluate_pack", description: "Evaluate one imported/installed Pack in its Pack lifecycle with server-owned execution. Use before Pack approval/release; it is not the candidate evaluator.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, packId: { type: "string" }, evaluation: { type: "object" } }, required: ["organizationId", "projectId", "environmentId", "packId", "evaluation"] } },
|
|
@@ -252,6 +256,7 @@ var MCP_PUBLIC_CORE_TOOL_NAMES = Object.freeze([
|
|
|
252
256
|
"create_signal_mapping",
|
|
253
257
|
"get_signal_mapping",
|
|
254
258
|
"review_signal_mapping",
|
|
259
|
+
"revoke_signal_mapping",
|
|
255
260
|
"create_behavior_point",
|
|
256
261
|
"resolve_semantic",
|
|
257
262
|
"execute_managed_chat",
|
|
@@ -311,6 +316,7 @@ var MCP_PUBLIC_CORE_TOOL_NAMES = Object.freeze([
|
|
|
311
316
|
"get_conflict_inspection",
|
|
312
317
|
"resolve_conflict",
|
|
313
318
|
"review_discovery_candidate",
|
|
319
|
+
"bind_pack_signal_mappings",
|
|
314
320
|
"diagnose_pack",
|
|
315
321
|
"get_evaluation",
|
|
316
322
|
"get_evaluation_comparison"
|
|
@@ -970,7 +976,7 @@ var fullTools = [
|
|
|
970
976
|
{ name: "release_ai_credit_reservation", description: "Release an unused AI credit reservation before any usage receipt is recorded. Requires explicit human approval.", inputSchema: input({ reservationId: z.string().min(1), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => client.releaseAICreditReservation(String(args.reservationId), { idempotencyKey: typeof args.idempotencyKey === "string" ? args.idempotencyKey : void 0 }) },
|
|
971
977
|
{ name: "list_ai_usage_receipts", description: "Read rated provider usage receipts, optionally filtered to an organization unit. Organization owners and Billing Admins may read organization data; a Department Admin sees only their active unit.", inputSchema: input({ organizationUnitId: z.string().min(1).optional(), limit: z.number().int().positive().max(500).optional() }), run: (args) => readFromApi("/v1/billing/ai-usage", { organizationUnitId: args.organizationUnitId, limit: args.limit }) },
|
|
972
978
|
{ name: "get_ai_usage_summary", description: "Read monthly provider cost and customer credits by provider/model, optionally filtered to an organization unit. Organization owners and Billing Admins may read organization data; a Department Admin sees only their active unit.", inputSchema: input({ organizationUnitId: z.string().min(1).optional() }), run: (args) => readFromApi("/v1/billing/ai-usage/summary", { organizationUnitId: args.organizationUnitId }) },
|
|
973
|
-
{ name: "execute_managed_chat", description: "Run an authorized Vira-managed model completion. This is a billable operation; server-side credit admission and approval remain required.", inputSchema: input({ aiSystemId: z.string().min(1), connectionId: z.string().min(1), operationId: z.string().min(1).max(200), model: z.string().min(1), messages: z.array(z.record(z.string(), z.unknown())).min(1).max(128), max_tokens: z.number().int().positive().max(8192).optional() }), effectful: true, run: (args) => client.executeManagedChat({ aiSystemId: String(args.aiSystemId), connectionId: String(args.connectionId), operationId: String(args.operationId), model: String(args.model), messages: args.messages, max_tokens: args.max_tokens }) },
|
|
979
|
+
{ name: "execute_managed_chat", description: "Run an authorized Vira-managed model completion. This is a billable operation; server-side credit admission and approval remain required.", inputSchema: input({ aiSystemId: z.string().min(1), connectionId: z.string().min(1), operationId: z.string().min(1).max(200), model: z.string().min(1).optional(), messages: z.array(z.record(z.string(), z.unknown())).min(1).max(128), max_tokens: z.number().int().positive().max(8192).optional() }), effectful: true, run: (args) => client.executeManagedChat({ aiSystemId: String(args.aiSystemId), connectionId: String(args.connectionId), operationId: String(args.operationId), ...args.model === void 0 ? {} : { model: String(args.model) }, messages: args.messages, max_tokens: args.max_tokens }) },
|
|
974
980
|
{ name: "create_organization_unit", description: "Create an organization unit as a workspace owner.", inputSchema: input({ id: z.string().min(1).optional(), parentUnitId: z.string().min(1).nullable().optional(), name: z.string().min(1), kind: z.enum(["business_unit", "department", "team"]) }), effectful: true, run: async (args) => (await viraHttpRequest(`${baseUrl}/v1/organization-units`, { ...mcpHttpOptions, method: "POST", body: { ...scope, ...args }, idempotencyKey: `mcp:create-unit:${String(args.id ?? args.name)}` })).body },
|
|
975
981
|
{ name: "preview_organization_unit_archive", description: "Preview the affected descendants, memberships, and project ownership before archiving an organization unit. Workspace owner required.", inputSchema: input({ unitId: z.string().min(1) }), run: async (args) => (await viraHttpRequest(`${baseUrl}/v1/organization-units/${encodeURIComponent(String(args.unitId))}/archive-preview`, { ...mcpHttpOptions, method: "POST", body: scope })).body },
|
|
976
982
|
{ name: "archive_organization_unit", description: "Archive an organization unit subtree after reviewing its impact. Workspace owner and explicit confirmation required.", inputSchema: input({ unitId: z.string().min(1), confirm: z.literal(true) }), effectful: true, run: async (args) => (await viraHttpRequest(`${baseUrl}/v1/organization-units/${encodeURIComponent(String(args.unitId))}/archive`, { ...mcpHttpOptions, method: "POST", body: { ...scope, confirm: true }, idempotencyKey: `mcp:unit-archive:${String(args.unitId)}` })).body },
|
|
@@ -1001,11 +1007,11 @@ var fullTools = [
|
|
|
1001
1007
|
{ name: "get_behavior_strategy", description: "Read one scoped Behavior Strategy and its immutable artifact binding.", inputSchema: input({ strategyId: z.string().min(1) }), run: (args) => client.getBehaviorStrategy(String(args.strategyId)) },
|
|
1002
1008
|
{ name: "delete_behavior_strategy", description: "Delete a non-active scoped Behavior Strategy after explicit confirmation.", inputSchema: input({ strategyId: z.string().min(1), confirm: z.literal(true) }), effectful: true, run: (args) => client.deleteBehaviorStrategy(String(args.strategyId), { confirm: args.confirm === true }) },
|
|
1003
1009
|
{ name: "get_strategy_execution", description: "Read one scoped Strategy execution.", inputSchema: input({ executionId: z.string().min(1) }), run: (args) => client.getStrategyExecution(String(args.executionId)) },
|
|
1004
|
-
{ name: "cancel_strategy_execution", description: "Cancel a non-terminal scoped Strategy execution.", inputSchema: input({ executionId: z.string().min(1) }), effectful: true, run: (args) => client.cancelStrategyExecution(String(args.executionId)) },
|
|
1010
|
+
{ name: "cancel_strategy_execution", description: "Cancel a non-terminal scoped Strategy execution. Supply the observed checkpoint sequence and authority digest to reject stale requests.", inputSchema: input({ executionId: z.string().min(1), authorityDigest: z.string().optional(), expectedSequence: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional() }), effectful: true, run: (args) => client.cancelStrategyExecution(String(args.executionId), { authorityDigest: args.authorityDigest, expectedSequence: args.expectedSequence }) },
|
|
1005
1011
|
{ name: "resolve_semantic", description: "Classify input into registered Semantic Tasks. Use before execution when you need intent candidates; it does not run a behavior, tool, or TaskRun.", inputSchema: input({ input: z.string().min(1), profile: z.record(z.string(), z.unknown()).optional(), sessionId: z.string().optional(), selection: z.record(z.string(), z.unknown()).optional(), candidates: z.array(z.string()).optional(), timeoutMs: z.number().positive().optional(), requestId: z.string().optional(), executionBoundary: z.record(z.string(), z.unknown()).optional(), idempotencyKey: z.string().min(1).optional() }), run: (args) => client.resolveSemantic(args) },
|
|
1006
1012
|
{ name: "resolve_runtime", description: "Resolve a selected BehaviorPoint into released runtime authority. Use after canonical selection; it does not classify text or start a TaskRun.", inputSchema: input({ behaviorPoint: z.string().min(1).optional(), executionBoundary: z.record(z.string(), z.unknown()).optional(), semanticContext: z.record(z.string(), z.unknown()).optional(), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => client.resolveRuntime(args) },
|
|
1007
|
-
{ name: "resolve_task_run", description: "Preview server-owned AUTO mode selection and child plan. Use to inspect routing; it does not execute the TaskRun.", inputSchema: input({ input: z.string().min(1), requestedMode: z.enum(["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"]).optional(), intentCount: z.number().int().positive().optional(), hostCapabilities: z.array(z.string()).optional(), hybridPlan: z.array(z.object({ semanticTaskKey: z.string().min(1), mode: z.enum(["SINGLE", "STRATEGY"]) })).optional() }), run: (args) => client.resolveTaskRun(args) },
|
|
1008
|
-
{ name: "start_task_run", description: "Admit a registered TaskRun after server-side scope, AI System permission, release and authority checks; omit mode for AUTO.", inputSchema: input({ taskRunId: z.string().min(1), requestId: z.string().min(1), aiSystemId: z.string().min(1), input: z.unknown(), ownerActorRef: z.string().min(1), requestedMode: z.enum(["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"]).optional(), hybridPlan: z.array(z.object({ semanticTaskKey: z.string().min(1), mode: z.enum(["SINGLE", "STRATEGY"]) })).optional(), compoundPlanId: z.string().optional(), conversationId: z.string().optional(), episodeId: z.string().optional(), traceRootRef: z.string().optional(), budget: z.object({ maxChildren: z.number().int().positive().optional(), maxCalls: z.number().int().positive().optional(), maxLatencyMs: z.number().int().positive().optional(), maxCostMicros: z.number().int().positive().optional() }).optional(), hostCapabilities: z.array(z.string()).optional(), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => {
|
|
1013
|
+
{ name: "resolve_task_run", description: "Preview server-owned AUTO mode selection and child plan. Use to inspect routing; it does not execute the TaskRun.", inputSchema: input({ input: z.string().min(1), aiSystemId: z.string().min(1), requestId: z.string().min(1).optional(), connectionId: z.string().min(1).optional(), requestedMode: z.enum(["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"]).optional(), intentCount: z.number().int().positive().optional(), hostCapabilities: z.array(z.string()).optional(), hybridPlan: z.array(z.object({ semanticTaskKey: z.string().min(1), mode: z.enum(["SINGLE", "STRATEGY"]) })).optional() }), run: (args) => client.resolveTaskRun(args) },
|
|
1014
|
+
{ name: "start_task_run", description: "Admit a registered TaskRun after server-side scope, AI System permission, release and authority checks; omit mode for AUTO.", inputSchema: input({ taskRunId: z.string().min(1), requestId: z.string().min(1), aiSystemId: z.string().min(1), input: z.unknown(), ownerActorRef: z.string().min(1).optional(), connectionId: z.string().min(1).optional(), requestedMode: z.enum(["AUTO", "SINGLE", "STRATEGY", "COMPOUND", "HYBRID"]).optional(), hybridPlan: z.array(z.object({ semanticTaskKey: z.string().min(1), mode: z.enum(["SINGLE", "STRATEGY"]) })).optional(), compoundPlanId: z.string().optional(), conversationId: z.string().optional(), episodeId: z.string().optional(), traceRootRef: z.string().optional(), budget: z.object({ maxChildren: z.number().int().positive().optional(), maxCalls: z.number().int().positive().optional(), maxLatencyMs: z.number().int().positive().optional(), maxCostMicros: z.number().int().positive().optional() }).optional(), hostCapabilities: z.array(z.string()).optional(), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => {
|
|
1009
1015
|
const { idempotencyKey, ...request } = args;
|
|
1010
1016
|
return client.startTaskRun(request, { idempotencyKey });
|
|
1011
1017
|
} },
|
|
@@ -1042,7 +1048,7 @@ var fullTools = [
|
|
|
1042
1048
|
{ name: "preview_pack_upgrade", description: "Preview a scoped Behavior Pack upgrade without applying it.", inputSchema: input({ packId: z.string().min(1), incoming: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.previewPackUpgrade(String(args.packId), args.incoming) },
|
|
1043
1049
|
{ name: "get_strategy_execution_trace", description: "Read persisted Strategy execution trace and receipts.", inputSchema: input({ executionId: z.string().min(1) }), run: (args) => client.getStrategyExecutionTrace(String(args.executionId)) },
|
|
1044
1050
|
{ name: "get_ai_usage_reconciliation", description: "Read exact Strategy provider-request and rated-credit evidence in the authenticated department; does not settle or mutate usage.", inputSchema: input({ executionId: z.string().min(1) }), run: (args) => client.getAIUsageReconciliation(String(args.executionId)) },
|
|
1045
|
-
{ name: "continue_strategy_execution", description: "Continue
|
|
1051
|
+
{ name: "continue_strategy_execution", description: "Continue an immutable Strategy checkpoint. Only references.actionArguments.answers for the active ask_user step may be supplied; no authority or state replacement.", inputSchema: input({ executionId: z.string().min(1), authorityDigest: z.string().optional(), expectedSequence: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional(), references: z.record(z.string(), z.unknown()).optional() }), effectful: true, run: (args) => client.continueStrategyExecution(String(args.executionId), { authorityDigest: args.authorityDigest, expectedSequence: args.expectedSequence, references: args.references }) },
|
|
1046
1052
|
{ name: "start_strategy_execution", description: "Start a server-authorized immutable Strategy execution.", inputSchema: input({ artifactDigest: z.string().min(1), revisionId: z.string().min(1), idempotencyKey: z.string().min(1), nonce: z.string().min(1), expiresAt: z.number().positive(), decisionPlanId: z.string().min(1), candidates: z.array(z.record(z.string(), z.unknown())), policy: z.string().min(1), behaviorPoint: z.string().optional(), executionBoundary: z.record(z.string(), z.unknown()).optional() }), effectful: true, run: (args) => client.startStrategyExecution(args) },
|
|
1047
1053
|
{ name: "list_host_tools", description: "List host tools registered dynamically by the host with their ActionDefinition bindings; this MCP server defines no domain tools.", inputSchema: input(), run: async () => ({ tools: hostToolDefinitions }) },
|
|
1048
1054
|
{ name: "authorize_host_tool", description: "Request Vira server authorization for one dynamically registered host tool proposal matched to its ActionDefinition.", inputSchema: input({ toolName: z.string().min(1), executionId: z.string().min(1), sessionId: z.string().min(1), dataVersion: z.string().min(1), context: z.record(z.string(), z.unknown()), proposal: z.record(z.string(), z.unknown()), approval: z.record(z.string(), z.unknown()).optional() }), effectful: true, run: (args) => {
|
|
@@ -1066,10 +1072,11 @@ var fullTools = [
|
|
|
1066
1072
|
{ name: "get_behavior_program", description: "Read one Behavior Program.", inputSchema: input({ programId: z.string().min(1) }), run: (args) => client.getBehaviorProgram(String(args.programId)) },
|
|
1067
1073
|
{ name: "create_behavior_program", description: "Create a Behavior Program draft.", inputSchema: input({ program: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.createBehaviorProgram(args.program) },
|
|
1068
1074
|
{ name: "delete_behavior_program", description: "Delete an unused Behavior Program.", inputSchema: input({ programId: z.string().min(1), confirm: z.boolean().optional() }), effectful: true, run: (args) => client.deleteBehaviorProgram(String(args.programId), { confirm: args.confirm === true }) },
|
|
1069
|
-
{ name: "
|
|
1075
|
+
{ name: "revise_behavior_strategy", description: "Create a separate immutable draft revision using the latest observed parent identity and digests. Does not activate or release the Strategy.", inputSchema: input({ strategyId: z.string().min(1), definition: z.record(z.string(), z.unknown()), parentVariantId: z.string().min(1).max(512), parentArtifactDigest: z.string().regex(/^[a-f0-9]{64}$/), parentDefinitionDigest: z.string().regex(/^[a-f0-9]{64}$/) }), effectful: true, run: (args) => client.reviseBehaviorStrategy(String(args.strategyId), args.definition, { variantId: String(args.parentVariantId), artifactDigest: String(args.parentArtifactDigest), definitionDigest: String(args.parentDefinitionDigest) }) },
|
|
1076
|
+
{ name: "validate_behavior_strategy", description: "Validate the selected immutable Behavior Strategy variant (latest when omitted). Does not grant runtime or release authority.", inputSchema: input({ strategyId: z.string().min(1), variantId: z.string().min(1).max(512).optional() }), effectful: true, run: (args) => client.validateBehaviorStrategy(String(args.strategyId), { variantId: args.variantId }) },
|
|
1070
1077
|
{ 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
|
-
{ name: "simulate_behavior_strategy", description: "
|
|
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`) },
|
|
1078
|
+
{ name: "simulate_behavior_strategy", description: "Structurally inspect the selected immutable Behavior Strategy variant. No model, tool or decision provider calls are executed.", inputSchema: input({ strategyId: z.string().min(1), variantId: z.string().min(1).max(512).optional(), initialState: z.record(z.string(), z.unknown()).optional() }), run: (args) => client.simulateBehaviorStrategy(String(args.strategyId), args.initialState ?? {}, { variantId: args.variantId }) },
|
|
1079
|
+
{ 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
1080
|
{ 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
1081
|
const body = buildMcpTaskRunHostDispatch(args, scope);
|
|
1075
1082
|
const response = await viraHttpRequest(`${baseUrl}/v1/runtime/actions/authorize`, { ...mcpHttpOptions, retries: 0, method: "POST", body });
|
|
@@ -1096,6 +1103,7 @@ var fullTools = [
|
|
|
1096
1103
|
{ name: "create_signal_mapping", description: "Create a signal producer mapping.", inputSchema: input({ mapping: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.createSignalMapping(args.mapping) },
|
|
1097
1104
|
{ name: "get_signal_mapping", description: "Read a signal mapping.", inputSchema: input({ mappingId: z.string().min(1) }), run: (args) => client.getSignalMapping(String(args.mappingId)) },
|
|
1098
1105
|
{ name: "review_signal_mapping", description: "Approve or reject a signal mapping.", inputSchema: input({ mappingId: z.string().min(1), input: z.record(z.string(), z.unknown()).optional() }), effectful: true, run: (args) => client.reviewSignalMapping(String(args.mappingId), args.input ?? {}) },
|
|
1106
|
+
{ name: "revoke_signal_mapping", description: "Permanently revoke an active signal mapping.", inputSchema: input({ organizationId: z.string().min(1), projectId: z.string().min(1), environmentId: z.string().min(1), mappingId: z.string().min(1), expectedMappingDigest: z.string().regex(/^[a-f0-9]{64}$/) }), effectful: true, run: (args) => client.revokeSignalMapping(String(args.mappingId), String(args.expectedMappingDigest)) },
|
|
1099
1107
|
{ name: "create_teach_analysis", description: "Start a Teach analysis from admitted evidence.", inputSchema: input({ evidenceIds: z.array(z.string()).min(1), controlPointId: z.string().optional(), summary: z.string().optional() }), effectful: true, run: (args) => client.createTeachAnalysis(args.evidenceIds, { controlPointId: args.controlPointId, summary: args.summary }) },
|
|
1100
1108
|
{ name: "get_teach_analysis", description: "Read Teach analysis status and result.", inputSchema: input({ analysisId: z.string().min(1) }), run: (args) => client.getTeachAnalysis(String(args.analysisId)) },
|
|
1101
1109
|
{ name: "get_teach_run_recommendation", description: "Read a Teach recommendation.", inputSchema: input({ teachRunId: z.string().min(1) }), run: (args) => client.getTeachRunRecommendation(String(args.teachRunId)) },
|
|
@@ -1123,7 +1131,8 @@ var fullTools = [
|
|
|
1123
1131
|
{ name: "get_pack_revision_diff", description: "Read Pack Revision diff.", inputSchema: input({ revisionId: z.string().min(1) }), run: (args) => client.getPackRevisionDiff(String(args.revisionId)) },
|
|
1124
1132
|
{ name: "transition_pack_revision", description: "Validate, approve, release, or reject a Pack Revision.", inputSchema: input({ revisionId: z.string().min(1), transition: z.enum(["validate", "request-approval", "approve", "release", "reject"]) }), effectful: true, run: (args) => client.transitionPackRevision(String(args.revisionId), args.transition) },
|
|
1125
1133
|
{ name: "materialize_pack_revision", description: "Materialize an approved Pack Revision.", inputSchema: input({ revisionId: z.string().min(1), input: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.materializePackRevision(String(args.revisionId), args.input) },
|
|
1126
|
-
{ name: "
|
|
1134
|
+
{ name: "bind_pack_signal_mappings", description: "Bind declared Pack Signal mappings to an AI System and connection.", inputSchema: input({ packId: z.string().min(1), aiSystemId: z.string().min(1), connectionId: z.string().min(1), approve: z.boolean().optional() }), effectful: true, run: (args) => client.bindPackSignalMappings(String(args.packId), { aiSystemId: String(args.aiSystemId), connectionId: String(args.connectionId), approve: args.approve === true }) },
|
|
1135
|
+
{ name: "diagnose_pack", description: "Diagnose a Pack without changing authority.", inputSchema: input({ packId: z.string().min(1), runtimeBindings: z.array(z.string()).optional(), knownVerifiers: z.array(z.string()).optional() }), run: (args) => client.diagnosePack(String(args.packId), { runtimeBindings: args.runtimeBindings, knownVerifiers: args.knownVerifiers }) },
|
|
1127
1136
|
{ name: "evaluate_pack", description: "Evaluate one imported/installed Pack in its Pack lifecycle with server-owned execution. Use before Pack approval/release; it is not the candidate evaluator.", inputSchema: input({ packId: z.string().min(1), evaluation: z.record(z.string(), z.unknown()) }), effectful: true, run: (args) => client.evaluatePack(String(args.packId), args.evaluation) },
|
|
1128
1137
|
{ name: "approve_pack", description: "Approve a passed Pack evaluation.", inputSchema: input({ packId: z.string().min(1), reason: z.string().optional() }), effectful: true, run: (args) => client.approvePack(String(args.packId), { manualApproval: true, reason: args.reason }) },
|
|
1129
1138
|
{ name: "compile_behavior_capsule", description: "Compile a Behavior Program capsule.", inputSchema: input({ programId: z.string().min(1), input: z.string().min(1), selection: z.record(z.string(), z.unknown()).optional(), candidates: z.array(z.unknown()).optional() }), effectful: true, run: (args) => client.compileBehaviorCapsule(args) },
|
|
@@ -1155,7 +1164,7 @@ var authorize = async (tool, args) => {
|
|
|
1155
1164
|
})).body;
|
|
1156
1165
|
assertMcpAuthorityDecisionReceipt(decision);
|
|
1157
1166
|
};
|
|
1158
|
-
var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.
|
|
1167
|
+
var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.99" }, { capabilities: { tools: {} } });
|
|
1159
1168
|
var stdioObserver = createMcpStderrObserver(process.env.VIRA_MCP_LOCAL_DIAGNOSTICS === "true");
|
|
1160
1169
|
for (const tool of tools) {
|
|
1161
1170
|
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.
|
|
3
|
+
"version": "0.1.99",
|
|
4
4
|
"mcpName": "io.github.hrpering/vira",
|
|
5
5
|
"description": "Vira MCP client and npx-ready JSON-RPC launcher.",
|
|
6
6
|
"keywords": [
|
|
@@ -32,13 +32,18 @@
|
|
|
32
32
|
"bin": {
|
|
33
33
|
"vira-mcp": "dist/cli.js"
|
|
34
34
|
},
|
|
35
|
-
"files": [
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/index.js",
|
|
37
|
+
"dist/index.d.ts",
|
|
38
|
+
"dist/cli.js",
|
|
39
|
+
"README.md"
|
|
40
|
+
],
|
|
36
41
|
"publishConfig": {
|
|
37
42
|
"access": "public"
|
|
38
43
|
},
|
|
39
44
|
"dependencies": {
|
|
40
45
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
41
|
-
"@tryvira/sdk": "^0.1.
|
|
46
|
+
"@tryvira/sdk": "^0.1.102",
|
|
42
47
|
"zod": "^4.2.0"
|
|
43
48
|
},
|
|
44
49
|
"scripts": {
|