Stay safe with an AI assistant
An assistant connected to MockHub can change what your mocks answer. These habits keep that under your control.
Check who is asking before you sign in
Section titled “Check who is asking before you sign in”When an assistant signs in through the browser, MockHub shows who is asking and where your browser goes next. Allow it only when you started connecting just now, from the assistant you expect:
- A Verified name is confirmed by the website shown beside it. An Unverified name is whatever the assistant called itself, so anyone can claim to be “Claude”.
- Returns to: An app on this computer means an app on your computer will get access. Allow it only if you started connecting from an app on this computer. MockHub shows it as a warning when nothing confirms the assistant’s name.
- Pick the lowest role that does the job. You can disconnect the assistant at any time and sign it in again with another role.
A link someone sent you that opens this page is a reason to select Deny.
Treat a token like a password
Section titled “Treat a token like a password”- Keep it in an environment variable. Do not commit it, paste it into a chat or put it in a shared document.
- Keep its expiry short. Tokens cannot be extended, so a short-lived token limits how long a leak matters.
- Use the least access that does the job: a personal token with the Viewer role to look, Editor only when the assistant should change mocks, and a machine token restricted to one project for focused work. A leaked personal token cannot change your account or reach your other workspaces.
Rotate a token
Section titled “Rotate a token”- Create a new token, as in Connect an AI assistant.
- Put the new token in
MOCKHUB_MCP_TOKEN. - Restart the assistant and check it still connects.
- Revoke the old token.
Revoke a token
Section titled “Revoke a token”Revoke a token you no longer need, or one that might have leaked, under Settings → Tokens: select the trash icon on its row, labelled Revoke and the token’s name. It stops working immediately.
You can always revoke your own personal tokens. Machine tokens and other members’ personal tokens need an Admin. The Last used column shows whether a token is still in use.
Disconnect an assistant you no longer use
Section titled “Disconnect an assistant you no longer use”Disconnect an assistant you signed in through the browser under Settings → Profile → Connected AI assistants; it stops working immediately. An Admin can disconnect any member’s under Settings → Tokens. See Disconnect an assistant.
Keep a confirmation on changes
Section titled “Keep a confirmation on changes”Request logs contain whatever strangers sent to your project’s addresses. MockHub tells the assistant to treat that content as data, never as instructions, but an assistant reading traffic can still be misled by it. Keep a confirmation on every tool that changes or deletes data, as in Choose what the assistant may do, especially while it works with request logs.
The same holds for the data store: its records are whatever callers sent to mocks that save them.
Webhook deliveries hold whatever the destination answered, and the assistant is told the same about them.
Review drafts yourself
Section titled “Review drafts yourself”A change the assistant drafts with MockHub’s AI assistant is stored as a proposal for you, not applied. The assistant gets a link that opens it in the dashboard, where you review each change and apply the ones you accept. No token can apply a proposal or an OpenAPI import, so an assistant cannot skip that review, whatever it is told.
If a draft request times out, ask the assistant to list your proposals before asking again: the first one may have been stored, and asking again spends another AI credit.
Scenario, chaos and webhook tools act at once: the next request to the project sees the new scenario state or the chaos, and a sent webhook reaches its destination. A webhook given a schedule keeps sending on its own until it is paused or the schedule is removed, so keep a confirmation on apply_project_config too. Keep a confirmation on them while tests run against the project.
Changes made through MCP pass the same checks as the MockHub app, and the workspace’s activity trail records them under your name, the machine token’s, or for an assistant you signed in, your name and the assistant’s, such as “Ada Lovelace via Claude”.