By NHI Mgmt Group Editorial TeamPublished 2026-04-08Domain: Agentic AI & NHIsSource: Kong

TL;DR: CLI-based agent workflows work well for individual developers, but enterprise AI agents need protocol-level delegation, policy enforcement, and auditability that CLIs do not provide, especially as access must be scoped across teams and machine-speed operations, according to Kong. Access review processes assume stable privileges and human-paced approval loops; autonomous workflows collapse those assumptions in practice.


At a glance

What this is: This analysis compares CLI and MCP patterns for enterprise AI agents and finds that governance, delegation, and observability become decisive once agents operate at organisational scale.

Why it matters: IAM, NHI, and platform teams need to decide whether agent access is still being managed as a local developer convenience or as a governed enterprise identity model.

👉 Read Kong's analysis of CLI versus MCP tradeoffs for enterprise AI agents


Context

The core problem is not whether CLIs work, but whether the identity and governance assumptions behind CLI-based agent workflows still hold when AI agents operate across teams, users, and production systems. In a solo workflow, a single person can tolerate local approvals and personal credentials. In an enterprise, those same patterns create blind spots in delegation, policy enforcement, and auditability.

MCP changes the control plane by making delegation, access boundaries, and structured observability part of the protocol rather than an afterthought in application code. That matters because enterprise AI agents are no longer just tool users. They increasingly act on behalf of multiple identities, which pushes the discussion from convenience to identity governance across NHI and agentic AI programmes.


Key questions

Q: How should security teams govern AI agents that act on behalf of multiple users?

A: They should treat the agent as a delegated identity with explicit per-request scope, revocation, and logging. The key control is not the tool itself but the authority boundary around each action. If an agent can represent different users, the organisation needs central policy and auditability rather than inherited personal tokens.

Q: Why do CLI-based agent workflows become risky at enterprise scale?

A: They become risky because the controls are local, fragmented, and hard to audit across teams. A prompt before each command may be tolerable for one developer, but it does not create enterprise visibility or consistent policy enforcement when many agents are acting quickly and across systems.

Q: When does MCP provide a better governance model than CLI for AI agents?

A: MCP is the better governance model when an agent needs delegated access, structured audit data, and centrally enforced policy across multiple systems or users. At that point, the problem is no longer command execution. It is identity, scope, and accountability at runtime.

Q: What should IAM teams evaluate before allowing shared AI agent access?

A: They should evaluate whether the access path can be scoped per user, revoked centrally, and audited in a structured way. If any of those are missing, the organisation will struggle to prove what the agent did, who it acted for, and whether the access remained appropriate.


Technical breakdown

CLI-based agent workflows and the limits of local approvals

CLI-driven agents are effective when the actor is one developer using familiar tools with a single credential context. The model can emit plain-text commands, inspect stdout and stderr, and iterate quickly without a networked control layer. The limitation is not execution speed, but governance: approvals, permissions, and audit trails remain local to the machine and the user. That works for isolated workflows, but it does not scale into a shared operating model for enterprise access control.

Practical implication: treat CLI-based agent execution as a local productivity pattern, not as a governance model for shared enterprise access.

MCP, OAuth 2.1, and delegated identity for AI agents

MCP over HTTP introduces protocol-level delegation through OAuth 2.1, so the agent can act with scoped authorisation rather than inherited personal credentials. That matters in enterprise settings where an agent must operate on behalf of different users with different entitlements. Instead of rebuilding token swapping and refresh logic in each tool, the protocol standardises how consent, revocation, and per-user access boundaries are expressed. In identity terms, it shifts the problem from ad hoc secret handling to governed delegated access.

Practical implication: use protocol-level delegation when an agent must represent multiple users or business functions with distinct access boundaries.

Structured observability and policy enforcement at machine speed

Enterprise agents generate too many actions, too quickly, for user-by-user approval to remain a reliable control. MCP gateways can centralise policy enforcement, logging, metering, and execution-time checks so high-risk operations still require human confirmation while routine actions stay policy-bound. The key difference is that audit data becomes structured and queryable, which supports accountability, forensics, and entitlement review across the whole environment. Without that layer, teams lose visibility into what the agent is allowed to do and what it actually did.

Practical implication: centralise policy, logging, and high-risk confirmation in a shared gateway before agent usage spreads across teams.



NHI Mgmt Group analysis

CLI-only agent governance is a local convenience pattern, not an enterprise control model. The article is right to separate individual developer workflows from org-wide agent operations. CLI approvals, shell history, and personal tokens can be workable when one person is acting on their own behalf, but they do not create a durable governance plane for delegated access across business units. For NHI and IAM teams, the practitioner conclusion is simple: local control mechanisms do not become enterprise governance just because an agent is using them.

