Skip to main content

MCP Server

@vengtoo/mcp-server is a Model Context Protocol server that exposes your Vengtoo account as a set of tools any MCP-compatible AI agent can call. It lets agents create policies, list subjects, evaluate access decisions, and manage your full authorization model, without leaving the chat.

This guide covers manual setup for other MCP clients.

Prerequisites

Export your API key so the MCP server can read it at startup:

export VENGTOO_API_KEY=vgt_...

Get your key at console.vengtoo.com → Settings → API Keys.

Setup

Claude Code

claude mcp add --transport stdio vengtoo -- npx -y @vengtoo/mcp-server

Cursor

Add to .cursor/mcp.json in your project:

{
"mcpServers": {
"vengtoo": {
"command": "npx",
"args": ["-y", "@vengtoo/mcp-server"]
}
}
}

Claude Desktop

Add to claude_desktop_config.json:

{
"mcpServers": {
"vengtoo": {
"command": "npx",
"args": ["-y", "@vengtoo/mcp-server"],
"env": {
"VENGTOO_API_KEY": "vgt_..."
}
}
}
}

Available tools

Subjects

ToolDescription
list_subjectsList all subjects in the tenant
create_subjectCreate a subject (user, service, agent, device)
get_subjectGet a subject by ID
update_subjectUpdate a subject
delete_subjectDelete a subject
assign_role_to_subjectGive a subject a role
unassign_role_from_subjectRemove a role from a subject

Roles

ToolDescription
list_rolesList all roles
create_roleCreate a role
get_roleGet a role by ID
delete_roleDelete a role

Resource Types

ToolDescription
list_resource_typesList all resource types
create_resource_typeCreate a resource type with actions
get_resource_typeGet a resource type by ID
delete_resource_typeDelete a resource type

Resources

ToolDescription
list_resourcesList all resources
create_resourceCreate a resource instance
get_resourceGet a resource by ID
update_resourceUpdate a resource
delete_resourceDelete a resource

Policies

ToolDescription
list_policiesList all policies
create_policyCreate a policy (type-level or instance-level)
update_policyUpdate an existing policy
get_policyGet a policy by ID
delete_policyDelete a policy
activate_policyActivate a policy
deactivate_policyDeactivate a policy
assign_policyAssign a policy to a subject, role, or group
unassign_policyRemove a policy assignment
list_policy_assignmentsList a policy's assignments

Subject Attributes

ToolDescription
define_subject_attributeDefine a subject attribute for use in ABAC conditions

MCP Governance

ToolDescription
list_pending_toolsList agent tool calls awaiting approval
approve_toolApprove a pending tool call
block_toolBlock a tool call

Evaluation

ToolDescription
evaluate_accessCheck if a subject can perform an action on a resource

OAuth (client credentials)

For non-interactive environments, use client credentials instead of an API key:

{
"mcpServers": {
"vengtoo": {
"command": "npx",
"args": ["-y", "@vengtoo/mcp-server"],
"env": {
"VENGTOO_CLIENT_ID": "your-client-id",
"VENGTOO_CLIENT_SECRET": "your-client-secret"
}
}
}
}

See OAuth Client Credentials for setup.