🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@universarails/agent-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@universarails/agent-toolkit

Agent-safe Universa API client, tool wrappers, and MCP stdio server.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Universa Agent Toolkit

The Universa Agent Toolkit is the agent-operable layer for Universa payout rails. It wraps the existing signed Universa API with:

  • a small dependency-light JavaScript SDK,
  • approval-safe agent tool functions,
  • a stdio MCP server for Codex, Claude Desktop, Cursor, and other MCP clients,
  • dry-run defaults for every mutating action.

What Agents Can Do

ToolPurposeLive Mutation
universa_healthcheckConfirm toolkit configuration and safety defaults.No
universa_create_customerCreate a customer record.Requires execute: true
universa_get_customerRead a customer and wallet summary.No
universa_create_kyc_sessionCreate hosted KYC session.Requires execute: true
universa_get_customer_walletRead the assigned Solana wallet.No
universa_create_virtual_accountCreate a VA that settles to assigned Solana USDC.Requires execute: true
universa_list_virtual_accountsList a customer's virtual accounts.No
universa_prepare_usdc_payout_accountShortcut for USD in, Solana USDC out.Requires execute: true
universa_create_quoteCreate a route quote.Requires execute: true
universa_create_transferExecute a quoted transfer.Requires execute: true
universa_get_transferRead transfer status.No

Environment

export UNIVERSA_API_BASE_URL="https://pvuoslgpooqdvedynjok.supabase.co/functions/v1/platform-api"
export UNIVERSA_API_KEY="..."
export UNIVERSA_API_SECRET="..."

Read-only tools still require API credentials when they call Universa. Mutating tools can be previewed without credentials because they default to dry run.

Install

npm install @universarails/agent-toolkit

SDK Usage

import { createUniversaClient } from '@universarails/agent-toolkit'

const universa = createUniversaClient()

const wallet = await universa.getCustomerWallet('cus_...')
console.log(wallet.body.customer_wallet.address)

Agent Tool Usage

import { runUniversaAgentTool } from '@universarails/agent-toolkit'

const draft = await runUniversaAgentTool('universa_prepare_usdc_payout_account', {
  customer_id: 'cus_...',
})

console.log(draft.request)

To execute a mutating tool, pass execute: true:

await runUniversaAgentTool('universa_prepare_usdc_payout_account', {
  execute: true,
  customer_id: 'cus_...',
  idempotency_key: 'agent:create-va:cus_...:2026-06-15',
})

MCP Server

Run the MCP server over stdio:

node agent-toolkit/src/mcp-server.mjs

Example MCP config:

{
  "mcpServers": {
    "universa": {
      "command": "node",
      "args": ["/Users/exodia/universa/agent-toolkit/src/mcp-server.mjs"],
      "env": {
        "UNIVERSA_API_BASE_URL": "https://pvuoslgpooqdvedynjok.supabase.co/functions/v1/platform-api",
        "UNIVERSA_API_KEY": "YOUR_KEY",
        "UNIVERSA_API_SECRET": "YOUR_SECRET"
      }
    }
  }
}

Safety Model

Every mutating tool returns a dry-run request preview unless execute: true is explicitly provided. The preview includes the HTTP method, API path, request body, and generated idempotency key so a supervising agent or human can review it before execution.

The toolkit never exports wallet private keys. Wallet export remains behind the existing Universa API and is intentionally not exposed as an agent tool in this first pass.

Keywords

universa

FAQs

Package last updated on 16 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts