# Install BugTape in this web app

Inspect this app's framework, browser entry point, and current error reporting before editing. Use the BugTape browser SDK only in a browser entry point. Keep API keys and agent credentials separate.

1. Read https://app.bugtape.ai/docs/quickstart.md for the current contract.
2. Use the hosted ES module at `https://app.bugtape.ai/bugtape.mjs`. The public `@bugtape/sdk` npm package is not currently published. For bundlers, use the documented browser-only integration; do not blindly add an unavailable npm dependency.
3. Add one `init` call with the project capture key from BugTape Setup and endpoint `https://app.bugtape.ai/v1/ingest`. Do not use an agent PAT as a browser key. Do not add OpenAI keys or unsupported encryption options to browser code.
4. Follow the app's consent policy. Review DOM masking and sensitive-data scrubbing. Avoid double initialization; call the returned instance's `destroy()` during hot reload or unmount where applicable.
5. Trigger one named test error in a local or staging fixture. Confirm that the matching real occurrence arrived in the correct BugTape project. The console's sample event does not prove an SDK install.
6. Check normal app behavior and the existing build. Report exactly what passed and what could not be checked. Never label missing replay or untested installation as verified.

Optional agent access: connect the MCP endpoint shown in https://app.bugtape.ai/docs/agents.md with a scoped agent token. MCP access requires the relevant plan. Keep the token out of frontend code and logs.