Protocol-level delegation is the real identity shift in enterprise agent design. Once an AI agent acts on behalf of different users, per-request authorisation becomes an identity requirement rather than an implementation detail. That moves the discussion toward OAuth-based delegation, revocation, and central policy rather than implicit token inheritance. The broader implication is that agent identity should be designed as a governed access layer, not as a side effect of a developer session.

Observability becomes a governance requirement the moment agents reach machine speed. Human approval loops break when tool calls become frequent, distributed, and operationally consequential. A structured audit trail is no longer a reporting feature, it is the evidence base for entitlement review, incident investigation, and policy enforcement. The practitioner takeaway is that shared agent platforms need central telemetry before they need more developer convenience.

Access review was designed for stable privileges and breaks when agent authority is highly dynamic. That assumption fails when the actor can move from one scoped action to the next without a stable, reviewable permission state in between. The implication is not simply that review cycles need to be faster. It is that governance programmes must distinguish between human-paced certification logic and execution patterns that change at runtime.

Identity blast radius is the concept this debate makes visible. The question is not just what an agent can do, but how far a single credential path can propagate across users, teams, and systems once tooling is shared. CLI patterns keep the blast radius local until they do not. MCP makes the blast radius governable by exposing delegation, scope, and audit boundaries explicitly, which is where enterprise identity teams need the market to move.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation, according to SailPoint's research.
  • That governance gap makes the case for protocol-level control layers stronger, as shown in Analysis of Claude Code Security, where identity and execution controls are treated as linked problems.

What this signals

Identity blast radius is now the practical test for enterprise agent design: if an agent can inherit credentials locally and act across multiple teams, the programme has already outgrown human approval patterns. The result is not just more automation, but more dispersed accountability, which is why central policy and structured audit trails matter before adoption scales.

With 80% of organisations already reporting agent actions beyond intended scope, per AI Agents: The New Attack Surface report, the decision is no longer whether to govern AI agents. It is whether governance happens before the first shared workflow or after the first spillover incident.

Enterprise identity teams should watch for a shift from command approval to delegated access governance. That shift will push more programmes toward control layers, standardised telemetry, and policy-driven execution rather than ad hoc developer prompts, especially where agents operate across business units and production systems.


For practitioners

  • Separate local developer automation from governed enterprise agent access Classify CLI-based agent use cases as personal productivity unless the agent must act for multiple users, teams, or production systems. Once those conditions appear, move the workflow into a centrally governed access model with explicit delegation and logging.
  • Define per-request delegation boundaries for shared agents Require scoped authorisation for each user and each task when an agent acts on behalf of others. Avoid inheriting a single long-lived personal token for multiple business functions, because that collapses accountability and makes revocation unreliable.
  • Centralise policy enforcement and audit trails before rollout Use a shared gateway or control layer to enforce command-level policy, record structured audit events, and require confirmation for sensitive actions. Local approval prompts do not provide enough evidence for enterprise entitlement review.
  • Review which controls still assume human-paced interaction Map where your current approval, review, and monitoring processes assume a person is making slow, deliberate decisions. Any process that depends on that timing should be reworked for machine-speed execution and shared identity contexts.

Key takeaways

  • CLI workflows can be adequate for individual developer tasks, but they do not provide enough governance for shared enterprise AI agents.
  • The core control issue is delegated identity, because agents acting for multiple users need scoped authorisation, revocation, and structured auditability.
  • Enterprise teams should move agent access into a central policy and telemetry model before local approvals become a blind spot.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10AG2The article focuses on agent tool use, delegation, and approval boundaries.
NIST AI RMFAgent governance and accountability are central to the article's control-layer argument.
NIST Zero Trust (SP 800-207)PR.AC-4Scoped delegation and runtime policy enforcement match zero trust access principles.

Use AI RMF governance and measurement functions to define ownership, monitoring, and escalation paths.


Key terms

  • Delegated Identity: A delegated identity is an identity that acts with authority granted by another principal rather than with its own independent standing. In AI agent contexts, it determines whose permissions the agent uses, how scope is bounded, and how revocation should work when the task or user changes.
  • Identity Blast Radius: Identity blast radius is the amount of damage or reach created when one credential path, token, or access decision is overextended. For agents, it measures how quickly a single identity can spread across users, systems, and actions when governance is weak.
  • Policy-Driven Execution: Policy-driven execution means an action is checked against central rules at runtime before it can proceed. In agentic environments, this replaces ad hoc local approval prompts with shared enforcement, structured logging, and consistent access decisions across the organisation.
  • Structured Observability: Structured observability is machine-readable telemetry that records who acted, what was called, when it happened, and with which parameters. For identity teams, it is the evidence base for audit, investigation, and entitlement review rather than just a monitoring convenience.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.

This post draws on content published by Kong: The Incessant AI Death Knell, on CLI and MCP governance tradeoffs for enterprise AI agents. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-04-08.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org