@tryvira/mcp 0.1.41 → 0.1.42
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/README.md +10 -12
- package/dist/cli.js +57 -2115
- package/dist/index.d.ts +2 -313
- package/dist/index.js +3 -222
- package/package.json +3 -4
- package/dist/migrations/001_vnext_foundation.sql +0 -628
package/README.md
CHANGED
|
@@ -8,11 +8,12 @@ An npx-ready MCP server for Vira's existing scoped authority boundary.
|
|
|
8
8
|
## Run it
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npx -y @tryvira/mcp@0.1.
|
|
11
|
+
npx -y @tryvira/mcp@0.1.42
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
The
|
|
15
|
-
|
|
14
|
+
The package is a thin stdio MCP adapter over the public Vira API. It uses the
|
|
15
|
+
`@tryvira/sdk` HTTP client and does not ship Vira server code, database drivers, or
|
|
16
|
+
database migrations.
|
|
16
17
|
|
|
17
18
|
The launcher reads environment variables from its parent process. It does not automatically load a
|
|
18
19
|
`.env` file. For a local shell, export the variables first; for an MCP client, put them in the
|
|
@@ -21,7 +22,6 @@ client's `env` configuration:
|
|
|
21
22
|
```dotenv
|
|
22
23
|
VIRA_API_URL=http://127.0.0.1:4185
|
|
23
24
|
VIRA_API_KEY=vira_dev_local.local-development-only-32chars
|
|
24
|
-
VIRA_MCP_AUTH_TOKEN=replace-with-a-long-random-mcp-token
|
|
25
25
|
VIRA_ORGANIZATION_ID=local-org
|
|
26
26
|
VIRA_PROJECT_ID=local-project
|
|
27
27
|
VIRA_ENVIRONMENT_ID=local
|
|
@@ -30,15 +30,14 @@ VIRA_ENVIRONMENT_ID=local
|
|
|
30
30
|
For example, an MCP client configuration uses the same names:
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
|
-
{"env":{"VIRA_API_URL":"https://api.example","VIRA_API_KEY":"<customer-api-key>","
|
|
33
|
+
{"env":{"VIRA_API_URL":"https://api.example","VIRA_API_KEY":"<customer-api-key>","VIRA_ORGANIZATION_ID":"<org>","VIRA_PROJECT_ID":"<project>","VIRA_ENVIRONMENT_ID":"<environment>"}}
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
The
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
proxy or equivalent network boundary is present.
|
|
36
|
+
The launcher uses MCP stdio. It exposes the API-backed capability, semantic, runtime,
|
|
37
|
+
BehaviorPoint, Behavior Program, Behavior Strategy, and Teach tools. The customer API key
|
|
38
|
+
and the three scope identifiers are required at startup. Calls that can change state or
|
|
39
|
+
execute behavior require approval from `VIRA_MCP_AUTHORITY_URL` (defaults to
|
|
40
|
+
`<VIRA_API_URL>/v1/mcp/authorize`).
|
|
42
41
|
|
|
43
42
|
Tools that change state or execute behavior are checked by Vira for credentials, scope,
|
|
44
43
|
policy, evaluation, and release eligibility. The server does not bypass those checks.
|
|
@@ -61,7 +60,6 @@ role, release state or policy.
|
|
|
61
60
|
"env": {
|
|
62
61
|
"VIRA_API_URL": "https://api.example.invalid",
|
|
63
62
|
"VIRA_API_KEY": "<customer-api-key>",
|
|
64
|
-
"VIRA_MCP_AUTH_TOKEN": "<mcp-auth-token>",
|
|
65
63
|
"VIRA_MCP_AUTHORITY_URL": "https://api.example.invalid/v1/mcp/authorize",
|
|
66
64
|
"VIRA_ORGANIZATION_ID": "<organization>",
|
|
67
65
|
"VIRA_PROJECT_ID": "<project>",
|