@usetorii/gateway 0.0.0
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/LICENSE +21 -0
- package/README.md +116 -0
- package/dist/audit/index.d.ts +5 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +27 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/core/config/loader.d.ts +8 -0
- package/dist/core/config/loader.d.ts.map +1 -0
- package/dist/core/config/loader.js +61 -0
- package/dist/core/config/loader.js.map +1 -0
- package/dist/core/config/schema.d.ts +541 -0
- package/dist/core/config/schema.d.ts.map +1 -0
- package/dist/core/config/schema.js +90 -0
- package/dist/core/config/schema.js.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +3 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/types.d.ts +45 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/mux/index.d.ts +8 -0
- package/dist/mux/index.d.ts.map +1 -0
- package/dist/mux/index.js +120 -0
- package/dist/mux/index.js.map +1 -0
- package/dist/process/manager.d.ts +12 -0
- package/dist/process/manager.d.ts.map +1 -0
- package/dist/process/manager.js +79 -0
- package/dist/process/manager.js.map +1 -0
- package/dist/runners/stdio.d.ts +7 -0
- package/dist/runners/stdio.d.ts.map +1 -0
- package/dist/runners/stdio.js +63 -0
- package/dist/runners/stdio.js.map +1 -0
- package/dist/security/consent.d.ts +5 -0
- package/dist/security/consent.d.ts.map +1 -0
- package/dist/security/consent.js +49 -0
- package/dist/security/consent.js.map +1 -0
- package/dist/security/policy.d.ts +22 -0
- package/dist/security/policy.d.ts.map +1 -0
- package/dist/security/policy.js +114 -0
- package/dist/security/policy.js.map +1 -0
- package/dist/security/scanner.d.ts +39 -0
- package/dist/security/scanner.d.ts.map +1 -0
- package/dist/security/scanner.js +96 -0
- package/dist/security/scanner.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Torii
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Torii Gateway
|
|
2
|
+
|
|
3
|
+
The runtime side of [Torii](https://usetorii.dev). A small Node.js process that:
|
|
4
|
+
|
|
5
|
+
- speaks **MCP** to your AI client (Claude Desktop, Cursor, your own app),
|
|
6
|
+
- proxies tool calls to the real MCP servers you've registered,
|
|
7
|
+
- enforces policies (block, ask-me-first),
|
|
8
|
+
- streams audit + threat findings to the Torii backend, and
|
|
9
|
+
- runs the local pieces of the consent flow.
|
|
10
|
+
|
|
11
|
+
It pairs with a `TORII_API_KEY` you generate in the dashboard.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
Pick one. Same binary, different package.
|
|
16
|
+
|
|
17
|
+
### 1. npx (no install)
|
|
18
|
+
```json
|
|
19
|
+
// claude_desktop_config.json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"torii": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "@usetorii/gateway"],
|
|
25
|
+
"env": { "TORII_API_KEY": "tok_..." }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 2. Native binary
|
|
32
|
+
```bash
|
|
33
|
+
# macOS / Linux (Homebrew)
|
|
34
|
+
brew install scumfrog/tap/torii
|
|
35
|
+
|
|
36
|
+
# Linux / macOS (curl)
|
|
37
|
+
curl -fsSL https://usetorii.dev/install.sh | sh
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then in `claude_desktop_config.json`:
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"mcpServers": {
|
|
44
|
+
"torii": {
|
|
45
|
+
"command": "torii",
|
|
46
|
+
"env": { "TORII_API_KEY": "tok_..." }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 3. Docker
|
|
53
|
+
```bash
|
|
54
|
+
docker pull ghcr.io/scumfrog/torii-gateway:latest
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"torii": {
|
|
61
|
+
"command": "docker",
|
|
62
|
+
"args": [
|
|
63
|
+
"run", "--rm", "-i",
|
|
64
|
+
"-e", "TORII_API_KEY",
|
|
65
|
+
"ghcr.io/scumfrog/torii-gateway:latest"
|
|
66
|
+
],
|
|
67
|
+
"env": { "TORII_API_KEY": "tok_..." }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Configuration
|
|
74
|
+
|
|
75
|
+
Without a `TORII_API_KEY`, the gateway looks for a local YAML config at:
|
|
76
|
+
|
|
77
|
+
1. `$TORII_CONFIG` if set, else
|
|
78
|
+
2. `~/.torii/config.yaml`
|
|
79
|
+
|
|
80
|
+
See the [config schema](./src/core/config/schema.ts) for the full shape.
|
|
81
|
+
|
|
82
|
+
When `TORII_API_KEY` is set, the gateway pulls its config from
|
|
83
|
+
`https://api.usetorii.dev/v1/me/servers/config` so you can manage everything
|
|
84
|
+
from the dashboard.
|
|
85
|
+
|
|
86
|
+
## Local development
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm install
|
|
90
|
+
pnpm run build
|
|
91
|
+
node dist/index.js
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## How distribution works
|
|
95
|
+
|
|
96
|
+
- Tag a release: `git tag v0.x.y && git push --tags`.
|
|
97
|
+
- `.github/workflows/release.yml` runs and:
|
|
98
|
+
- publishes `@usetorii/gateway` to npm (needs `NPM_TOKEN` secret),
|
|
99
|
+
- builds native binaries for macOS/Linux × x64/arm64 with `bun build --compile`,
|
|
100
|
+
- uploads them to a GitHub Release with SHA-256 checksums,
|
|
101
|
+
- builds and pushes a multi-arch Docker image to `ghcr.io/scumfrog/torii-gateway`,
|
|
102
|
+
- bumps the `homebrew-tap` formula (needs `HOMEBREW_TAP_TOKEN` secret).
|
|
103
|
+
|
|
104
|
+
To bootstrap the secrets:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# in this repo
|
|
108
|
+
gh secret set NPM_TOKEN -b "<from https://www.npmjs.com/settings/tokens>"
|
|
109
|
+
gh secret set HOMEBREW_TAP_TOKEN -b "<a PAT with 'repo' scope on scumfrog/homebrew-tap>"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`GITHUB_TOKEN` is auto-injected by Actions for the GHCR push.
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
MIT. See [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AuditEntry, SecurityFinding } from "../core/index.js";
|
|
2
|
+
export type { AuditEntry };
|
|
3
|
+
export declare function logCall(entry: AuditEntry): void;
|
|
4
|
+
export declare function makeEntry(server: string, tool: string, args: unknown, result: unknown, startedAt: number, error?: unknown, blocked?: boolean, threatLevel?: string, findings?: SecurityFinding[]): AuditEntry;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/audit/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAY/C;AAED,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,OAAO,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,eAAe,EAAE,GAC3B,UAAU,CAaZ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function logCall(entry) {
|
|
2
|
+
process.stderr.write(JSON.stringify(entry) + "\n");
|
|
3
|
+
const apiUrl = process.env.TORII_API_URL;
|
|
4
|
+
const apiKey = process.env.TORII_API_KEY;
|
|
5
|
+
if (apiUrl && apiKey) {
|
|
6
|
+
fetch(`${apiUrl}/v1/audit/ingest`, {
|
|
7
|
+
method: "POST",
|
|
8
|
+
headers: { "Content-Type": "application/json", "X-Torii-Key": apiKey },
|
|
9
|
+
body: JSON.stringify({ entries: [entry] }),
|
|
10
|
+
}).catch(() => { });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export function makeEntry(server, tool, args, result, startedAt, error, blocked, threatLevel, findings) {
|
|
14
|
+
return {
|
|
15
|
+
ts: new Date().toISOString(),
|
|
16
|
+
server,
|
|
17
|
+
tool,
|
|
18
|
+
args_size: JSON.stringify(args ?? null).length,
|
|
19
|
+
result_size: JSON.stringify(result ?? null).length,
|
|
20
|
+
duration_ms: Date.now() - startedAt,
|
|
21
|
+
...(error ? { error: String(error) } : {}),
|
|
22
|
+
...(blocked !== undefined ? { blocked } : {}),
|
|
23
|
+
...(threatLevel ? { threat_level: threatLevel } : {}),
|
|
24
|
+
...(findings?.length ? { security_findings: findings } : {}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/audit/index.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,OAAO,CAAC,KAAiB;IACvC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;IAEnD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;IACzC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;IACzC,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;QACrB,KAAK,CAAC,GAAG,MAAM,kBAAkB,EAAE;YACjC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,EAAE;YACtE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACrB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,MAAc,EACd,IAAY,EACZ,IAAa,EACb,MAAe,EACf,SAAiB,EACjB,KAAe,EACf,OAAiB,EACjB,WAAoB,EACpB,QAA4B;IAE5B,OAAO;QACL,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAC5B,MAAM;QACN,IAAI;QACJ,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM;QAC9C,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,MAAM;QAClD,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;QACnC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToriiConfig } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves ${VAR_NAME} references in env values against process.env.
|
|
4
|
+
* Unknown variables are replaced with an empty string and a warning is logged.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveEnv(env: Record<string, string>): Record<string, string>;
|
|
7
|
+
export declare function loadConfig(): ToriiConfig;
|
|
8
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/core/config/loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa/C;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBxB;AAID,wBAAgB,UAAU,IAAI,WAAW,CAqCxC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { readFileSync, existsSync } from "fs";
|
|
2
|
+
import { homedir } from "os";
|
|
3
|
+
import { join, resolve } from "path";
|
|
4
|
+
import { parse as parseYaml } from "yaml";
|
|
5
|
+
import { ToriiConfigSchema } from "./schema.js";
|
|
6
|
+
// ── Path resolution ────────────────────────────────────────────────────────
|
|
7
|
+
function getConfigPath() {
|
|
8
|
+
if (process.env.TORII_CONFIG) {
|
|
9
|
+
return resolve(process.env.TORII_CONFIG);
|
|
10
|
+
}
|
|
11
|
+
return join(homedir(), ".torii", "config.yaml");
|
|
12
|
+
}
|
|
13
|
+
// ── Env var interpolation ──────────────────────────────────────────────────
|
|
14
|
+
/**
|
|
15
|
+
* Resolves ${VAR_NAME} references in env values against process.env.
|
|
16
|
+
* Unknown variables are replaced with an empty string and a warning is logged.
|
|
17
|
+
*/
|
|
18
|
+
export function resolveEnv(env) {
|
|
19
|
+
return Object.fromEntries(Object.entries(env).map(([key, value]) => {
|
|
20
|
+
const resolved = value.replace(/\$\{([^}]+)\}/g, (_, name) => {
|
|
21
|
+
const envValue = process.env[name];
|
|
22
|
+
if (envValue === undefined) {
|
|
23
|
+
process.stderr.write(`[torii] warn: env var ${name} referenced in config but not set in environment\n`);
|
|
24
|
+
return "";
|
|
25
|
+
}
|
|
26
|
+
return envValue;
|
|
27
|
+
});
|
|
28
|
+
return [key, resolved];
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
// ── Loader ─────────────────────────────────────────────────────────────────
|
|
32
|
+
export function loadConfig() {
|
|
33
|
+
const configPath = getConfigPath();
|
|
34
|
+
if (!existsSync(configPath)) {
|
|
35
|
+
throw new Error(`Config file not found: ${configPath}\n` +
|
|
36
|
+
`Create it or set TORII_CONFIG=/path/to/your/config.yaml`);
|
|
37
|
+
}
|
|
38
|
+
let raw;
|
|
39
|
+
try {
|
|
40
|
+
raw = readFileSync(configPath, "utf-8");
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
throw new Error(`Failed to read config file at ${configPath}: ${err.message}`);
|
|
44
|
+
}
|
|
45
|
+
let data;
|
|
46
|
+
try {
|
|
47
|
+
data = parseYaml(raw);
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
throw new Error(`Failed to parse YAML in ${configPath}: ${err.message}`);
|
|
51
|
+
}
|
|
52
|
+
const result = ToriiConfigSchema.safeParse(data);
|
|
53
|
+
if (!result.success) {
|
|
54
|
+
const issues = result.error.issues
|
|
55
|
+
.map((i) => ` - ${i.path.join(".")}: ${i.message}`)
|
|
56
|
+
.join("\n");
|
|
57
|
+
throw new Error(`Invalid config at ${configPath}:\n${issues}`);
|
|
58
|
+
}
|
|
59
|
+
return result.data;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../src/core/config/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAA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