Agentic AI DevOps: Operations Agent: Claude Code Desktop
Recap of the previous session
- Calling an LLM with LangChain
- Building the Operations Agent with LangChain
- Claude Desktop Chat vs Claude Code
- Using Claude Code vs Building and Deploying an Agent
In this session
- Claude Code Desktop as a Ready-Made Agent
- How a Question Is Answered
- Spec, Skills, MCP Servers and Guardrails
- Plugins and Marketplaces
In one sentence: Claude Code Desktop already has the agent, so you only give it your tools, your know-how and your limits, and package them as a plugin.
1. The agent is already built
Until now you built the agent yourself, by hand or with a framework. Claude Code Desktop comes with the chat window, the model calls, the agent loop and the MCP client. You write no agent code. You add:
| You add | What it gives the agent |
|---|---|
| MCP servers | The tools it can run |
| Skills | The steps to follow for each kind of task |
| Guardrails | What it may and may not do |
The example is an Operations Agent for an online shop, edshopper. An operations engineer asks in plain English instead of searching dashboards, logs and kubectl output: is the application healthy, what is failing, and why?
When this fits
- It fits a helper that runs on your own machine. Teammates can use the same setup, each on theirs.
- If many clients must call one central agent, build and deploy your agent to a server, for example Kubernetes.
- If it must check things on a schedule, for example every five minutes, and never miss a run, also deploy it. A schedule on your laptop only runs while the app is open and the laptop is awake.
2. How one question is answered

The flow of the question “Why is the cart restarting?” in eight steps: you ask, a skill is matched, a tool is chosen, the guardrails are checked, the MCP server runs it, the result is read, the loop repeats, and the answer is given
- You ask in a session opened on the agent folder.
- A skill is matched. Claude compares your words with the skill descriptions. Here it picks
investigate. One question can use more than one skill. - A tool is chosen from the MCP servers, guided by the skill.
- The guardrails are checked. A read runs. A restart asks you first.
- The MCP server runs the tool against your cluster, dashboards or logs.
- Claude reads the result.
- The loop repeats. If more evidence is needed, another tool runs.
- You get the answer, with the evidence behind it.
The loop is built in. The steps are not a fixed program: Claude chooses each next step from what it has just seen.
3. The building blocks
Spec: what, and why
The spec (spec.md) describes the project: the goal, what is in scope and what is not. For example: this agent reads and investigates; it does not deploy, create resources or send messages.
The agent does not depend on the spec to answer. It is written for people: anyone opening the project later understands what the agent is for. It is a good practice, much like a README file.
Skills: how
A skill is a file named SKILL.md, written in plain English. It is your runbook. Think of what you would tell a junior engineer who asks where to look when a pod restarts.
A skill for logs would say:
- which CloudWatch log group holds the application logs,
- which tools and queries to use,
- the default time range (for example, the last 30 minutes).
The agent can often work these out by itself. With a skill it does not have to guess, it follows your project’s way, and the quality of the answers improves.
The example project starts with three skills: logs, investigate and health check. A health check also needs to know what “unhealthy” means. Write your own thresholds in a file beside the skill, for example “three or more restarts in an hour”. Without them, the model uses its own judgement.
| Document | Answers | Read by |
|---|---|---|
| Spec | What the agent is for, and why | People |
| Skill (runbook) | How to do one task | The agent, when the task matches |
MCP servers: the tools
The agent reaches your systems through three MCP servers:
| MCP server | Gives the agent | Where it comes from |
|---|---|---|
| Kubernetes | Deployments, pods, pod logs, events, restart | Your own (built in an earlier session) |
| Grafana | CPU and memory over time | Grafana’s MCP server |
| CloudWatch | Application logs | The AWS Labs MCP server |
- You build your own when you need to, and use the vendor’s when it already offers the tools you need. Check its documentation for the list of tools. A vendor server needs only its settings, such as the Grafana URL and token.
uvxdownloads and runs a Python tool without installing it into your project.
No port needed this time. MCP has two common transports:
| Transport | Use it when | How the server runs |
|---|---|---|
| Streamable HTTP | The client calls the server over the network | You start it, and it listens on a port |
| stdio | Client and server are on the same machine | The client starts it and talks through standard input and output |
Claude Code Desktop and these servers are all on your laptop, so they use stdio. You do not start them yourself: Claude Code starts them when your session begins.
Guardrails: the limits
Guardrails say what the agent may do:

The hook here blocks AWS and Kubernetes commands in the shell. Claude Code runs on your machine and could run kubectl or the aws command directly. You do not want that:
- Through MCP, the agent can do only what the registered tools allow. No tool to delete means no delete through that server.
- Through the shell, it could attempt any command your login allows.
Instructions are guidance. Permissions and hooks are enforced by Claude Code. Having the access is not enough: if your guardrails say no restart, the agent should not restart.
4. Plugins and marketplaces
A plugin is a package of type “plugin”: a folder that holds the MCP server settings, the skills and the hooks together. It is not a single built file like a Java JAR. Install the plugin, and Claude Code gets all of them in one step.
A marketplace is the catalogue that lists plugins and the folder each one comes from. One project can list several plugins in it, for example operations, deployment and FinOps.
You could register each MCP server and skill one by one, but a plugin keeps them together. Commit it to Git, and a teammate clones the repository, installs the plugin and starts asking.
Names Claude Code looks for
Folder and file names matter: Claude Code finds things by them.
| Name | What it is |
|---|---|
marketplace/.claude-plugin/marketplace.json |
The marketplace and its list of plugins |
.claude-plugin/plugin.json (in the plugin folder) |
The plugin’s details. name is required; version and description are good to add |
skills/NAME/SKILL.md |
One skill |
.mcp.json |
Which MCP servers there are, and the command that starts each |
hooks/hooks.json |
When to run each hook |
.claude/settings.json (in the agent folder) |
The permissions |
spec.md and guardrails.md are documents for people. They are not names Claude Code looks for.
The three servers share one small start script, run.sh. .mcp.json calls it once for each server, saying which one to start. The script is your own idea; .mcp.json is how Claude Code learns about it.
5. Questions from the session
If an agent changes something by mistake, how do you find out who did it?
In AWS, CloudTrail records the API calls. This operations agent is built mainly to read. For an agent that makes infrastructure changes, do not let it act on the environment directly. Let it write Terraform and open a pull request. After the merge, your pipeline applies it, and Git keeps the history for any audit.
Do you have to tell the agent which tool to use?
No. It can discover the tools itself. Naming them in a skill makes the choice easier and more consistent.
Next: installing the plugin in Claude Code Desktop, a demo, a health page skill, and how to write a good skill.
Summary
Key takeaways
- Claude Code Desktop is a ready-made agent: add MCP servers, skills and guardrails.
- A question flows: skill → tool → guardrail check → MCP server → result, repeating until there is an answer.
- The spec says what and why; a skill says how, like a runbook.
- Use MCP servers, not shell commands, to reach your systems.
- A plugin packages it all; a marketplace lists plugins; Git shares them.
- For a central or always-on agent, build and deploy instead.
Quick revision
| Term | Meaning |
|---|---|
| Spec | What the agent is for and what is out of scope |
| Skill | Plain-English steps for one task |
| Guardrails | Instructions, permissions and hooks that limit the agent |
| Hook | A check that runs before a tool call |
| stdio | The transport for a server on your own machine |
| Plugin | A folder that packages MCP settings, skills and hooks |
| Marketplace | A catalogue of plugins |
