Getting Started
Nightwatch uses OAuth to securely connect AI assistants to your account. When you first connect, your AI assistant will open a browser window for you to authorize access.Automatic Setup via Boost
If your application uses Laravel Boost, the Nightwatch MCP server can be automatically configured during installation. Boost detects thelaravel/nightwatch package and offers to set up the MCP server for your AI assistant:
Manual Setup
- Claude Code
- Codex
- Cursor
- Gemini
- Junie
- OpenCode
- VS Code
- Other
Run in your terminal:Then run
/mcp in a Claude Code session to complete the authentication flow.Example Workflows
Investigating an Exception
Ask your AI assistant to investigate an issue by its ref number:“Can you look at issue #456 and tell me what’s causing it?”Your assistant will retrieve the full stack trace, code context, and occurrence statistics, then analyze the problem and suggest fixes.
If you have multiple applications, you can reference them by name (e.g.,
“issue #456 in Beep”). Otherwise, your assistant will prompt you to choose.
You can also paste issue URLs directly from Nightwatch.
Triaging Recent Issues
Ask your assistant to help prioritize your issue backlog:“What are the most recent exceptions in my production environment? Help me prioritize which ones to fix first.”Your assistant will gather information about your issues and provide recommendations based on frequency, user impact, and severity.
Resolving Issues
After fixing a bug, you can ask your assistant to update the issue:“Mark issue #123 as resolved and include a brief comment summarizing the fix”Your assistant will change the status and add a comment describing what caused the issue and how it was fixed.
Security
- Authentication: The MCP server uses OAuth to securely connect to your account.
- Authorization: You can only access applications and issues within organizations you belong to.
- Audit Trail: All actions are logged in the issue activity history with attribution to your user account and the AI agent used.