@tryvira/mcp 0.1.107 → 0.1.108
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 +16 -5
- package/dist/cli.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @tryvira/mcp 0.1.
|
|
1
|
+
# @tryvira/mcp 0.1.108
|
|
2
2
|
|
|
3
3
|
An MCP server for connecting MCP-compatible applications to Vira's governed AI
|
|
4
4
|
behavior and runtime APIs. The package is MIT licensed.
|
|
@@ -138,7 +138,7 @@ identifiers, not the API key:
|
|
|
138
138
|
"servers": {
|
|
139
139
|
"vira": {
|
|
140
140
|
"type": "local",
|
|
141
|
-
"command": ["npx", "-y", "@tryvira/mcp@0.1.
|
|
141
|
+
"command": ["npx", "-y", "@tryvira/mcp@0.1.108"],
|
|
142
142
|
"environment": {
|
|
143
143
|
"VIRA_API_URL": "https://api.tryvira.xyz",
|
|
144
144
|
"VIRA_API_KEY": "{file:~/.config/vira/api-key}",
|
|
@@ -155,9 +155,20 @@ identifiers, not the API key:
|
|
|
155
155
|
Do not pass `VIRA_API_URL={env:VIRA_API_URL}` to `opencode mcp add` unless that
|
|
156
156
|
variable is present in the background service environment. An unresolved
|
|
157
157
|
OpenCode `{env:...}` reference becomes an empty string, which makes this
|
|
158
|
-
launcher fail closed with `VIRA_API_URL_REQUIRED`. After saving the config,
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
launcher fail closed with `VIRA_API_URL_REQUIRED`. After saving the config,
|
|
159
|
+
verify the active configuration and normal service registry:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
opencode debug config
|
|
163
|
+
opencode mcp list
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The global `--standalone` mode is an isolated diagnostic process and may not
|
|
167
|
+
reuse the background service's global MCP registry; do not use
|
|
168
|
+
`opencode --standalone mcp list` as proof that a `--global` server was added.
|
|
169
|
+
If the normal list is stale, restart the OpenCode service and run the two
|
|
170
|
+
commands again. The `debug config` output must contain `mcp.servers.vira` before
|
|
171
|
+
investigating the MCP package itself.
|
|
161
172
|
|
|
162
173
|
See the [MCP guide](https://github.com/hrpering/tryvira/blob/main/docs/reference/mcp.md)
|
|
163
174
|
and [tool catalog](https://github.com/hrpering/tryvira/blob/main/docs/reference/mcp-tools.md)
|
package/dist/cli.js
CHANGED
|
@@ -107,7 +107,7 @@ var coreTools = Object.freeze([
|
|
|
107
107
|
{ name: "revoke_ai_system_unit_access", description: "Revoke an AI System unit access grant. Workspace owner permission is required.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, aiSystemId: { type: "string" }, unitId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId", "aiSystemId", "unitId"] } },
|
|
108
108
|
{ name: "list_organization_billing_admins", description: "List organization Billing Admin memberships. Workspace owner permission is required.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
109
109
|
{ name: "set_organization_billing_admin", description: "Grant or revoke an organization Billing Admin membership. Workspace owner permission is required.", effectful: true, inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, actorId: { type: "string" }, status: { type: "string", enum: ["ACTIVE", "REVOKED"] } }, required: ["organizationId", "projectId", "environmentId", "actorId", "status"] } },
|
|
110
|
-
{ name: "get_ai_credit_wallet", description: "Read
|
|
110
|
+
{ name: "get_ai_credit_wallet", description: "Read organization wallet and verified funding lots, including expiry-aware spendable credits. Set includeCommercial for approved agreement and receivable summaries. Organization owner or Billing Admin authority required.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, includeCommercial: { type: "boolean" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
111
111
|
{ name: "get_ai_usage_summary", description: "Read monthly provider cost and customer credits by provider/model, optionally filtered to an organization unit. Owners and Billing Admins may read organization data; a Department Admin sees only their active unit.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, organizationUnitId: { type: "string", minLength: 1 } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
112
112
|
{ name: "list_ai_usage_receipts", description: "Read rated provider usage receipts, optionally filtered to an organization unit. Owners and Billing Admins may read organization data; a Department Admin sees only their active unit.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" }, organizationUnitId: { type: "string", minLength: 1 }, limit: { type: "integer", minimum: 1, maximum: 500 } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
113
113
|
{ name: "list_ai_credit_budgets", description: "Read organization AI credit budget caps and consumed or reserved usage. Organization billing admin permission is required.", inputSchema: { type: "object", properties: { organizationId: { type: "string" }, projectId: { type: "string" }, environmentId: { type: "string" } }, required: ["organizationId", "projectId", "environmentId"] } },
|
|
@@ -988,7 +988,7 @@ var fullTools = [
|
|
|
988
988
|
{ name: "revoke_ai_system_unit_access", description: "Revoke an AI System unit access grant. Requires workspace owner permission and human approval.", inputSchema: input({ aiSystemId: z.string().min(1), unitId: z.string().min(1) }), effectful: true, run: async (args) => (await viraHttpRequest(`${baseUrl}/v1/ai-systems/${encodeURIComponent(String(args.aiSystemId))}/unit-grants/${encodeURIComponent(String(args.unitId))}`, { ...mcpHttpOptions, method: "DELETE", body: { ...scope }, idempotencyKey: newMcpMutationKey("revoke_ai_system_unit_access") })).body },
|
|
989
989
|
{ name: "list_organization_billing_admins", description: "List organization Billing Admin memberships. Workspace owner permission is required.", inputSchema: input(), run: () => readFromApi("/v1/organization/billing-admins") },
|
|
990
990
|
{ name: "set_organization_billing_admin", description: "Grant or revoke an organization Billing Admin membership. Workspace owner permission is required.", inputSchema: input({ actorId: z.string().min(1), status: z.enum(["ACTIVE", "REVOKED"]) }), effectful: true, run: async (args) => (await viraHttpRequest(`${baseUrl}/v1/organization/billing-admins/${encodeURIComponent(String(args.actorId))}`, { ...mcpHttpOptions, method: "POST", body: { ...scope, status: args.status }, idempotencyKey: newMcpMutationKey("set_organization_billing_admin") })).body },
|
|
991
|
-
{ name: "get_ai_credit_wallet", description: "Read
|
|
991
|
+
{ name: "get_ai_credit_wallet", description: "Read organization wallet and verified funding lots, including expiry-aware spendable credits. Set includeCommercial for approved agreement and receivable summaries. Organization owner or Billing Admin authority required.", inputSchema: input({ includeCommercial: z.boolean().optional() }), run: (args) => readFromApi("/v1/billing/credits", { includeCommercial: args.includeCommercial === true ? "true" : void 0 }) },
|
|
992
992
|
{ name: "list_ai_credit_budgets", description: "Read organization, department, project, and AI System budget caps with consumed and reserved credits. Organization billing admin permission is required.", inputSchema: input(), run: () => readFromApi("/v1/billing/credits/budgets") },
|
|
993
993
|
{ name: "reserve_ai_credits", description: "Reserve an approved upper bound before a managed AI provider call. Requires organization Billing Admin permission and explicit human approval.", inputSchema: input({ amountMicrocredits: z.number().int().positive(), periodStart: z.string(), periodEnd: z.string(), idempotencyKey: z.string().min(1), aiSystemId: z.string().optional() }), effectful: true, run: (args) => client.reserveAICredits({ organizationId: scope.organizationId, projectId: scope.projectId, environmentId: scope.environmentId, amountMicrocredits: Number(args.amountMicrocredits), periodStart: String(args.periodStart), periodEnd: String(args.periodEnd), idempotencyKey: String(args.idempotencyKey), aiSystemId: args.aiSystemId }) },
|
|
994
994
|
{ name: "release_ai_credit_reservation", description: "Release an unused AI credit reservation before any usage receipt is recorded. Requires explicit human approval.", inputSchema: input({ reservationId: z.string().min(1), idempotencyKey: z.string().min(1).optional() }), effectful: true, run: (args) => client.releaseAICreditReservation(String(args.reservationId), { idempotencyKey: typeof args.idempotencyKey === "string" ? args.idempotencyKey : void 0 }) },
|
|
@@ -1182,7 +1182,7 @@ var authorize = async (tool, args) => {
|
|
|
1182
1182
|
})).body;
|
|
1183
1183
|
assertMcpAuthorityDecisionReceipt(decision);
|
|
1184
1184
|
};
|
|
1185
|
-
var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.
|
|
1185
|
+
var server = new McpServer({ name: process.env.VIRA_MCP_SERVER_NAME ?? "vira", version: "0.1.108" }, { capabilities: { tools: {} } });
|
|
1186
1186
|
var stdioObserver = createMcpStderrObserver(process.env.VIRA_MCP_LOCAL_DIAGNOSTICS === "true");
|
|
1187
1187
|
for (const tool of tools) {
|
|
1188
1188
|
server.registerTool(tool.name, { description: tool.description, inputSchema: tool.inputSchema, outputSchema: z.fromJSONSchema(MCP_PUBLIC_TOOL_CATALOG.find((item) => item.name === tool.name).outputSchema), annotations: tool.annotations }, async (raw) => observeMcpStdioCall(stdioObserver, async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.108",
|
|
4
4
|
"mcpName": "io.github.hrpering/vira",
|
|
5
5
|
"description": "Vira MCP client and npx-ready JSON-RPC launcher.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
46
|
-
"@tryvira/sdk": "^0.1.
|
|
46
|
+
"@tryvira/sdk": "^0.1.109",
|
|
47
47
|
"zod": "^4.2.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|