Open
Conversation
Use the Arcjet CLI for capabilities the MCP server does not expose: `arcjet watch` for live request streaming during incident response, and `arcjet skills install` for writing a project-local ARCJET.md so future agent turns have zero-round-trip discovery. Setup, read-side analysis, and rule CRUD continue to use the MCP server. Commands invoke as `npx -y @arcjet/cli@latest <command>` so no install is required. Authentication uses the CLI's browser-based device flow (consistent with `gh auth login`, `vercel login`, etc.); `ARCJET_TOKEN` remains the headless escape hatch. A new `rules/arcjet-cli.mdc` rule documents when to reach for the CLI vs MCP, the invocation pattern, and agent-friendly flags (`--output json`, `--fields`). Closes ENG-712. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
arcjet watchfor live request streaming during incident response, andarcjet skills installfor writing a project-localARCJET.mdso future agent turns have zero-round-trip discovery. Setup, read-side analysis, and rule CRUD continue to use the MCP server.npx -y @arcjet/cli@latest <command>so no install is required (works on macOS, Linux, Windows). If a localarcjetbinary is onPATH, the plugin uses it directly.rules/arcjet-cli.mdcdocuments when to reach for the CLI vs MCP, the invocation pattern, and agent-friendly flags (--output json,--fields).agents/security-analyst.mdnow shells out toarcjet watchfor continuous monitoring during incidents instead of pollinglist-requestsover MCP.protect-route,add-ai-protection,add-guard-protection) end with an optional step that runsarcjet skills install.Authentication uses the CLI's browser-based device flow (consistent with
gh auth login,vercel login);ARCJET_TOKENremains the headless escape hatch.Closes ENG-712. Companion to arcjet/arcjet-docs#815 (ENG-711) and arcjet/arcjet#7903 (ENG-713).
Test plan
bash scripts/validate.sh— all skills, rules, agent, and JSON files pass structural validation.dprint check— all files formatted.**/lib/arcjet*,**/arcjet*, and**/.env*paths./arcjet:protect-routeand confirm the final "Install Project-Local Skills" step runsarcjet skills installcleanly.security-analystduring an incident scenario and confirm it reaches forarcjet watchrather than pollinglist-requestsrepeatedly.npx -y @arcjet/cli@latest watch --site-id <id>works end-to-end afterarcjet auth login.🤖 Generated with Claude Code