Answers
How do I make Cursor’s agent ask before risky tool calls?
A fail-closed Immiscible hook in front of Cursor’s terminal commands and MCP calls, which can ask you in Cursor; the MCP proxy for the tools’ credentials; and Immiscible’s MCP server for paying or sharing data.
Run npx immiscible guard --agents cursor (or immiscible install cursor, for one person or with --scope managed for everyone on the machine) to put a fail-closed hook in front of Cursor’s terminal commands and MCP calls: beforeShellExecution and beforeMCPExecution, with failClosed set. Cursor’s hooks can ask the person at the keyboard, so a call that needs a person is asked in Cursor, with the reasons and the approval link. guard and install cursor are in the next CLI release, 0.3.0, not yet on npm. For the tools’ credentials, put the MCP servers behind Immiscible’s MCP proxy, and add Immiscible’s MCP server so the agent can ask before paying or sharing data.
#How do I set it up?
- Get an agent key:
npx immiscible init --yeswrites it to.env. - Put each tool server behind the proxy and point Cursor at it in
.cursor/mcp.json:
{
"mcpServers": {
"github": {
"url": "https://immiscible.fly.dev/mcp/proxy/mcu_6c1d0e",
"headers": { "Authorization": "Bearer ${env:IMMISCIBLE_AGENT_KEY}" }
}
}
}Then remove Cursor’s direct connection to the same tool. See the MCP proxy.
- Add Immiscible’s own MCP server for payments and personal data:
npx immiscible mcp --client cursorprints the entry and a one-click install link. See add the MCP server.
#What about commands in Cursor’s terminal?
With the hook, Immiscible decides each one before it runs, by the same rules as every other coding agent: a force push to main or a secret leaving the machine is refused, a deploy is asked about. Keep Cursor’s own allow and deny settings too; the hook runs before them. Without the hook (the published CLI today), Immiscible sees a command only when it passes through something it stands in front of, such as a proxied tool or the gateway. See hooks for other coding agents.
#Can Immiscible govern Cursor’s model spend?
Not the inference Cursor runs on its own hosted models: that cannot pass through any gateway. That usage can be reconciled from the vendor’s API and is marked as not governed. Model calls your own code or your own keys make can go through the gateway.
#What does it not do?
- It installs nothing inside Cursor beyond its hooks file and MCP configuration.
- A tool Cursor can still reach with its own credential is not governed.