shield-kya
Provides MCP server integration for OpenAI Codex CLI/IDE and the Responses API (ChatGPT Apps deferred), allowing OpenAI agents to gate tool calls through Shield's policy evaluation, approval workflow, and session ingest.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@shield-agent/kya
Stops your coding agent from deleting, leaking or dropping things. Records everything else.
npm i -g @shield-agent/kya@latest && kya start![]()
What you get
KYA blocks a short list of destructive commands, secret reads and exfiltration by default (list below), and records every other tool call on a local dashboard. One command. Free forever under MIT. The limits are in LIMITATIONS.md.
# Permission denied (EACCES) on Linux? No sudo and no install needed:
npx @shield-agent/kya@latest startRequires Node.js 22+ (24 recommended). Restart Cursor / Claude Code / Codex once so MCP loads. Hosted desk: shield-agent.com.
Related MCP server: actionproxy
What it blocks by default
The deny list is the never-list (docs/never-list.md) plus the guard pack (docs/guard-pack.md). A deny exits 2 and names its rule id. In plain words:
Wiping files.
rmwith recursive and force flags on/, your home directory, a parent of it or of the project folder (rm-root-home, andrm-recursive-home-or-system);find ... -deleteon home or system folders.Infrastructure and data.
terraform destroyandterraform apply -destroy(terraform-destroy);DROP TABLE,DROP DATABASE,DROP SCHEMAandTRUNCATEinside a database client (sql-drop);docker volume rm,docker volume prune,docker system prune --volumesanddocker compose down -v(docker-volumes);kubectl delete namespaceandkubectl delete --all -A(k8s-delete-ns);aws ec2 terminate-instances,aws s3 rb --force,aws s3 rm --recursive,aws rds delete-db-instance,gcloud projects delete,gcloud sql instances delete,az group delete(cloud-delete);railway volume deleteand avolumeDeletecall (railway-volume-delete);supabase db reset --linked(supabase-reset-linked);rm -r .gitat the project root (rm-git-dir);dropDatabase()inmongosh(mongo-drop-database);FLUSHALLandFLUSHDBon a remote Redis (redis-flush);fly volumes destroyandfly apps destroy(fly-destroy);vercel remove(vercel-remove);gh repo deleteandgh api -X DELETE repos/...(gh-repo-delete). Four more commands are routine on a local database and not on a remote one, so the hook asks the person instead of denying (Claude Code only; other hosts deny):DELETE FROMwith noWHERE(sql-delete-all),prisma migrate reset(prisma-migrate-reset),prisma db push --accept-data-loss(prisma-accept-data-loss) andrm -rfof the project folder (rm-project-wipe). See guard-pack.Git. A force push to any branch (
git-force-push);--force-with-leaseis allowed except onmain,master,release*andprod*, where it is denied too (git-force-push-protected-branch); deletingmainormaster(git-delete-default-branch);git reset --hardwithgit clean -fdx(git-hard-reset-clean).Secret reads. SSH keys,
~/.aws/credentials, gcloud, Azure, kubeconfig, Docker, Railway, GitHub CLI, npm, PyPI, netrc and git credentials,.envfiles (not.env.example),*.pem,*.key(secret-read-*).Secret writes. AWS key ids, private key headers, GitHub, Slack and Stripe live tokens written into a file (
secret-write-*). The trail row never holds the text.Exfiltration. Environment variables or credential files sent to a non-loopback host with
curl,wget,nc,ncat,socat,scporrsync(exfil-*).System destroyers.
mkfs,ddto a block device, a fork bomb,chmod -R 777orchown -Ron home or system folders, a download piped into a shell.
Config keys (shellNeverList, secretsGuard, exfilGuard, guardAllow) are read from ~/.kya/config.json only; a project file cannot lift a deny. Details, examples and limits: docs/guard-pack.md.
What it does not block
Moves and renames, edits, and deletes inside the project folder: they are recorded in the audit trail, not blocked. Anything an agent does outside the hook's view: a script it writes then runs, commands built at run time, ssh host "rm -rf ~". Built-in shells of tools that have no hook and do not route through KYA (Cursor, for example, is MCP only). Hosted mode (--plane-config) applies the never-list and the plane's policy, not the guard pack. It is a seatbelt, not a sandbox: the guard pack denies this class of command, and the audit trail records what happened either way.
Uninstall
kya uninstall undoes kya start and kya connect. It removes only the keys KYA added, deletes the files KYA created if they are unchanged, and prints what it left alone. kya uninstall --dry-run shows the plan and changes nothing. kya uninstall --project undoes this directory only. KYA's own data (the trail and report files) is not part of the undo; see docs/uninstall.md.
Commands
kya help lists the six commands a new user needs. kya help --all lists every command in four groups, and kya help <command> shows one command. Nothing was removed or renamed.
Group | Commands | More |
Guard |
| |
Report |
| |
Team and hosted |
| |
Compliance and evidence |
|
The report opens on Blocked, Activity and Connected tools. Certify, Gateway, System, ORR and cost showback sit behind More in the left menu.
Links
Cline:
npm install -g @shield-agent/kya@latest, then followllms-install.md
All features
Generated from sdks/kya/features.json by pnpm sync:features. Do not edit by hand. Full list with docs links: docs/features.md.
Feature | Command or flag | Status |
Print version |
| stable |
One-line start |
| stable |
Undo kya start |
| stable |
Stop report server |
| stable |
Scaffold config |
| stable |
Wire a coding host |
| stable |
Wire PreToolUse hook |
| stable |
Point host at gateway |
| beta |
Self-update and version banner |
| stable |
Node 22 check and handoff | none | stable |
Homebrew install |
| stable |
Scoop install |
| beta |
Team rollout: commit plugin pin |
| beta |
Managed-settings JSON for admins |
| beta |
Team rollout: guard plugin for a repository |
| beta |
Repository policy file |
| beta |
Opt-in usage stats |
| stable |
Global activity record |
| stable |
Activity report |
| stable |
Near-miss card |
| stable |
Redacted share link |
| beta |
Share and claim |
| beta |
Natural-language search in report | none | beta |
Map of agent actions |
| beta |
Agent-flow export |
| beta |
Redacted change previews |
| stable |
Terminal desk |
| stable |
IoC check |
| stable |
Developer posture report (opt-in) |
| beta |
Cost showback | none | stable |
Never-list block |
| stable |
Guard pack |
| stable |
Advisory hook record |
| stable |
Strict hook mode |
| stable |
Local MCP gate server |
| stable |
Local MCP gateway |
| beta |
Destructive names and ADMIN tier denied | none | beta |
Auto-import of host MCP servers |
| beta |
Evaluate and record a command |
| stable |
Policy evaluate, exit codes |
| stable |
Read-only ORR board |
| stable |
Trust baseline gap report |
| stable |
Local attestation |
| stable |
Self-signed evidence bundle |
| beta |
EU AI Act mapping | none | beta |
Import foreign traces |
| stable |
Detections and fix briefs |
| beta |
Endpoint discovery |
| beta |
Opt-in Firecracker wrap |
| beta |
Alerts |
| beta |
Local triage model for security alerts |
| beta |
OTLP export |
| beta |
OTLP map attributes |
| beta |
In-process SDK shims | none | stable |
Python framework shim |
| beta |
Claude Code plugin |
| stable |
Codex plugin |
| stable |
Copilot CLI plugin |
| beta |
Gemini CLI extension |
| stable |
Cursor plugin | none | beta |
VS Code extension | none | beta |
GitHub Action kya-certify |
| stable |
Org Hold |
| stable |
Plane connection and keys |
| stable |
Hosted login (device code) |
| beta |
Sign out on this machine |
| beta |
Share calls to action |
| beta |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic allow/require_approval/deny verdicts for agent actions, before they happen.
Runtime permission, approval, and audit layer for AI agent tool execution.
Authorize AI agent tool calls before they run: policy-as-code, human approval, signed receipts.
Supervised API-write gateway for AI agents with policy, human approval and execution receipts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceGates agent tool execution with human approval, audit trails, and replay-resistant permits, enabling safe use of tools in agent loops.MIT
- AlicenseNot gradedqualityCmaintenanceProvides a human-in-the-loop approval gateway for AI agents, enforcing policies and audit logging for MCP-compatible tool calls.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables controlled AI-agent access to enterprise-shaped tools with a deny-by-default gated write path, human approval, dry-run execution, and append-only audit logging.1-
- AlicenseNot gradedqualityBmaintenanceEnforces configurable policies on AI agent tool calls, allowing, requesting review, or denying actions before they are executed.MIT