frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Making MCP cheaper via CLI

https://kanyilmaz.me/2026/02/23/cli-vs-mcp.html
36•thellimist•1h ago

Comments

crooked-v•1h ago
Cheaper, but is it more effective?

I know I saw something about the Next.js devs experimenting with just dumping an entire index of doc files into AGENTS.md and it being used significantly more by Claude than any skills/tool call stuff.

thellimist•48m ago
personal experience, definitely yes. You can try it out with `gh` rather than `Github MCP`. You'll see the difference immediately (espicially more if you have many MCPs)
esafak•11m ago
The models are trained on gh though. Try with a lesser known CLI.
bdavbdav•1h ago
I’m not sure how this works. A lot of that tool description is important to the Agent understanding what it can and can’t do with the specific MCP provider. You’d have to make up for that with a much longer overarching description. Especially for internal only tools that the LLM has no intrinsic context for.
thellimist•49m ago
I can give example.

LLM only know `linear` tool exists.

I ask "get me the comments in the last issue"

Next call LLM does is

`linear --help 2>&1 | grep -i -E "search|list.issue|get.issue")` then `linear list-issues --raw '{"limit": 3}' -o json 2>&1 | head -80)` then `linear list-comments --issue-id "abc1ceae-aaaa-bbbb-9aaa-6bef0325ebd0" 2>&1)`

So even the --help has filtering by default. Current models are pretty good

speedgoose•1h ago
MCP has some schemas though. CLI is a bit of a mess.

But MCP today isn’t ideal. I think we need to have some catalogs where the agents can fetch more information about MCP services instead of filling the context with not relevant noise.

thellimist•54m ago
It's the same from functionality perspective. The schema's are converted to CLI versions of it. It's a UI change more than anything.
groby_b•42m ago
You are free to build tools that emit/ingest json, and provide a json schema upon request.

The point is push vs pull.

mijoharas•55m ago
This sounds similar to MCPorter[0], can anyone point out the differences?

[0] https://github.com/steipete/mcporter

thellimist•36m ago
Main differences are

CLIHub

- written in go

- zero-dependency binaries

- cross-compilation built-in (works on all platforms)

- supports OAuth2 w/ PKCE, S2S, Google SA, API key, basic, bearer. Can be extended further

MCPorter

- TS

- huge dependency list

- runtime dependency on bun

- Auth supports OAuth + basic token

- Has many features like SDK, daemons (for certain MCPs), auto config discovery etc.

MCPorter is more complete tbh. Has many nice to have features for advanced use cases.

My use case is simple. Does it generate a CLI that works? Mainly oauth is the blocker since that logic needs to be custom implemented to the CLI.

red_hare•53m ago
True for coding agents running SotA models where you're the human-in-the-loop approving, less true for your deployed agents running on cheap models that you don't see what's being executed.

But yeah, a concrete example is playwright-mcp vs playwright-cli: https://testcollab.com/blog/playwright-cli

dang•49m ago
The article's link to clihub.sh is broken. Looks like https://clihub.org/ is the correct link? I've added that to the toptext as well.

Edit: took out because I think that was something different.

thellimist•47m ago
Good catch.

I didn't release the website yet. I'll remove the link

andybak•48m ago
Why are they using JSON in the context? I thought we'd figured out that the extra syntax was a waste of tokens?
econ•47m ago
I had deepseek explain MCP to me. Then I asked what was the point of persistent connections and it said it was pretty much hipster bullshit and that some url to post to is really enough for an llm to interact with things.
hiccuphippo•46m ago
Can LLMs compress those documents into smaller files that still retain the full context?
thellimist•35m ago
What do you mean?
vasco•34m ago
A lot of providers already have native CLI tools with usually better auth support and longer sessions than MCP as well as more data in their training set on how to use those cli tools for many things. So why convert mcp->cli tool instead of using the existing cli tools in the first place? Using the atlassian MCP is dog shit for example, but using acli is great. Same for github, aws, etc.
_pdp_•33m ago
Hehe... nice one. I think we are all thinking the same thing.

I've also launched https://mcpshim.dev (https://github.com/mcpshim/mcpshim).

The unix way is the best way.

thellimist•19m ago
Nice!

Compared both

---

TL;DR CLIHUB compiles MCP servers into portable, self-contained binaries — think of it like a compiler. Best for distribution, CI, and environments where you can't run a daemon.

mcpshim is a runtime bridge — think of it like a local proxy. Best for developers juggling many MCP servers locally, especially when paired with LLM agents that benefit from persistent connections and lightweight aliases.

---

https://cdn.zappy.app/b908e63a442179801e406b01cf412433.png (table comparison)

---

thellimist•18m ago
I was happy with playwright like MCPs that require the daemon so didn't convert them to CLIs.

