Skip to content

feat(cli): Default the project team when --team is omitted - #1589

Merged
BYK merged 1 commit into
mainfrom
feat/cli-default-project-team
Oct 22, 2026
Merged

BYK merged 1 commit into
mainfrom
feat/cli-default-project-team

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Headless sentry project create still dead-ends with "You belong to N teams… Specify one with --team" whenever the caller is on more than one team. This makes the team optional: when --team is omitted, the CLI picks a deterministic default instead of erroring.

Default team rule (pickDefaultTeam in resolve-team.ts): teams the user belongs to first, then ones they administer (team:admin, so the create call is not likely to 403 into the personal team-{username} fallback), then the earliest-created team, which matches Sentry's own get_or_create_default_team. Slug order breaks ties. The existing "Using team 'x'" note in the output shows which team was used, and an explicit --team still wins.

sentry init: preflight no longer resolves (or prompts for) a team when it reuses an existing project, because the team is only used for creation. When there are several Team Admin teams, --yes and the interactive prompt's preselected option now use the same default, replacing the first-alphabetical pick.

Refs #1585. This covers the team part of the issue. The broader init flow reordering (resolving new vs. existing from repo signals before org and team prompts) overlaps with draft #1375 and is left out here. Upstream API defaulting is tracked in getsentry/sentry#121490.

via BYK.

--

View Junior Session [Sentry]

