@tryvira/mcp 0.1.68 → 0.1.70
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/dist/cli.js +17 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var add = (names, authority) => names.forEach((name) => {
|
|
|
15
15
|
});
|
|
16
16
|
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_improvement_proposal", "list_compound_task_plans", "get_compound_task_plan", "get_behavior_program"];
|
|
17
17
|
add(generatedReadTools, read());
|
|
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", "get_connection_health", "list_inventory", "list_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());
|
|
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", "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());
|
|
19
19
|
add(["connect_ai_system", "observe", "record_user_feedback", "record_business_outcome"], effectful("integration.write", "server", ["studio.write", "admin"]));
|
|
20
20
|
add(["mark_inbox_read"], effectful("teach.write", "server", ["studio.write", "admin"]));
|
|
21
21
|
add(["inspect_conflicts", "resolve_conflict"], effectful("behavior.write", "server", ["studio.write", "admin", "release.approve"]));
|
|
@@ -213,6 +213,8 @@ var fullTools = [
|
|
|
213
213
|
return client.createTeachProposal(proposal, { idempotencyKey });
|
|
214
214
|
} },
|
|
215
215
|
{ name: "list_packs", description: "List Behavior Packs with bounded cursor pagination.", inputSchema: input(pageFields), run: (args) => listFromApi("/v1/packs", args) },
|
|
216
|
+
{ name: "get_pack", description: "Read one scoped Behavior Pack including its manifest and materialization metadata.", inputSchema: input({ packId: z.string().min(1) }), run: (args) => client.getPack(String(args.packId)) },
|
|
217
|
+
{ name: "list_evaluations", description: "List scoped evaluations with bounded pagination and optional status filter.", inputSchema: input({ ...pageFields, status: z.string().optional() }), run: (args) => client.listEvaluations(args) },
|
|
216
218
|
{ name: "import_pack", description: "Import a versioned Pack draft; release remains separately governed.", inputSchema: importPackSchema, effectful: true, run: (args) => client.importPack(args) },
|
|
217
219
|
{ name: "install_pack", description: "Install and materialize an approved Pack using direct variables.", inputSchema: input({ packId: z.string().min(1), variables: z.record(z.string(), z.unknown()).optional() }), effectful: true, run: (args) => client.installPack(String(args.packId), args.variables ?? {}) },
|
|
218
220
|
{ name: "release_pack", description: "Release a separately evaluated and approved Pack.", inputSchema: input({ packId: z.string().min(1) }), effectful: true, run: (args) => client.releasePack(String(args.packId)) },
|
|
@@ -319,6 +321,8 @@ var promotedNames = /* @__PURE__ */ new Set([
|
|
|
319
321
|
"transition_pack_revision",
|
|
320
322
|
"materialize_pack_revision",
|
|
321
323
|
"diagnose_pack",
|
|
324
|
+
"get_pack",
|
|
325
|
+
"list_evaluations",
|
|
322
326
|
"evaluate_pack",
|
|
323
327
|
"import_pack",
|
|
324
328
|
"install_pack",
|
|
@@ -340,7 +344,18 @@ var genericTools = [
|
|
|
340
344
|
{ 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 },
|
|
341
345
|
{ 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 }
|
|
342
346
|
];
|
|
343
|
-
var
|
|
347
|
+
var descriptionOverrides = {
|
|
348
|
+
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.",
|
|
349
|
+
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.",
|
|
350
|
+
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.",
|
|
351
|
+
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.",
|
|
352
|
+
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.",
|
|
353
|
+
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.",
|
|
354
|
+
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.",
|
|
355
|
+
release_pack: "PACK FINAL STEP: release an already evaluated and approved imported/installed Pack. For a Pack Revision use transition_pack_revision release.",
|
|
356
|
+
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."
|
|
357
|
+
};
|
|
358
|
+
var tools = Object.freeze([...fullTools.filter((tool) => promotedNames.has(tool.name)), ...genericTools].map((tool) => descriptionOverrides[tool.name] ? { ...tool, description: descriptionOverrides[tool.name] } : tool));
|
|
344
359
|
if (tools.some((tool) => !isKnownMcpTool(tool.name) || Boolean(tool.effectful) !== (getMcpToolAuthority(tool.name)?.effectType === "effectful"))) throw new Error("MCP_TOOL_REGISTRY_DRIFT");
|
|
345
360
|
var authorize = async (tool, args) => {
|
|
346
361
|
if (!tool.effectful) return;
|