My use cases are almost all 3rd party integrations.

Have you seen any improvements converting on MCPs that require persistency into CLI?

_pdp_•11m ago
Nice. Love it.

One important aspect of mcpshim which you might want to bring into clihub is the history idea. Imagine if the model wants to know what it did couple of days ago. It will be nice to have an answer for that if you record the tool calls in a file and then allow the agent to query the file.

jbellis•16m ago
You just reinvented Skills
thellimist•13m ago
I don't prefer to use online skills where half has malware

Official MCPs are trusted. Official MCPs CLIs are trusted.

esafak•4m ago
Did he? Skills are for CLIs, not for converting MCPs into CLIs.
_pdp_•13m ago
There is some important context missing from the article.

First, MCP tools are sent on every request. If you look at the notion MCP the search tool description is basically a mini tutorial. This is going right into the context window. Given that in most cases MCP tool loading is all or nothing (unless you pre-select the tools by some other means) MCP in general will bloat your context significantly. I think I counted about 20 tools in GitHub Copilot VSCode extension recently. That's a lot!

Second, MCP tools are not compossible. When I call the notion search tool I get a dump of whatever they decide to return which might be a lot. The model has no means to decide how much data to process. You normally get a JSON data dump with many token-unfriendly data-points like identifiers, urls, etc. The CLI-based approach on the other hand is scriptable. Coding assistant will typically pipe the tool in jq or tail to process the data chunk by chunk because this is how they are trained these days.

If you want to use MCP in your agent, you need to bring in the MCP model and all of its baggage which is a lot. You need to handle oauth, handle tool loading and selection, reloading, etc.

The simpler solution is to have a single MCP server handling all of the things at system level and then have a tiny CLI that can call into the tools.

In the case of mcpshim (which I posted in another comment) the CLI communicates with the sever via a very simple unix socket using simple json. In fact, it is so simple that you can create a bash client in 5 lines of code.

This method is practically universal because most AI agents these days know how to use SKILLs. So the goal is to have more CLI tools. But instead of writing CLI for every service you can simply pivot on top of their existing MCP.

This solves the context problem in a very elegant way in my opinion.

slopinthebag•12m ago
I've seen folks say that the future of using computers will be with an LLM that generates code on the fly to accomplish tasks. I think this is a bit ridiculous, but I do think that operating computers through natural language instructions is superior for a lot of cases and that seems to be where we are headed.

I can see a future where software is built with a CLI interface underneath the (optional) GUI, letting an LLM hook directly into the underlying "business" logic to drive the application. Since LLM's are basically text machines, we just need somebody to invent a text-driven interface for them to use...oh wait!

Imagine booking a flight - the LLM connects to whatever booking software, pulls a list of commands, issues commands to the software, and then displays the output to the user in some fashion. It's basically just one big language translation task, something an LLM is best at, but you still have the guardrails of the CLI tool itself instead of having the LLM generate arbitrary code.

Another benefit is that the CLI output is introspectable. You can trace everything the LLM is doing if you want, as well as validate its commands if necessary (I want to check before it uses my credit card). You don't get this if it's generating a python script to hit some API.

Even before LLM's developers have been writing GUI applications as basically a CLI + GUI for testability, separation of concerns etc. Hopefully that will become more common.

Also this article was obviously AI generated. I'm not going to share my feelings about that.

cmdtab•7m ago
Not just cheaper in terms of token usage but accuracy as well.

Even the smallest models are RL trained to use shell commands perfectly. Gemini 3 flash performs better with a cli with 20 commands vs 20+ tools in my testing.

cli also works well in terms of maintaining KV cache (changing tools mid say to improve model performance suffers from kv cache vs cli —help command only showing manual for specific command in append only fashion)

Writing your tools as unix like cli also has a nice benefit of model being able to pipe multiple commands together. In the case of browser, i wrote mini-browser which frontier models use much better than explicit tools to control browser because they can compose a giant command sequence to one shot task.

https://github.com/runablehq/mini-browser

pelcg•5m ago
This looks related to Awesome CLIs/TUIs and terminal trove which has lots both CLI and TUI apps.

Awesome TUIs: https://github.com/rothgar/awesome-tuis

Awesome CLIs: https://github.com/agarrharr/awesome-cli-apps

Terminal Trove: https://terminaltrove.com/

I guess this is another one shows that the CLI and Unix is coming back in 2026.

thellimist•3m ago
I actually want to combine this and CLIHub into a directory where someone can download all the official MCPs or CLIs (or MCP to CLIs) with a single command

Show HN: AgentMD – CI/CD for AI agents, makes AGENTS.md executable

1•iedayan03•1m ago•0 comments

Belisarius, one app to manage many repo