`sentry project create` no longer fails when the user belongs to several
teams. It picks a deterministic default instead: member teams first,
preferring ones the user administers, then the earliest-created team
(Sentry's own default-team rule), with slug order as a tie-breaker.

`sentry init` skips team resolution entirely when it reuses an existing
project, and uses the same default for --yes and as the preselected
choice in the interactive team prompt.

Refs #1585

Co-Authored-By: Burak Yigit Kaya <burak.kaya@sentry.io>
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 22, 2026 10:53am UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 22, 2026
@BYK
BYK merged commit dfa8801 into main Oct 22, 2026
26 checks passed
@BYK
BYK deleted the feat/cli-default-project-team branch October 22, 2026 11:14
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
## Summary

Ports Symbolicator's
[`wasm-split`](https://github.com/getsentry/symbolicator/blob/master/crates/wasm-split/src/main.rs)
into the CLI as `sentry wasm-split`.

Same flags, same behaviour, same stdout (lowercase hex build id).
Drop-in for the Rust binary. Nothing removed from Symbolicator.

## Notes

Validation matches `wasmbin`, not a full wasm engine.

We validate the module envelope (header, section ids, and section
order), but we do not read or validate the contents inside each section.
Those bytes are passed through unchanged. This matches Symbolicator's
Rust wasm-split.

We intentionally do not use WebAssembly.validate, since it performs
deeper checks than wasmbin and would reject inputs the Rust tool
accepts.
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
## Summary

Ports Symbolicator's
[`wasm-split`](https://github.com/getsentry/symbolicator/blob/master/crates/wasm-split/src/main.rs)
into the CLI as `sentry wasm-split`.

Same flags, same behaviour, same stdout (lowercase hex build id).
Drop-in for the Rust binary. Nothing removed from Symbolicator.

## Notes

Validation matches `wasmbin`, not a full wasm engine.

We validate the module envelope (header, section ids, and section
order), but we do not read or validate the contents inside each section.
Those bytes are passed through unchanged. This matches Symbolicator's
Rust wasm-split.

We intentionally do not use WebAssembly.validate, since it performs
deeper checks than wasmbin and would reject inputs the Rust tool
accepts.
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
## Summary

Ports Symbolicator's
[`wasm-split`](https://github.com/getsentry/symbolicator/blob/master/crates/wasm-split/src/main.rs)
into the CLI as `sentry wasm-split`.

Same flags, same behaviour, same stdout (lowercase hex build id).
Drop-in for the Rust binary. Nothing removed from Symbolicator.

## Notes

Validation matches `wasmbin`, not a full wasm engine.

We validate the module envelope (header, section ids, and section
order), but we do not read or validate the contents inside each section.
Those bytes are passed through unchanged. This matches Symbolicator's
Rust wasm-split.

We intentionally do not use WebAssembly.validate, since it performs
deeper checks than wasmbin and would reject inputs the Rust tool
accepts.
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
## Summary

Ports Symbolicator's
[`wasm-split`](https://github.com/getsentry/symbolicator/blob/master/crates/wasm-split/src/main.rs)
into the CLI as `sentry wasm-split`.

Same flags, same behaviour, same stdout (lowercase hex build id).
Drop-in for the Rust binary. Nothing removed from Symbolicator.

## Notes

Validation matches `wasmbin`, not a full wasm engine.

We validate the module envelope (header, section ids, and section
order), but we do not read or validate the contents inside each section.
Those bytes are passed through unchanged. This matches Symbolicator's
Rust wasm-split.

We intentionally do not use WebAssembly.validate, since it performs
deeper checks than wasmbin and would reject inputs the Rust tool
accepts.
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
…mand coverage, AGENTS.md update (getsentry#1602)

## Weekly Documentation Audit — 2026-09-21

Automated cross-reference of implementation vs documentation, covering
commits since the last audit (`86767f6d2`, PR getsentry#1579).

---

## Gap Report

### A. Undocumented or Missing Commands/Subcommands

Command docs are auto-generated from CLI metadata, so all commands have
generated doc pages. However, the **hand-written feature pages** were
missing coverage for recently-added commands:

| Command | Source | Missing From |
|---------|--------|--------------|
| `agent-conversation list/view` | `src/commands/agent-conversation/` |
`agentic-usage.md`, `agent-guidance.md` |
| `wasm-split` | `src/commands/wasm-split.ts` (PR getsentry#1589) |
`agentic-usage.md`, `agent-guidance.md` |
| `status show` | `src/commands/status/show.ts` | `agentic-usage.md`
capabilities |

**Fixed in this PR**: Added all three to the Capabilities list in
`agentic-usage.md` and added workflow patterns with bash examples in
`agent-guidance.md`.

### B. Undocumented Flags

No new gaps. All non-hidden flags are auto-documented in generated
Options tables via `generate-command-docs.ts`.

### C. Missing Usage Examples

All command groups have fragment files in
`apps/cli-docs/src/fragments/commands/` with bash examples. The new
`wasm-split.md` fragment was added alongside PR getsentry#1589.

**Bug found**: The `agent-conversation.md` fragment had **incorrect
positional syntax** — it showed `sentry agent-conversation view my-org
conv-123` (two separate args) but the command accepts a single
slash-separated positional `[<org>/]<conversation-id>`, so the correct
form is `sentry agent-conversation view my-org/conv-123`.

**Fixed in this PR.**

### D. Stale Descriptions

No drift found. The `brief` strings in code match the auto-generated doc
descriptions.

### E. Missing Route Mappings in Skill Generator

N/A — the manual `ROUTE_TO_REFERENCE` map was removed in a prior audit.
The skill generator now uses `groupRoutesByReference()` for automatic
1:1 route-to-file mapping.

### F. Installation / Distribution Gaps

No new gaps. The install script, `getting-started.mdx`, and `README.md`
all document:
- `curl`, Homebrew, npm/pnpm/yarn/bun install methods
- `--no-modify-path`, `--no-completions`, `--no-agent-skills` installer
flags
- `SENTRY_INSTALL_DIR`, `SENTRY_VERSION`, `SENTRY_INIT` env vars
- Supported platforms (macOS x64/arm64, Linux x64/arm64 glibc/musl,
Windows x64)
- Nightly channel via `--version nightly`

### G. Undocumented Environment Variables

All `SENTRY_*` env vars accessed via `getEnv()` are registered in
`env-registry.ts` and appear in the generated `configuration.md`.
Intentionally excluded internal/test-only vars remain unchanged from
prior audits:
- `SENTRY_ENVIRONMENT` — bash-hook template only
- `SENTRY_CLI_NO_EXIT_TRAP` — bash-hook internal
- `SENTRY_SCAN_DISABLE_WORKERS` — internal perf tuning
- `SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE` — test-only
- `SENTRY_RN_*` — React Native wrapper internals

### H. Auth / Self-Hosted Gaps

No new gaps. Self-hosted docs cover OAuth 26.1.0+ requirement, token
auth fallback,
`SENTRY_HOST`/`SENTRY_URL`/`SENTRY_CLIENT_ID`/`SENTRY_CUSTOM_HEADERS`,
TLS/CA certs, and `sentry cli defaults` for persistent proxy headers.

### I. Plugin/Skills Gaps

The `plugins/README.md` accurately describes the skill installation flow
and supported directories (`~/.claude`, `~/.agents`). The agent
detection list in `agentic-usage.md` is current (includes Cline, Grok,
Kimi, Junie, OpenClaw from PR getsentry#1571).

No new gaps.

### J. README / DEVELOPMENT.md Drift

No drift found:
- Node.js version: `>=22.15` in devEngines, `>=20.0` in engines —
matches docs
- pnpm: `10.11.0` — matches docs
- Build toolchain: esbuild + fossilize — matches GENERATED sections
- OAuth scopes: auto-generated via GENERATED markers

**AGENTS.md drift found**: The Architecture section's command group list
was outdated — it listed a subset with `…` ellipsis, omitting
`agent-conversation`, `alert`, `build`, `code-mappings`,
`dart-symbol-map`, `debug-files`, `docs`, `feedback`, `snapshots`,
`status`, `wasm-split`, and other groups.

**Fixed in this PR**: Replaced with the full alphabetical list.

---

## Top 5 Most Impactful Fixes (Prioritized)

1. **`agent-conversation view` fragment had wrong positional syntax** —
agents following the example would get a parse error. Fixed.
2. **`agent-conversation` missing from agentic docs** — AI agents had no
guidance for browsing conversation transcripts, a feature specifically
built for agent workflows. Fixed.
3. **`wasm-split` missing from agentic docs** — a new command (PR getsentry#1589)
useful for WebAssembly projects had no agent guidance or workflow
pattern. Fixed.
4. **AGENTS.md command group list was stale** — new contributors and
agents referencing the Architecture section saw an incomplete picture.
Fixed.
5. **`status` missing from agentic-usage.md capabilities** — the status
command was already in agent-guidance.md workflow patterns but wasn't
listed in the capabilities section. Fixed.

<div><a
href="https://cursor.com/agents/bc-65d7d00b-206a-420d-b8eb-d39cbd8ed041?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/automations/8b0c0f35-da5e-409d-984c-5e39518ffb8a"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/view-automation-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/view-automation-light.png"><img
alt="View Automation" width="141" height="28"
src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
…mand coverage, AGENTS.md update (getsentry#1602)

## Weekly Documentation Audit — 2026-09-21

Automated cross-reference of implementation vs documentation, covering
commits since the last audit (`ca7ef6af3`, PR getsentry#1579).

---

## Gap Report

### A. Undocumented or Missing Commands/Subcommands

Command docs are auto-generated from CLI metadata, so all commands have
generated doc pages. However, the **hand-written feature pages** were
missing coverage for recently-added commands:

| Command | Source | Missing From |
|---------|--------|--------------|
| `agent-conversation list/view` | `src/commands/agent-conversation/` |
`agentic-usage.md`, `agent-guidance.md` |
| `wasm-split` | `src/commands/wasm-split.ts` (PR getsentry#1589) |
`agentic-usage.md`, `agent-guidance.md` |
| `status show` | `src/commands/status/show.ts` | `agentic-usage.md`
capabilities |

**Fixed in this PR**: Added all three to the Capabilities list in
`agentic-usage.md` and added workflow patterns with bash examples in
`agent-guidance.md`.

### B. Undocumented Flags

No new gaps. All non-hidden flags are auto-documented in generated
Options tables via `generate-command-docs.ts`.

### C. Missing Usage Examples

All command groups have fragment files in
`apps/cli-docs/src/fragments/commands/` with bash examples. The new
`wasm-split.md` fragment was added alongside PR getsentry#1589.

**Bug found**: The `agent-conversation.md` fragment had **incorrect
positional syntax** — it showed `sentry agent-conversation view my-org
conv-123` (two separate args) but the command accepts a single
slash-separated positional `[<org>/]<conversation-id>`, so the correct
form is `sentry agent-conversation view my-org/conv-123`.

**Fixed in this PR.**

### D. Stale Descriptions

No drift found. The `brief` strings in code match the auto-generated doc
descriptions.

### E. Missing Route Mappings in Skill Generator

N/A — the manual `ROUTE_TO_REFERENCE` map was removed in a prior audit.
The skill generator now uses `groupRoutesByReference()` for automatic
1:1 route-to-file mapping.

### F. Installation / Distribution Gaps

No new gaps. The install script, `getting-started.mdx`, and `README.md`
all document:
- `curl`, Homebrew, npm/pnpm/yarn/bun install methods
- `--no-modify-path`, `--no-completions`, `--no-agent-skills` installer
flags
- `SENTRY_INSTALL_DIR`, `SENTRY_VERSION`, `SENTRY_INIT` env vars
- Supported platforms (macOS x64/arm64, Linux x64/arm64 glibc/musl,
Windows x64)
- Nightly channel via `--version nightly`

### G. Undocumented Environment Variables

All `SENTRY_*` env vars accessed via `getEnv()` are registered in
`env-registry.ts` and appear in the generated `configuration.md`.
Intentionally excluded internal/test-only vars remain unchanged from
prior audits:
- `SENTRY_ENVIRONMENT` — bash-hook template only
- `SENTRY_CLI_NO_EXIT_TRAP` — bash-hook internal
- `SENTRY_SCAN_DISABLE_WORKERS` — internal perf tuning
- `SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE` — test-only
- `SENTRY_RN_*` — React Native wrapper internals

### H. Auth / Self-Hosted Gaps

No new gaps. Self-hosted docs cover OAuth 26.1.0+ requirement, token
auth fallback,
`SENTRY_HOST`/`SENTRY_URL`/`SENTRY_CLIENT_ID`/`SENTRY_CUSTOM_HEADERS`,
TLS/CA certs, and `sentry cli defaults` for persistent proxy headers.

### I. Plugin/Skills Gaps

The `plugins/README.md` accurately describes the skill installation flow
and supported directories (`~/.claude`, `~/.agents`). The agent
detection list in `agentic-usage.md` is current (includes Cline, Grok,
Kimi, Junie, OpenClaw from PR getsentry#1571).

No new gaps.

### J. README / DEVELOPMENT.md Drift

No drift found:
- Node.js version: `>=22.15` in devEngines, `>=20.0` in engines —
matches docs
- pnpm: `10.11.0` — matches docs
- Build toolchain: esbuild + fossilize — matches GENERATED sections
- OAuth scopes: auto-generated via GENERATED markers

**AGENTS.md drift found**: The Architecture section's command group list
was outdated — it listed a subset with `…` ellipsis, omitting
`agent-conversation`, `alert`, `build`, `code-mappings`,
`dart-symbol-map`, `debug-files`, `docs`, `feedback`, `snapshots`,
`status`, `wasm-split`, and other groups.

**Fixed in this PR**: Replaced with the full alphabetical list.

---

## Top 5 Most Impactful Fixes (Prioritized)

1. **`agent-conversation view` fragment had wrong positional syntax** —
agents following the example would get a parse error. Fixed.
2. **`agent-conversation` missing from agentic docs** — AI agents had no
guidance for browsing conversation transcripts, a feature specifically
built for agent workflows. Fixed.
3. **`wasm-split` missing from agentic docs** — a new command (PR getsentry#1589)
useful for WebAssembly projects had no agent guidance or workflow
pattern. Fixed.
4. **AGENTS.md command group list was stale** — new contributors and
agents referencing the Architecture section saw an incomplete picture.
Fixed.
5. **`status` missing from agentic-usage.md capabilities** — the status
command was already in agent-guidance.md workflow patterns but wasn't
listed in the capabilities section. Fixed.

<div><a
href="https://cursor.com/agents/bc-65d7d00b-206a-420d-b8eb-d39cbd8ed041?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/automations/8b0c0f35-da5e-409d-984c-5e39518ffb8a"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/view-automation-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/view-automation-light.png"><img
alt="View Automation" width="141" height="28"
src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
…mand coverage, AGENTS.md update (getsentry#1602)

## Weekly Documentation Audit — 2026-09-21

Automated cross-reference of implementation vs documentation, covering
commits since the last audit (`ca7ef6af3`, PR getsentry#1579).

---

## Gap Report

### A. Undocumented or Missing Commands/Subcommands

Command docs are auto-generated from CLI metadata, so all commands have
generated doc pages. However, the **hand-written feature pages** were
missing coverage for recently-added commands:

| Command | Source | Missing From |
|---------|--------|--------------|
| `agent-conversation list/view` | `src/commands/agent-conversation/` |
`agentic-usage.md`, `agent-guidance.md` |
| `wasm-split` | `src/commands/wasm-split.ts` (PR getsentry#1589) |
`agentic-usage.md`, `agent-guidance.md` |
| `status show` | `src/commands/status/show.ts` | `agentic-usage.md`
capabilities |

**Fixed in this PR**: Added all three to the Capabilities list in
`agentic-usage.md` and added workflow patterns with bash examples in
`agent-guidance.md`.

### B. Undocumented Flags

No new gaps. All non-hidden flags are auto-documented in generated
Options tables via `generate-command-docs.ts`.

### C. Missing Usage Examples

All command groups have fragment files in
`apps/cli-docs/src/fragments/commands/` with bash examples. The new
`wasm-split.md` fragment was added alongside PR getsentry#1589.

**Bug found**: The `agent-conversation.md` fragment had **incorrect
positional syntax** — it showed `sentry agent-conversation view my-org
conv-123` (two separate args) but the command accepts a single
slash-separated positional `[<org>/]<conversation-id>`, so the correct
form is `sentry agent-conversation view my-org/conv-123`.

**Fixed in this PR.**

### D. Stale Descriptions

No drift found. The `brief` strings in code match the auto-generated doc
descriptions.

### E. Missing Route Mappings in Skill Generator

N/A — the manual `ROUTE_TO_REFERENCE` map was removed in a prior audit.
The skill generator now uses `groupRoutesByReference()` for automatic
1:1 route-to-file mapping.

### F. Installation / Distribution Gaps

No new gaps. The install script, `getting-started.mdx`, and `README.md`
all document:
- `curl`, Homebrew, npm/pnpm/yarn/bun install methods
- `--no-modify-path`, `--no-completions`, `--no-agent-skills` installer
flags
- `SENTRY_INSTALL_DIR`, `SENTRY_VERSION`, `SENTRY_INIT` env vars
- Supported platforms (macOS x64/arm64, Linux x64/arm64 glibc/musl,
Windows x64)
- Nightly channel via `--version nightly`

### G. Undocumented Environment Variables

All `SENTRY_*` env vars accessed via `getEnv()` are registered in
`env-registry.ts` and appear in the generated `configuration.md`.
Intentionally excluded internal/test-only vars remain unchanged from
prior audits:
- `SENTRY_ENVIRONMENT` — bash-hook template only
- `SENTRY_CLI_NO_EXIT_TRAP` — bash-hook internal
- `SENTRY_SCAN_DISABLE_WORKERS` — internal perf tuning
- `SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE` — test-only
- `SENTRY_RN_*` — React Native wrapper internals

### H. Auth / Self-Hosted Gaps

No new gaps. Self-hosted docs cover OAuth 26.1.0+ requirement, token
auth fallback,
`SENTRY_HOST`/`SENTRY_URL`/`SENTRY_CLIENT_ID`/`SENTRY_CUSTOM_HEADERS`,
TLS/CA certs, and `sentry cli defaults` for persistent proxy headers.

### I. Plugin/Skills Gaps

The `plugins/README.md` accurately describes the skill installation flow
and supported directories (`~/.claude`, `~/.agents`). The agent
detection list in `agentic-usage.md` is current (includes Cline, Grok,
Kimi, Junie, OpenClaw from PR getsentry#1571).

No new gaps.

### J. README / DEVELOPMENT.md Drift

No drift found:
- Node.js version: `>=22.15` in devEngines, `>=20.0` in engines —
matches docs
- pnpm: `10.11.0` — matches docs
- Build toolchain: esbuild + fossilize — matches GENERATED sections
- OAuth scopes: auto-generated via GENERATED markers

**AGENTS.md drift found**: The Architecture section's command group list
was outdated — it listed a subset with `…` ellipsis, omitting
`agent-conversation`, `alert`, `build`, `code-mappings`,
`dart-symbol-map`, `debug-files`, `docs`, `feedback`, `snapshots`,
`status`, `wasm-split`, and other groups.

**Fixed in this PR**: Replaced with the full alphabetical list.

---

## Top 5 Most Impactful Fixes (Prioritized)

1. **`agent-conversation view` fragment had wrong positional syntax** —
agents following the example would get a parse error. Fixed.
2. **`agent-conversation` missing from agentic docs** — AI agents had no
guidance for browsing conversation transcripts, a feature specifically
built for agent workflows. Fixed.
3. **`wasm-split` missing from agentic docs** — a new command (PR getsentry#1589)
useful for WebAssembly projects had no agent guidance or workflow
pattern. Fixed.
4. **AGENTS.md command group list was stale** — new contributors and
agents referencing the Architecture section saw an incomplete picture.
Fixed.
5. **`status` missing from agentic-usage.md capabilities** — the status
command was already in agent-guidance.md workflow patterns but wasn't
listed in the capabilities section. Fixed.

<div><a
href="https://cursor.com/agents/bc-65d7d00b-206a-420d-b8eb-d39cbd8ed041?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/automations/8b0c0f35-da5e-409d-984c-5e39518ffb8a"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/view-automation-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/view-automation-light.png"><img
alt="View Automation" width="141" height="28"
src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshuawayzwright pushed a commit to joshuawayzwright/sentry-mcp that referenced this pull request Nov 16, 2026
…mand coverage, AGENTS.md update (getsentry#1602)

## Weekly Documentation Audit — 2026-09-21

Automated cross-reference of implementation vs documentation, covering
commits since the last audit (`1804ddb52`, PR getsentry#1579).

---

## Gap Report

### A. Undocumented or Missing Commands/Subcommands

Command docs are auto-generated from CLI metadata, so all commands have
generated doc pages. However, the **hand-written feature pages** were
missing coverage for recently-added commands:

| Command | Source | Missing From |
|---------|--------|--------------|
| `agent-conversation list/view` | `src/commands/agent-conversation/` |
`agentic-usage.md`, `agent-guidance.md` |
| `wasm-split` | `src/commands/wasm-split.ts` (PR getsentry#1589) |
`agentic-usage.md`, `agent-guidance.md` |
| `status show` | `src/commands/status/show.ts` | `agentic-usage.md`
capabilities |

**Fixed in this PR**: Added all three to the Capabilities list in
`agentic-usage.md` and added workflow patterns with bash examples in
`agent-guidance.md`.

### B. Undocumented Flags

No new gaps. All non-hidden flags are auto-documented in generated
Options tables via `generate-command-docs.ts`.

### C. Missing Usage Examples

All command groups have fragment files in
`apps/cli-docs/src/fragments/commands/` with bash examples. The new
`wasm-split.md` fragment was added alongside PR getsentry#1589.

**Bug found**: The `agent-conversation.md` fragment had **incorrect
positional syntax** — it showed `sentry agent-conversation view my-org
conv-123` (two separate args) but the command accepts a single
slash-separated positional `[<org>/]<conversation-id>`, so the correct
form is `sentry agent-conversation view my-org/conv-123`.

**Fixed in this PR.**

### D. Stale Descriptions

No drift found. The `brief` strings in code match the auto-generated doc
descriptions.

### E. Missing Route Mappings in Skill Generator

N/A — the manual `ROUTE_TO_REFERENCE` map was removed in a prior audit.
The skill generator now uses `groupRoutesByReference()` for automatic
1:1 route-to-file mapping.

### F. Installation / Distribution Gaps

No new gaps. The install script, `getting-started.mdx`, and `README.md`
all document:
- `curl`, Homebrew, npm/pnpm/yarn/bun install methods
- `--no-modify-path`, `--no-completions`, `--no-agent-skills` installer
flags
- `SENTRY_INSTALL_DIR`, `SENTRY_VERSION`, `SENTRY_INIT` env vars
- Supported platforms (macOS x64/arm64, Linux x64/arm64 glibc/musl,
Windows x64)
- Nightly channel via `--version nightly`

### G. Undocumented Environment Variables

All `SENTRY_*` env vars accessed via `getEnv()` are registered in
`env-registry.ts` and appear in the generated `configuration.md`.
Intentionally excluded internal/test-only vars remain unchanged from
prior audits:
- `SENTRY_ENVIRONMENT` — bash-hook template only
- `SENTRY_CLI_NO_EXIT_TRAP` — bash-hook internal
- `SENTRY_SCAN_DISABLE_WORKERS` — internal perf tuning
- `SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE` — test-only
- `SENTRY_RN_*` — React Native wrapper internals

### H. Auth / Self-Hosted Gaps

No new gaps. Self-hosted docs cover OAuth 26.1.0+ requirement, token
auth fallback,
`SENTRY_HOST`/`SENTRY_URL`/`SENTRY_CLIENT_ID`/`SENTRY_CUSTOM_HEADERS`,
TLS/CA certs, and `sentry cli defaults` for persistent proxy headers.

### I. Plugin/Skills Gaps

The `plugins/README.md` accurately describes the skill installation flow
and supported directories (`~/.claude`, `~/.agents`). The agent
detection list in `agentic-usage.md` is current (includes Cline, Grok,
Kimi, Junie, OpenClaw from PR getsentry#1571).

No new gaps.

### J. README / DEVELOPMENT.md Drift

No drift found:
- Node.js version: `>=22.15` in devEngines, `>=20.0` in engines —
matches docs
- pnpm: `10.11.0` — matches docs
- Build toolchain: esbuild + fossilize — matches GENERATED sections
- OAuth scopes: auto-generated via GENERATED markers

**AGENTS.md drift found**: The Architecture section's command group list
was outdated — it listed a subset with `…` ellipsis, omitting
`agent-conversation`, `alert`, `build`, `code-mappings`,
`dart-symbol-map`, `debug-files`, `docs`, `feedback`, `snapshots`,
`status`, `wasm-split`, and other groups.

**Fixed in this PR**: Replaced with the full alphabetical list.

---

## Top 5 Most Impactful Fixes (Prioritized)

1. **`agent-conversation view` fragment had wrong positional syntax** —
agents following the example would get a parse error. Fixed.
2. **`agent-conversation` missing from agentic docs** — AI agents had no
guidance for browsing conversation transcripts, a feature specifically
built for agent workflows. Fixed.
3. **`wasm-split` missing from agentic docs** — a new command (PR getsentry#1589)
useful for WebAssembly projects had no agent guidance or workflow
pattern. Fixed.
4. **AGENTS.md command group list was stale** — new contributors and
agents referencing the Architecture section saw an incomplete picture.
Fixed.
5. **`status` missing from agentic-usage.md capabilities** — the status
command was already in agent-guidance.md workflow patterns but wasn't
listed in the capabilities section. Fixed.

<div><a
href="https://cursor.com/agents/bc-65d7d00b-206a-420d-b8eb-d39cbd8ed041?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/automations/8b0c0f35-da5e-409d-984c-5e39518ffb8a"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/view-automation-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/view-automation-light.png"><img
alt="View Automation" width="141" height="28"
src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
Preview — b1d4470f Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant