# ARNscope and AI agents

Coding agents are good at AWS chores: reading a stack of resources, writing a CLI one-liner, summarising a log. ARNscope does not compete with that. It is the window you open when you need to see the state yourself, decide, and own the change. It also has a [command line and an MCP server](https://arnscope.com/docs/cli), so an agent can work through the app instead of around it.

## What an agent can do through ARNscope

Turn on **Settings → Command line → Allow command-line control** (off by default; a native dialog asks you first), then add the server to your agent, for example `claude mcp add arnscope -- /usr/local/bin/arnscope mcp`. Each tool is one `arnscope` command:

| Area | Tools | Effect |
| --- | --- | --- |
| Status and help | `status`, `help` | Read-only |
| SSM tunnels | `tunnel_list`, `tunnel_start`, `tunnel_stop`, `tunnel_save`, `tunnel_delete` | Start and stop saved tunnels; add new ones; remove ARNscope's saved entry |
| Database connections | `db_list`, `db_save`, `db_delete` | Add or remove saved connections; never a password |
| Alarm widgets | `alarm_pin`, `alarm_unpin` | Pin CloudWatch alarms to the desktop widgets |
| Dashboards | `dashboard_list`, `dashboard_import`, `dashboard_delete` | Add CloudWatch dashboard files to **My dashboards** on your Mac; nothing is created in AWS |
| Parameter Store | `param_list`, `param_get`, `param_history`, `param_diff`, `param_find` | Read-only, across profiles and regions; SecureStrings always print as `"<secure>"` |

Every tool says whether it reads or writes and carries MCP's read-only, destructive and idempotent hints. Every AWS tool requires an explicit profile. Each change shows a notice in the ARNscope window, so you see what the agent did.

A typical use: the agent writes a migration, then calls `tunnel_start` on the staging database tunnel you saved, and you run the query in ARNscope's console; or it diffs `/staging/checkout` against `/prod/checkout` in Parameter Store before a release and tells you which keys differ, without ever seeing a SecureString.

## What it can't do

These limits are in the app, not in a prompt:

- **No changes in AWS or in a database.** There are no tools for SQL, S3, Logs, Lambda, ECS, EC2 or any other page, and no tool deletes anything in AWS. Deletes remove ARNscope's saved entry on your Mac only.
- **No Writes.** The command line cannot turn on Writes or answer a write confirmation. Those are native macOS dialogs, answered by you.
- **No edits, only adds.** A save with an `id` is refused, so an agent cannot repoint a tunnel or connection you already trust.
- **No passwords, no secrets.** A `password` field is refused; SecureStrings are masked with no flag to reveal them.
- **No sharing or keeping tunnels open.** Opening a tunnel's local port to other apps, or keeping it open, is your choice in the app.
- **No turning itself on.** Allowing command-line control takes your confirmation in the app; when a new version can do more, it stays off until you agree again.

Two honest caveats. First, what a tool returns goes to your agent and to its model provider: `param_get` returns the value of a plain `String` parameter, and tunnel and connection lists include host names and ARNs. Second, these limits govern the ARNscope tools. An agent that also has a shell and your AWS profile can run any AWS CLI command your role allows; ARNscope does not change that.

## Why a human-facing tool in an AI workflow

**Check what the agent claims, with your own eyes.** "The deploy is healthy" or "the queue is empty" is a claim. In ARNscope you see the ECS rollout, the dead-letter queue's depth or the Step Functions state that failed, in seconds, across accounts side by side. [Lambda fleet triage](https://arnscope.com/docs/lambda-fleet-triage) ranks every function in the profiles and regions you pick, so a wrong summary is quick to spot.

**Keep a human in the loop for writes.** Agents act fast and occasionally confidently wrong. In ARNscope every write needs Writes on for that profile and region and a native confirmation that names the target, says **PRODUCTION** for production profiles, and for some changes asks twice or has you type the name. See [Writes and confirmations](https://arnscope.com/docs/writes).

**Don't hand long-lived credentials to a model.** ARNscope signs requests in its own backend with your existing profiles. Through its MCP server an agent gets a fixed list of tools and their JSON results, never keys or tokens.

**See the cost before a billed scan.** DuckDB over S3 shows the files and bytes a query can read before it runs, fleet triage shows its CloudWatch cost before it reads, and Logs Insights runs only when you press Run and shows the bytes scanned as it goes. An agent looping over `filter-log-events` or `start-query` does not stop to ask.

**Move fast when the agent is wrong or slow.** At 2am, waiting for an agent to page through CloudTrail is slower than [Investigate](https://arnscope.com/docs/investigate) answering "who deleted this bucket?" in one sentence, or a [Live Tail](https://arnscope.com/docs/logs) you can watch yourself.

**Know what was done.** The [activity log](https://arnscope.com/docs/activity-log) records each change ARNscope made in AWS, a database or a cache, with its outcome, on your Mac, and every command-line action shows a notice in the window.

## When an agent alone is enough

Use the agent on its own when:

- the task is reading and summarising (inventory, tagging reports, cost breakdowns) and nobody acts on it under pressure;
- the change goes through Terraform, CloudFormation or CDK with a plan you review, rather than a click on a live resource;
- it runs in a sandbox or development account with a role that cannot hurt production;
- you are writing code or IaC and only need an API answer or a CLI line.

ARNscope earns its place where a mistake is expensive: production, many accounts, private data stores, billed scans and incidents. See also [ARNscope vs the AWS CLI, MCP servers and Amazon Q](https://arnscope.com/docs/aws-cli-mcp-amazon-q).

## Set it up

1. Turn on **Settings → Command line → Allow command-line control** and link the command (Settings shows the line to copy).
2. Add it to your agent: `claude mcp add arnscope -- /usr/local/bin/arnscope mcp`. It speaks MCP over stdio, so any MCP client works. Clients configured with JSON, such as Claude Desktop and Cursor, take:

   ```json
   {
     "mcpServers": {
       "arnscope": { "command": "/usr/local/bin/arnscope", "args": ["mcp"] }
     }
   }
   ```

3. Add a line to your project's agent instructions, for example: "ARNscope: call `status`, then `help` for a command. Saves only add; deletes remove ARNscope's saved entry, never the AWS resource; never pass passwords."

Every command, field and error is on the [Command line](https://arnscope.com/docs/cli) page.

Source: https://arnscope.com/docs/ai-agents
