@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 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.41
11
+ npx -y @tryvira/mcp@0.1.42
12
12
  ```
13
13
 
14
- The default transport is the official MCP transport. The legacy custom transport is an
15
- explicit migration option only: `VIRA_MCP_PROTOCOL_MODE=legacy npx @tryvira/mcp`.
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>","VIRA_MCP_AUTH_TOKEN":"<mcp-token>","VIRA_ORGANIZATION_ID":"<org>","VIRA_PROJECT_ID":"<project>","VIRA_ENVIRONMENT_ID":"<environment>"}}
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 default launcher uses MCP stdio. To run the optional HTTP transport explicitly, use
37
- `npx @tryvira/mcp --http`; it binds to `127.0.0.1` by default and requires `Authorization: Bearer
38
- <VIRA_MCP_AUTH_TOKEN>`. Effectful MCP tools are denied by default. Local-only effectful
39
- execution requires the explicit `VIRA_MCP_ALLOW_EFFECTFUL=true` opt-in; production never
40
- accepts that shortcut. Set `VIRA_MCP_BIND_PUBLIC=true` only when an authenticated reverse
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>",