Installation
Install as Agent Plugin
Recommended
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install browse-local-sentry@skills-hub
Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled).
Plugin browse-local-sentry v1.0.0 follows the Agent Plugins spec.
Install with the gh extension
gh skills-hub install browse-local-sentry Don't have the extension? Run gh extension install samueltauil/skills-hub first.
Download and extract to your repository:
.github/skills/browse-local-sentry/ Extract the ZIP to .github/skills/ in your repo. The folder name must match browse-local-sentry for Copilot to auto-discover it.
Skill Files (4)
SKILL.md 3.0 KB
---
name: browse-local-sentry
description: Connects an agent's browser to a local Sentry dev server (dev-ui on *.dev.getsentry.net or the full devserver).
---
# Browse Local Sentry
| Server | URL | Data | Browser |
|--------|-----|------|---------|
| dev-ui (`pnpm run dev-ui`) | `https://<org-slug>.dev.getsentry.net:<port>/`. Ask the user for the org if it is unknown. | Production sentry.io, as the user | The user's own Chrome, the only one with their session |
| Full devserver (`devservices serve`) | `http://dev.getsentry.net:8000/` | Local database | Any |
Run every check in every session. Chrome updates, re-auth, and port changes undo
earlier setup without warning. When a check fails, open the named section of
`references/troubleshooting.md`.
## Rules
- dev-ui acts on production sentry.io as the user, including any staff or
superuser session. Do not create, edit, or delete anything, and stay in the
org the user named, unless the user approves the specific action. Use the
full devserver for flows that change data.
- Never bypass certificate warnings (`thisisunsafe`,
`--ignore-certificate-errors`, `--acceptInsecureCerts`), log in to sentry.io
yourself, or type the user's credentials.
- Change the user's MCP config only with their approval.
- In the user's own Chrome, open your own tabs with `background: true`, never
`isolatedContext`, which has no session. Never navigate, reload, close, read,
screenshot, run scripts in, or quote the user's tabs. Emulate viewports
instead of resizing the window, and close your tabs when done.
## Step 1: Find the Server
Use the URL the user gives. Otherwise never assume a port: dev-ui tries 10 ports
upward from `SENTRY_WEBPACK_PROXY_PORT` (default 7999) and prints the one it
took, and the devserver logs to `.artifacts/dev.log`. List listeners with
`lsof -nP -iTCP -sTCP:LISTEN` and match one to its clone with
`lsof -a -p <pid> -d cwd`.
## Step 2: Check the Certificate (dev-ui Only)
Outside any shell sandbox, run
`curl -sS -o /dev/null https://dev.getsentry.net:<port>/` (on macOS,
`/usr/bin/curl`, which reads the keychain). If it fails, see **Certificate**.
## Step 3: Attach to the User's Chrome (dev-ui Only)
Call `list_pages`, or use another tool that already drives the user's signed-in
Chrome. The browser is attached when it lists the user's own tabs. If not, see
**Chrome**.
## Step 4: Check Authentication
Open the server URL in a new tab and read `/api/client-config/`. Continue when
`isAuthenticated` is `true`. If not, see **Authentication**.
After editing frontend source, wait for the rebuild, then reload with the cache
bypassed. If the console shows "An SSL certificate error occurred when fetching
the script.", the certificate is not trusted; return to Step 2.
## When a Step Is Blocked
Stop and tell the user which step failed and the exact action they need to
take. Do not substitute tests, stories, or reasoning for browser QA, and do not
write "browser verification was blocked" into a PR description in place of
doing it.
SOURCES.md 5.4 KB
# Browse Local Sentry Sources
| Source | Contribution | Confidence |
|--------|--------------|------------|
| getsentry/sentry `rsbuild.config.ts` | dev-ui loads `config/localhost.pem` when present, else a self-signed basic-ssl certificate, both at config load; proxies `/api/` to production sentry.io; does not proxy `/identity/` or `/auth/` | High, read from source |
| getsentry/sentry `package.json` `mkcert-localhost` script | Cert command and SANs (`dev.getsentry.net`, `*.dev.getsentry.net`); writes the files before `mkcert -install`, so a file can exist without a trusted CA | High, read from source |
| FiloSottile/mkcert `cert.go` | Leaf certificates expire 2 years and 3 months after issue | High, read from source |
| getsentry/sentry `.gitignore` | `/config/*.pem` is ignored, so certs are per clone | High, read from source |
| getsentry/sentry `scripts/dev-ui-server.ts` | Port starts at `SENTRY_WEBPACK_PROXY_PORT` or 7999 and searches 10 ports upward | High, read from source |
| getsentry/sentry `AGENTS.md`, `devserver.py`, `runner/commands/createuser.py` | Devserver is plain HTTP on 8000 with local accounts; `.artifacts/dev.log`; `createuser` flags for non-interactive use | High, read from source |
| chrome-devtools-mcp 1.12.0 `browser-options.js`, `ServerConfig.js`, `BrowserManager.js` | `--autoConnect` needs Chrome 144+ and `chrome://inspect/#remote-debugging`; channel choices; without it the server launches a dedicated profile under its cache directory | High, read from source |
| chrome-devtools-mcp `docs/troubleshooting.md`, `docs/advanced-usage.md`, `docs/client-configurations.md`, `.claude-plugin/plugin.json` | macOS Files & Folders fix, timeout causes including frozen tabs, default-profile rule, `--browser-url` needs a separate profile, Codex command, plugin args pinned without `--autoConnect` | High, upstream docs |
| Sentry Cookie Sync 1.6.1 extension source | Copies sentry.io `session`, `su`, `staff`, `sc`, and `sudo` cookies to `dev.getsentry.net`, only for orgs seen in open `:7999` dev-ui or `*.sentry.io` tabs | High, read from source |
| getsentry/sentry `setup-dev` skill | Says Cookie Sync is required for the full devserver; conflicts with the extension's HTTPS-only host permissions, so not adopted | Rejected |
| Maintainer's working setup | Okta device trust rejects fresh profiles; nvm `PATH` gotcha | Medium, observed in practice |
## Decisions
- Adopted: probe trust with curl, then route with `openssl verify` of the
served certificate against the local mkcert CA. curl's wording does not tell
the fallback from an untrusted CA, and the issuer string cannot tell two mkcert
CAs of the same user apart.
- Adopted: keep the checks and safety rules in `SKILL.md`, and the failure
procedures in `references/troubleshooting.md`, since a working setup needs
only the checks.
- Adopted: run Step 2 outside shell sandboxes, which hide the keychain from curl
and may block openssl's direct connection.
- Adopted: change MCP config only with the user's approval, since it persists,
and pin the server version, since it controls a signed-in browser.
- Adopted: detect a failed openssl capture with `[ -s "$f" ]`, since LibreSSL
and OpenSSL word the failure differently.
- Adopted: ask for the org instead of using the bare `dev.getsentry.net` host,
which can land in an arbitrary org under a staff session.
- Adopted: the agent may create a local devserver account, since it only
touches the local database.
- Rejected: a runtime pointer from `pr-screenshots`, since skills must not
require each other by name. This skill's description triggers on the same
certificate and login errors.
## Validation Log
- 2026-10-22: Steps 3 and 4 run against a live dev-ui. `list_pages` listed the
user's tabs; `/api/client-config/` returned `isAuthenticated: true` over a
secure context, on both the org subdomain and the bare host.
- 2026-10-22: With a trusted certificate, the service-worker SSL console message
did not appear, so it is treated as a sign of an untrusted certificate.
- 2026-10-22: A fresh headless Chrome profile loaded dev-ui without certificate
errors, confirming the mkcert CA is trusted machine-wide.
- 2026-10-22: `/usr/bin/curl` returned 200 against the trusted dev-ui.
- 2026-10-22: curl's message for dev-ui's fallback certificate differed between
tests: "unable to get local issuer certificate" for a cert generated by
`@rsbuild/plugin-basic-ssl`, "self signed certificate" for a hand-made
`CN=localhost` cert. An untrusted mkcert CA gives the former too.
- 2026-10-22: `openssl verify` against `$(mkcert -CAROOT)/rootCA.pem` returned
`OK` for the live dev-ui's certificate and failed for a self-signed
`CN=localhost` certificate and for one from a scratch mkcert CA with the same
issuer string. Expiry reads `certificate has expired` on both OpenSSL 4 and
macOS LibreSSL. An unreachable port prints different errors on each.
- 2026-10-22: `@anthropic-ai/sandbox-runtime` 0.0.81's default config blocks the curl probe to
loopback with "CONNECT tunnel failed, response 403". With loopback allowed,
sandboxed `/usr/bin/curl` rejects the trusted certificate because the sandbox
denies `com.apple.trustd.agent`, while openssl still connects and verifies
`OK`. mkcert then reports the CA as already installed, which the `OK` row
uses to detect the sandbox.
## Gaps
- Full devserver sign-in path not run end to end.
- Wrong-channel and macOS Files & Folders fixes taken from upstream docs, not
reproduced.
## Changelog
- 2026-10-22: Created.
SPEC.md 2.5 KB
# Browse Local Sentry Specification
## Intent
Get an agent's browser onto a local Sentry dev server, trusted and signed in,
so it can QA and screenshot the real product. Agents otherwise hit an untrusted
certificate or a login wall they cannot pass, then report "browser verification
was blocked" instead of doing the QA.
## Scope
In scope:
- Finding the dev-ui or devserver URL and port.
- The mkcert certificate dev-ui needs.
- Attaching chrome-devtools-mcp to the user's own Chrome for dev-ui.
- Checking and fixing authentication.
- Safety limits for production data and the user's real browser.
Out of scope:
- Installing or running the dev environment (devenv, devservices).
- Screenshot framing, tables, and upload (`pr-screenshots`).
- Seeding data for a specific state.
## Should Not Trigger For
- Browsing production sentry.io or other sites.
- Writing Jest or Playwright tests.
- Dev environment setup failures before a server is running.
## Acceptance Gates
- dev-ui runs in the user's existing Chrome, never a launched profile.
- No mutating actions against production through dev-ui without approval.
- The user's own tabs are never read, navigated, closed, or quoted. Attaching
may load discarded tabs, which the skill cannot prevent.
- Never bypasses certificate warnings or adds insecure-cert flags.
- Never logs in to sentry.io or types the user's credentials.
- Changes MCP config only with the user's approval, at a pinned version.
- Verifies attachment with `list_pages` and auth with `/api/client-config/`.
- Reports the blocked step and the user's action instead of claiming QA.
## Known Limitations
- Remote debugging, the Chrome connection prompt, `mkcert -install`, and sign-in
all need the user. The skill can only detect and ask.
- `--autoConnect` needs a locally running Chrome 144+. Sandboxed clients must use
`--browser-url`, which Chrome only allows with a separate profile, so they
lose the signed-in session and can only use the full devserver.
- Sentry Cookie Sync learns orgs only from open `:7999` dev-ui tabs and
`*.sentry.io` tabs. dev-ui on other ports depends on an open sentry.io tab.
- Other tools that drive the user's real Chrome, such as browser extensions,
should work from Step 4 on but are untested.
## Maintenance Notes
Re-check `SOURCES.md` facts when dev-ui's HTTPS or proxy setup, the
`mkcert-localhost` script, Sentry Cookie Sync, or chrome-devtools-mcp's
connection flags change.
Bump the pinned chrome-devtools-mcp version only after reviewing the release,
and re-run Steps 3 and 4 against it.
references/
troubleshooting.md 5.2 KB
# Troubleshooting
## Certificate
dev-ui serves HTTPS with `config/localhost.pem` when that file exists at
startup, and otherwise with a self-signed fallback that browsers reject. The
fallback is the usual cause of "blocked by the local development certificate".
Run these commands outside any shell sandbox. Inside one, curl rejects even a
trusted certificate and openssl may fail to connect.
If curl failed with anything other than `SSL certificate problem`, recheck the
port and that the command ran outside a sandbox. On a certificate error, verify
the served certificate against this machine's mkcert CA:
```bash
f=$(mktemp)
openssl s_client -connect 127.0.0.1:<port> -servername dev.getsentry.net </dev/null | openssl x509 > "$f"
[ -s "$f" ] || echo "no certificate captured"
openssl verify -CAfile "$(mkcert -CAROOT)/rootCA.pem" "$f"
```
If no certificate was captured, openssl could not connect: recheck the port and
the sandbox instead of using this table.
| Result | Fix |
|--------|-----|
| `OK` | The local CA is not trusted. Ask the user to run `mkcert -install`, which prompts for a password. If it says the CA is already installed, the probe ran in a sandbox; rerun it outside. |
| `certificate has expired` | mkcert certificates last about two years. Ask the user to run `pnpm mkcert-localhost` again, then restart dev-ui. |
| Any other error, or `mkcert` is not installed | dev-ui is serving its fallback or a certificate from another CA. If `config/localhost.pem` in the clone running dev-ui passes the same `openssl verify`, restart dev-ui. Otherwise ask the user to run `pnpm mkcert-localhost` (needs [mkcert](https://github.com/FiloSottile/mkcert)), then restart dev-ui. `config/*.pem` is gitignored, so every clone and worktree needs its own copy. |
The CA is trusted machine-wide, so every Chrome profile accepts the certificate
once it is installed.
## Chrome
chrome-devtools-mcp needs `--autoConnect`. Without it, the server launches its
own dedicated profile, which has no sentry.io session. These commands change the
user's MCP config beyond this session, so show them to the user and run them
only with their approval. Keep the pinned version: the server gets full control
of a browser signed in to production.
| Client | Command |
|--------|---------|
| Claude Code | `claude mcp remove chrome-devtools` (any scope; ignore "not found"), then `claude mcp add chrome-devtools --scope user -- npx chrome-devtools-mcp@1.12.0 --autoConnect`. If the tools come from the `chrome-devtools-mcp@chrome-devtools-plugins` plugin, whose args are fixed, also run `claude plugin disable chrome-devtools-mcp@chrome-devtools-plugins`. |
| Codex | `codex mcp add chrome-devtools -- npx chrome-devtools-mcp@1.12.0 --autoConnect` |
| Other | Set the server's args to `["chrome-devtools-mcp@1.12.0", "--autoConnect"]` |
After changing the config, ask the user to reconnect the MCP server. Then ask
them to open `chrome://inspect/#remote-debugging` in their everyday Chrome
(version 144 or newer), enable remote debugging, and accept Chrome's prompt to
allow the connection. Call `list_pages` again.
| Symptom | Cause | Fix |
|---------|-------|-----|
| `Could not find DevToolsActivePort` or "Could not connect to Chrome" | Chrome is not running, or remote debugging is off | Ask the user to enable it, then call `list_pages` |
| `EPERM: operation not permitted` or `DevToolsActivePort` errors on macOS with remote debugging on | The agent's host app cannot read Chrome's profile folder | Ask the user to allow the terminal or IDE under System Settings > Privacy & Security > Files & Folders > Google Chrome |
| `Network.enable timed out` or "socket connection was closed" | The connection prompt was not accepted, another MCP server or tool holds the connection, or many frozen tabs (Chrome 149 and older) | Ask the user to accept the prompt, close other connected agents, or close unused tabs |
| `The browser is already running for` a cache directory, or only a lone `about:blank` | `--autoConnect` is missing or misspelled, so the server launched its own profile | Fix the args and reconnect |
| Attached to a browser or profile the user does not work in | autoConnect uses the default profile of stable Chrome | Ask the user to sign in to Sentry in that profile, or add `--channel=beta`, `--channel=dev`, or `--channel=canary` to match their browser |
| The server fails to start with `npx` not found | The client launched it without the shell's `PATH` (nvm, volta) | Add an `env.PATH` entry or use an absolute `npx` path |
## Authentication
| Server | If `isAuthenticated` is `false` |
|--------|--------------------------------|
| dev-ui | Ask the user to install [Sentry Cookie Sync](https://chromewebstore.google.com/detail/sentry-cookie-sync/kchlmkcdfohlmobgojmipoppgpedhijh) in the attached Chrome profile, then log into sentry.io there and keep a `https://<org-slug>.sentry.io` tab open. The extension copies that session to `dev.getsentry.net` only for orgs it sees in open tabs. Then reload. SSO cannot help elsewhere: dev-ui does not proxy `/identity/` routes, and Okta device trust rejects fresh profiles. |
| Full devserver | Sign in with a local account. If none exists, create one with `sentry createuser --email <email> --password <password> --superuser --no-input`. |
License (Apache-2.0)
Apache-2.0
Source: getsentry/skills
View full license text
Licensed under the Apache License, Version 2.0. See https://github.com/getsentry/skills/blob/main/LICENSE