JavaScript SDK

Agents from your backend

ScuteAdminApi methods for voice and chat agents on the auth MCP, agent monitoring, reports and the kill switch.

These ScuteAdminApi methods cover AI agents from your backend. Guards inside an agent loop are in @scute/harness (Harness); agents, tasks and the MCP gateway are in AI agents.

Agents that talk to people#

A voice or chat agent (for example on ElevenLabs) connects to Scute's auth MCP server with an agent key and verifies who it is talking to. Your backend then asks about that conversation by the platform's own conversation ID. No token passes through the model.

const { data: key } = await admin.createAgentKey("helpdesk", "ElevenLabs");// { id, name?, hint, key }: key is scak_..., shown onceconst { data: convo } = await admin.agentConversation("helpdesk", conversationId);// { conversation_id, verified, verified_at?, person?: { app_user_id, email?, name? }, ended, task: { id, status } }const { data: decision } = await admin.agentConversationCheck("helpdesk", conversationId, {  action: "reset",  resource: "password",});// an AuthzDecision plus `say`: a line for the agent to say

agentConversationCheck is refused with not_verified when nobody was verified in the conversation.

Monitoring#

What the safety rails caught (first use of a permission, a loop, a pause over budget) waits in a review inbox.

const { data } = await admin.agentMonitor({ status: "open", agent: "helpdesk" });// { items: AgentMonitorItem[], counts, next? }await admin.reviewAgentMonitorItem(data.items[0].id, { status: "acknowledged", note: "Expected" });
MethodDoes
agentMonitor({ status?, kind?, agent?, limit?, before? })Open items by default; status: "all" for everything. kind: "first_use", "loop", "paused".
reviewAgentMonitorItem(id, { status, note? })"acknowledged" or "flagged". It never changes the agent.
agentReport(slug, { from?, to? })The evidence report for one agent: tasks, decisions, human steps, safety items and the log check. Last 30 days by default, at most 400 days.
verifyDecisionLog({ from?, to? })Checks the decision log's hash chain.
suspendAllAgents(reason?)Suspends every agent of the app and ends their open tasks. Returns { suspended, tasks_revoked }.