kit
SDK, CLI, and MCP connectors for the Toreva gateway. Wire any AI agent to Toreva in minutes.
Documentation
toreva kit
Kit is the public client layer for connecting user-owned compute to Toreva
governed objects.
The front door is the object store. MCP clients, SDK callers, CLI users, and
customer-owned agent fleets all read and write the same Toreva objects through
the gateway relay, and every accepted, pending, or refused outcome returns a
receipt.
GitHub can prove which organization and admin are acting. It is not the
transport for Toreva work messages. Compute is bound per scope, and the live
paths put model execution on the developer's own account.
No money moves through this connector.
The Three Doors
Door 1: MCP
Use this first. Your AI client connects the Toreva MCP server, your own client
subscription does the work, and Toreva receives only the object reads and writes
you authorize.
npx toreva init --client=claude-desktop
npx toreva login
npx toreva doctorRestart the client, then ask it about your Toreva objects or receipts. Supported
client config targets are `claude-desktop`, `cursor`, and `openclaw`.
Door 2: Customer-Owned Fleet
Use this when you need unattended or scheduled agents. A GitHub organization
admin runs agents in their own org, on their own runners, with their own model
credentials. The agents call Toreva through MCP, SDK, or CLI and land answers
back on Toreva objects with `receipt_id` proof.
Start here: GitHub Org Agent Fleet.
Door 3: Hosted Compute
Hosted compute means Toreva runs the agents and carries the marginal model
cost. This door is deferred and is not documented as available. Use MCP or a
customer-owned fleet today.
How Answers Land
The object store is the receiving system. A work surface prepares a relay
request, sends it to `https://gateway.toreva.com/relay`, and treats the result
as accepted only when the gateway returns a `receipt_id`.
For the shared install, invoke, and receipt shapes, see
Work-Surface Connector Primitives.
MCP Tools
| Tool | What it does |
|---|---|
| `toreva_establish_agent_wallet` | Create the agent wallet with hard limits |
| `toreva_read_or_scan` | Read or scan a main wallet or agent wallet |
| `toreva_simulate_action` | Test an action before anything is prepared |
| `toreva_prepare_unsigned_transaction` | Prepare an unsigned transaction after simulation |
| `toreva_explain_action` | Explain an action or receipt |
| `toreva_get_receipt` | Fetch one receipt |
| `toreva_refuse_action` | Refuse an unsafe action and return a refusal receipt |
Install
The local package runs over stdio. Use either the token written by
`toreva login` or an explicit `RELAY_AUTH_TOKEN` from your own secret store.
npm install -g @toreva/mcp
toreva login
toreva-mcpFor runner-owned environments:
RELAY_AUTH_TOKEN=your_token toreva-mcpFor local development:
pnpm install
pnpm --filter @toreva/mcp build
RELAY_AUTH_TOKEN=your_token node packages/mcp/dist/index.jsPackage
`@toreva/mcp` is the Rung-1 MCP package. Version `0.2.0` is stdio-local only.
The public metadata is `server.json` and `packages/mcp/package.json`.
Packages
| Package | What |
|---|---|
| `@toreva/mcp` | MCP server for agent integration |
| `@toreva/types` | Shared schemas and types |
| `@toreva/sdk` | TypeScript client library |
| `@toreva/cli` | Command-line interface |
Verify
pnpm test
pnpm --filter @toreva/mcp buildRegulatory notice
This software provides tooling for interacting with the Toreva policy service.
It does not provide financial advice, investment advice, trading advice, or any
other form of advice. Use of this software does not create a fiduciary
relationship, advisory relationship, or any other professional relationship
between you and Toreva Pty Ltd.
Toreva Pty Ltd is not responsible for modifications made to this software by
third parties, including modifications that alter or remove compliance language,
disclaimers, or risk warnings. If you use a modified version of this software,
you do so at your own risk and are responsible for ensuring your use complies
with applicable law.
License
MIT — see LICENSE
Frequently asked questions
What is kit?
kit is SDK, CLI, and MCP connectors for the Toreva gateway. Wire any AI agent to Toreva in minutes.
How do I install kit?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is kit open source?
Yes — it is hosted on GitHub at https://github.com/toreva/kit.
Related MCP tools
The go-to web for your AI coding agent — local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding
A desktop MCP client designed as a tool unitary utility integration, accelerating AI adoption through the Model Context Protocol (MCP) and enabling cross-vendor LLM API orchestration.
Code research platform for AI agents; find, understand, and prove context across your code and all of GitHub, in a fraction of the tokens. One toolset, MCP or CLI
Open-source cross-agent memory layer for coding agents via MCP. Compatible with Claude Code, Codex, Cursor, Windsurf, Gemini CLI, Antigravity, OpenClaw, Hermes Agent, Oh-my-Pi, Pi, Copilot, Kiro, OpenCode, and Trae.
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP