Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

MCP Server or CLI: A Decision Rubric for Developer Tooling

Teams are rushing to make their internal tools available to agents. That is good. It is also where a lot of design mistakes begin. The question usually shows…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 11 Min. Lesezeit
Quelle: dev.to
Rubrik: Programación segura

Teams are rushing to make their internal tools available to agents. That is good. It is also where a lot of design mistakes begin.



The question usually shows up like this:



Should we expose this as an MCP server, or should the agent just use our CLI?



That framing makes it sound like one option is more “agentic” than the other. I do not think that is the useful distinction. A CLI and an MCP server solve different problems. The better question is: where does this capability naturally live, and what contract does the agent need in order to use it well?



MCP, now hosted by the Agentic AI Foundation under the Linux Foundation, gives the open agentic AI ecosystem a shared protocol for connecting agents to tools, data, and applications. That shared protocol matters because teams should not have to rebuild the same integration patterns for every agent runtime. But MCP is not a reason to wrap every executable in a server. Sometimes a CLI is exactly the right interface. Sometimes an MCP server is. Often, the answer is both, with different responsibilities.



Here is the rubric I use.



A decision flow showing when to choose a CLI, an MCP server, both, or documentation only.






Start with the workflow



A CLI is strongest when the workflow already belongs to a human developer.



If the task is repo-local, terminal-native, and already part of how developers build, test, debug, or ship software, start with the CLI. Developers know how to inspect it. CI can run it. Logs are usually visible. Failures can be reproduced outside the agent. The same interface works for humans, scripts, and automation.



Good CLI-shaped examples:




  • Running a project-specific code generator

  • Applying a migration in a local development environment

  • Linting, formatting, testing, or packaging

  • Inspecting repo state

  • Scaffolding files inside a checked-out project

  • Running one-off diagnostics where stdout and exit codes are enough



An MCP server is strongest when the workflow does not naturally belong in a terminal session, or when the agent needs a structured, discoverable capability instead of a command string.



Good MCP-shaped examples:




  • Reading from or writing to a SaaS API

  • Searching a private knowledge base

  • Fetching typed records from an internal system

  • Performing actions that need scoped authorization

  • Exposing capabilities across multiple agent clients

  • Providing context as resources, not just command output

  • Giving the agent a constrained set of tool calls instead of broad shell access



The trap is assuming that “agent can run command” and “agent has a good tool interface” are the same thing. They are not.



A CLI gives an agent a way to execute. MCP gives an agent a way to understand what capabilities exist, what inputs they accept, and what kind of result comes back.



A comparison of the responsibilities that belong to CLI surfaces versus MCP tool surfaces.






The five-question rubric



When deciding between a CLI, an MCP server, or both, I like to ask five questions.






1. Is this primarily an interactive human workflow?



If yes, prefer a CLI.



Developers still need tools that work when no agent is involved. If a human would reasonably run the tool while sitting inside a repo, reading logs, adjusting flags, and retrying, a CLI is usually the right primary interface.



That does not mean agents cannot use it. Agents are quite good at driving existing developer workflows when the commands are documented and the outputs are predictable. This is where AGENTS.md fits naturally: document which commands are safe, how to run tests, what directories are off-limits, and what failure modes are expected.



The CLI should be boring in the best way:




  • Clear subcommands

  • Stable flags

  • Machine-readable output where useful

  • Non-zero exit codes on failure

  • Dry-run modes for risky actions

  • Good help text

  • No hidden interactive prompts in automation paths



If the tool needs a human to make judgment calls mid-run, keep that interaction in the CLI. Do not hide it behind an MCP tool and pretend the workflow became autonomous.






2. Does the agent need to discover the capability?



If yes, lean toward MCP.



One of the real advantages of MCP is that tools can be described to the agent as tools. The agent does not need to infer everything from a README, shell history, or tribal knowledge. It can see available tool names, descriptions, schemas, and expected inputs.



That matters when the capability is meant to be reused across agents or across teams.



A CLI can be documented well, but discovery is still indirect. The agent needs to know the command exists, know where it is installed, know how to call it, and know how to interpret the output. MCP makes the capability part of the agent’s tool surface.



Use MCP when the agent should be able to answer questions like:




  • What tools are available to me?

  • What arguments does this action require?

  • What resources can I inspect?

  • What shape will the result have?

  • What actions are allowed in this environment?



This is especially useful for APIs and internal systems where a raw CLI would either expose too much or force the agent to learn a human-oriented interface.






3. Where is the auth boundary?



If the action crosses an authorization boundary, consider MCP carefully.



A CLI often inherits the developer’s local environment: shell credentials, config files, tokens, SSH agents, cloud profiles. That can be fine for local workflows. It can also be too broad for agent access.



MCP gives teams a cleaner place to define permission boundaries. The server can expose only the operations the agent should have. It can scope credentials server-side. It can validate inputs before touching the underlying system. It can log tool calls in a way that is easier to review than arbitrary shell execution.



This does not make MCP magically safe. A poorly designed MCP server can still be dangerous. But the server boundary gives you a place to enforce policy.



Ask:




  • Should the agent inherit the user’s full shell environment?

  • Should this action use delegated or scoped credentials?

  • Do we need per-tool authorization?

  • Do we need audit logs of agent actions?

  • Do we need to prevent arbitrary command composition?



If the answer to those questions is yes, a CLI alone may be too blunt.



For production-facing systems, this is also where infrastructure projects like agentgateway become relevant. Once agent traffic spans MCP servers, APIs, models, and services, teams need consistent policy, routing, and observability. That is a different layer than the individual tool decision, but the design choices connect.






4. Is the operation stateful?



State changes raise the bar.



A read-only diagnostic command is one thing. A tool that creates tickets, deploys services, updates customer data, rotates secrets, or changes infrastructure is another.



For state-changing actions, the interface should make the action hard to misuse. That can be done in a CLI, an MCP server, or both. The question is which interface gives you the better control surface.



A CLI might be right when the state change belongs in a developer-controlled workflow:




  • Apply this migration to my local database

  • Generate this file in my branch

  • Create a release artifact after tests pass



An MCP server might be right when the state change touches an external system:




  • Create an incident

  • Update a CRM record

  • Open a pull request with a structured payload

  • Provision access for a user

  • Trigger a workflow in a deployment platform



For stateful MCP tools, I would avoid generic verbs like run, execute, or update when the action can be modeled more specifically. The tool should say what it does. The input schema should constrain what can happen. The response should include enough structured data for the agent to verify the result.



For stateful CLIs, I want dry-run support, confirmation controls that can be disabled only in explicit automation modes, and output that makes it clear what changed.



The shared principle is the same: the agent should not be guessing.






5. What is the maintenance cost?



Every new interface becomes a product surface.



A CLI needs packaging, versioning, docs, help text, examples, and compatibility guarantees. An MCP server needs all of that plus server lifecycle, transport decisions, schema design, client compatibility, authentication, deployment, monitoring, and operational ownership.



That cost may be worth it. But it should buy something real.



An MCP wrapper around a CLI can be useful when it adds:




  • Better tool descriptions

  • Safer input validation

  • Structured outputs

  • Scoped permissions

  • Shared access across agent clients

  • A stable abstraction over a messy underlying command

  • Resource access the CLI does not provide well



An MCP wrapper is probably not worth it when it only shells out to an existing command and returns the same text output the agent would have seen anyway.



That does not mean “never wrap a CLI.” It means the wrapper should create leverage. If the MCP server is only a thinner, less debuggable path to the same command, keep the CLI and document it well.






The “both” pattern



Many teams should build both, but not as duplicates.



Humans and CI use the CLI, agents use an MCP server, and both call shared core logic while MCP adds policy and schemas.



A good pattern is:




  • The CLI remains the human and CI interface.

  • The MCP server exposes selected capabilities for agents.

  • Shared core logic lives below both interfaces.

  • The MCP server does not become a dumping ground for every CLI command.

  • The CLI does not become an escape hatch for unsafe agent actions.



For example, imagine an internal deployment tool.



The CLI might support the full developer workflow: build, validate, preview, deploy, rollback, inspect logs, and run local checks. It assumes the user is a developer with repo access and deployment permissions.



The MCP server might expose narrower tools: get deployment status, list services, create a preview environment, request a rollback plan, or fetch logs for a specific service. Those tools can have tighter schemas and safer defaults. They can also return structured data that an agent can reason over without parsing terminal output.



Both interfaces can call the same underlying deployment library. They do not need to expose the same surface area.



That separation is healthy. Humans need power tools. Agents need constrained capabilities with clear contracts.






A practical decision guide



Use a CLI when:




  • The task is repo-local or terminal-native

  • Humans need to run it directly

  • CI should run the same interface

  • Shell composition is a feature

  • Text output and exit codes are enough

  • The auth model is already appropriate for the local developer context



Use an MCP server when:




  • The agent needs discoverable tools or resources

  • The task touches an external system

  • Inputs and outputs should be typed

  • Permissions need to be scoped

  • Multiple agent clients should share the same integration

  • The tool should hide implementation details

  • Auditability and policy matter



Use both when:




  • Humans and agents both need the capability

  • The CLI is already valuable

  • The MCP server can expose a safer or more structured subset

  • Shared core logic can prevent drift

  • The agent interface should be stable even if the CLI evolves



Do neither, at least for now, when:




  • The workflow is not understood yet

  • The tool would expose broad credentials without guardrails

  • The “agent use case” is just novelty

  • A README update would solve the immediate problem

  • The maintenance owner is unclear






What this means for the open agentic AI ecosystem



The open agentic AI ecosystem needs standards like MCP. It also needs restraint.



If every team turns every script into an MCP server, agents get a larger tool list but not necessarily better tools. Tool overload is real. Poor descriptions, loose schemas, unsafe side effects, and noisy outputs make agents worse, not better.



The goal is not to make everything agent-accessible. The goal is to make the right capabilities available through the right contract.



That is why this decision matters so much at this particular moment. MCP gives builders a common way to expose tools and context. AGENTS.md gives projects a common place to tell coding agents how to work inside a repo. agentgateway points toward the operational layer teams need when agent traffic becomes production traffic.



These projects are stronger when we use them for the problems they actually solve.



A CLI is not “less agentic” because it runs in a terminal. An MCP server is not “better architecture” because it speaks a protocol. The useful line is simpler:



If the work belongs in the developer workflow, start with a CLI.



If the agent needs a structured, discoverable, permissioned capability, build an MCP server.



If both humans and agents need it, design both surfaces intentionally and keep the shared logic underneath.



That is the rubric. Not CLI versus MCP. CLI where the workflow lives. MCP where the capability needs a contract.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Debate de la comunidad y comentarios

🌐 Unirse al chat principal

Inicia el debate en el stream de difusión del Social Chat o envía arriba una contribución experta mediante el formulario de ampliación.

Valoración de la comunidad & prueba social
⭐ Valoración de los lectores
–
Ø / 5.0
Aún no hay valoraciones de lectores
¿Le ha resultado útil este artículo?
0
Dejar una valoración ahora
Valoración detallada (opcional)
Contenido & calidad
Fuente & credibilidad
Actualidad
Briefing de seguridad Gratis · baja en 1 clic

Intelligence Digest — gratis

Cada día las noticias de seguridad más importantes · baja en cualquier momento

Clústeres de historias relacionados & fuentes (IA vectorial)

2 Cluster
2 fuentes
OpenAI counter-sues Apple over trade secret theft
AppleInsider News hace 2 h
1 fuente más
Artículos similares
🔍 Verwandte News

Auch interessante Nachrichten MCP Server or CLI: A Decision Rubric for Developer Tooling

Thematisch verwandte Begriffe: Server, Decision, Rubric, Developer · 6 Treffer

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

💬 Cargando comentarios…
Desliza para actualizar
Widgets & Topics
Loading widgets…
Nächster Beitrag