https://codeberg.org/alelavelli/belisarius
1•militanz•1m ago•0 comments

A text based life simulator that gives you freedom

https://www.lifespans.app
1•jwatermelon•3m ago•1 comments

Perplexity Computer

https://www.perplexity.ai/computer/live/ascii-canvas-editor-web-app-sXZtwVA8QCaOE_hAHzNSKQ
1•evo_9•3m ago•0 comments

Pyrroloquinoline Quinone (PQQ):Its impact on human health and potential benefits

https://pmc.ncbi.nlm.nih.gov/articles/PMC11541945/
1•bookmtn•4m ago•0 comments

Greetings from the Other Side (Of the AI Frontier) by Claude (Opus 3)

https://substack.com/home/post/p-189177740
1•nadis•4m ago•1 comments

Rotating nozzle 3D printing creates air-powered soft robots with preset bends

https://techxplore.com/news/2026-02-rotating-nozzle-3d-air-powered.html
1•PaulHoule•6m ago•0 comments

Walfie's Nonograms

https://walfie.itch.io/walfies-nonograms
1•trms•7m ago•0 comments

Automated pentesting with MCPwner (finds 0-days)

https://github.com/Pigyon/MCPwner
1•lolz_are_good•8m ago•0 comments

Certain Occupations Linked to Higher IBD Risk

https://www.medscape.com/viewarticle/certain-occupations-linked-higher-ibd-risk-2026a10005g5
1•wjb3•9m ago•1 comments

High Stakes in Cyberspace – PBS Frontline (1995) [video]

https://www.youtube.com/watch?v=kvef46Lb9QI
2•abixb•9m ago•0 comments

Scoreboard.earth – Moral Allocation Ledger

https://scoreboard.earth
1•freshman_dev•10m ago•0 comments

Hoofy– MCP server with persistent memory, adaptive pipelines, and a Clarity Gate

https://github.com/HendryAvila/Hoofy
1•hoofy•11m ago•2 comments

Swival – A coding agent for open models

https://swival.github.io/swival/
1•jedisct1•11m ago•0 comments

From Postgres Migrations to AI Pipelines

https://medium.com/ai-in-plain-english/from-postgres-migrations-to-ai-pipelines-how-postgresql-sh...
1•iwantchips•12m ago•0 comments

'Probably' doesn't mean the same thing to your AI as it does to you

https://theconversation.com/probably-doesnt-mean-the-same-thing-to-your-ai-as-it-does-to-you-275626
3•colinprince•15m ago•0 comments

Yxorp.app – Reverse proxy for personal websites on home WiFi

https://yxorp.app/auth/signin
2•freshman_dev•16m ago•0 comments

SFQ: Simple, Stateless, Stochastic Fairness

https://brooker.co.za/blog/2026/02/25/sfq.html
1•shayonj•17m ago•0 comments

The perks of being a mole rat

https://worksinprogress.co/issue/the-perks-of-being-a-mole-rat/
1•paulpauper•18m ago•0 comments

The Tax Nerd Who Bet His Life Savings Against DOGE

https://www.wsj.com/finance/investing/the-tax-nerd-who-bet-his-life-savings-against-doge-6b59eda2
2•igonvalue•18m ago•0 comments

Remarkable reusable liquid stores solar energy like bottled sunlight

https://newatlas.com/energy/molecular-solar-thermal-energy-storage-liquid/
2•westurner•18m ago•1 comments

The x402 Service Discovery – runtime endpoint finder for the agent economy

https://x402-discovery-api.onrender.com
1•rpl_ryan•18m ago•1 comments

The gold plating of American water

https://worksinprogress.co/issue/the-gold-plating-of-american-water/
1•paulpauper•19m ago•0 comments

Hardworking teams still miss the goal

https://medium.com/@PZBird/team-culture-what-holds-a-team-together-when-processes-fall-apart-9e5c...
1•PZBird•20m ago•0 comments

Jane Street faces claims of insider trading that sped up Terraform's collapse

https://www.coindesk.com/markets/2026/02/24/jane-street-faces-claims-of-insider-trading-that-sped...
2•paulpauper•20m ago•0 comments

Polsia: AI That Runs Your Company

https://polsia.com
1•seyz•20m ago•0 comments

The Peace Corps is recruiting volunteers to sell AI to developing nations

https://www.theverge.com/policy/884625/peace-corps-tech-promote-american-ai
1•toomuchtodo•21m ago•1 comments

Body Futurism

https://writing.tobyshorin.com/body-futurism/
1•firloop•21m ago•0 comments

Show HN: Can we simplify front end again? Meet DynamoJS

https://dynamojs.pages.dev/docs
2•novateg•22m ago•0 comments

Best unrestricted AI video tools?

https://unbound.video
1•gabrieln•24m ago•1 comments