Photo by: Uday Veeru
It's 11:47pm. Tomorrow morning you're running a training session people sign up for through a form on your site. Your phone buzzes — a monitoring alert. The form is throwing an error. Someone just tried to sign up and couldn't.
You're already in bed. No laptop within reach, and even if you had one — who wants to be poking around production code at midnight. The easiest thought that comes to mind: give Claude (yes, the same AI you write code with) access to the server. Let it log in, find what's broken, and fix it before you wake up.
Tempting? Sure. Also risky. I have a safer way.
The problem I actually had
Every site I run, I keep as a code repository — this blog, jotBook, a handful of other projects. That's my workshop. When something breaks in production, the real cause almost always lives in the server logs: a stack trace, a 500 error, a request that never closed. Without that context, fixing it is guesswork.
The problem is that the logs live on the server, and Claude works exclusively locally, on my machine — that's the only place it has access to. Every change reaches production only after my review, tests, and deploy. Without access to prod, Claude doesn't have access to the logs from its real behavior either. And that's a deliberate choice. I know people who run AI agents everywhere. I prefer a clear separation.
As a result, when something actually breaks — not in the code on my laptop, but on the live site, with real traffic — I have to roll up my sleeves and, sometimes with Claude's help, track down what's not working, step by step.
Why not SSH
It's not that I don't trust Claude. It's that I don't want to give up control over what reaches production. It's the exact same principle I apply in my TDD workflow — the agent proposes, tests and I decide what ships. SSH flips that completely. An agent with full server access stops being an assistant and becomes an operator. And I don't want an operator I can't see at work.
There's a difference between AI that sees and AI that acts. Seeing, I can give generously — the more context, the better the diagnosis. Acting, I have to keep narrow, because a mistake in action on production isn't a bug in code on my laptop. It's a bug on a live site, with real users — and in the worst case, it can mean a data leak.
MCP as a narrow window, not a key to everything
Instead of SSH, I set up my own MCP server that does exactly one thing: it exposes logs. No terminal, no file access, no way to run a command. One specific, limited tool that Claude can reach for when it's diagnosing a problem.
In practice it looks like this: when I'm working on a site and something's off, Claude can ask for one specific log tied to one specific crash — nothing more. It doesn't browse the whole server. It has no access to anything outside that single, narrowly defined channel. That's the difference between giving someone a window into one room and handing them the keys to the whole building.
That access is secured like any other endpoint — Claude has to authenticate first. The list of sites it can even reach is fixed in advance. The server decides what it serves — Claude has no way to crawl or search anything on its own.
What it looks like in practice
The day-to-day flow is simple. I notice a signal that something's wrong — sometimes on my own, sometimes from a digest I built myself. I open a session with Claude in that site's repo and describe what I'm seeing. If it needs more context than what I've described, it pulls a log through MCP — a stack trace or the error text, trimmed to a dozen or so lines, sometimes a few dozen, so it doesn't flood the conversation's context. Nothing beyond that.
From there, what should always happen happens: Claude proposes a code change, locally, in the repo. I read the diff. If I agree, I build, test, and deploy through my usual flow. If something about the fix doesn't sit right with me, we change approach before anything reaches the server.
In other words: Claude diagnoses faster, because it has real context instead of my vague descriptions of "some 500 error, I think." But I'm still the one who hits deploy.
Control, not YOLO
The easiest version of this story would be "AI fixes my site by itself, because it's sitting right there on the server."
That's not this story.
This is a story about the boundary I deliberately drew between "AI can see this" and "AI can do this".
Because vibe coding has its place in a prototype or a weekend project, but production that people depend on is not the place for "let's see what AI does if I give it free rein."
That's a place for engineering: clear boundaries, scoped permissions, checkpoints where a human looks and decides.
The more I work with AI agents, the more I believe the best systems aren't the ones that do the most on their own. They're the ones where you've deliberately decided where the agent's autonomy ends and your responsibility begins. I drew my line at the logs. See — yes. Act on production for me — no.
Because AI is only a tool, and you are its operator.




