MCP: connect your own agent
Connect Claude Code, Claude Desktop or any client that speaks the Model Context Protocol to your workspace. Your agent gets the same tools the built-in assistant has, and acts as you with your current role. Its calls run at once. Before a live change, your agent shows you what will change and asks you, in its own words.
/mcpStreamable HTTP with streamed (SSE) responses. One URL and one bearer header is all a client needs. Your client keeps one connection: initialize returns an Mcp-Session-Id header that it sends on every later request, and DELETE /mcp ends it. A deploy forgets connections; a client that sees 404 simply initializes again, and nothing you did is lost. (OpenHouse calls the agent’s conversation in the AI panel a session; that is a different thing, below.)
Connect in two steps
1. In OpenHouse, open Settings → Agents and create a credential. The secret starts with ohm_ and is shown once — copy it then.
2. Point your client at the endpoint with that secret as a bearer token. For Claude Code:
claude mcp add --transport http openhouse https://api.openhousecrm.com/mcp \
--header "Authorization: Bearer ohm_…"Then ask it something about your workspace — “how many profiles opted in this month”, “which campaigns ran last week”, “draft a segment of German profiles with no order in 90 days”.
The credential is you
An agent credential is bound to the member who created it. Every call runs with your current role — lower it and the agent’s tool list shrinks on its next call; leave the organization and the credential is revoked with you. It can never do more than you can. The audit log records you as the actor and the credential’s name as the door.
What the agent can call
tools/list returns exactly the tools the built-in assistant offers someone with your role — operators run the CRM (profiles, segments, campaigns, templates, analytics), builders also configure it (fields, transformations, dashboards, automations), administrators also do the irreversible things (scheduling sends, activating automations). Tools above your role are absent, not greyed out.
Every tool carries a JSON Schema for its input. A wrong shape comes back as a tool error your agent can read and correct, never as a server failure.
Your agent asks you
OpenHouse does not hold a call for approval. A call that your role allows, with valid input, runs at once. Your agent asks you first, in its own interface. When your agent connects, OpenHouse gives it a short set of rules for when and how to ask. Each tool description starts with its risk level:
- Risk 0, read: the agent runs it.
- Risk 1, draft or small edit: the agent runs it and tells you what it did.
- Risk 2, live change (a live segment, a published dashboard, a skill): the agent shows you a preview, asks you, and waits for your yes.
- Risk 3, high impact (sends, activations, bulk edits, reverts): the agent shows you exact figures, and runs the action only after a yes that names it.
To preview an action, the agent calls actions_preview with the tool name and the exact input. It returns the summary of what the action will do, any warning, and any input issues. Nothing runs. If validated is false, the tool has no advance check, so the input is checked only when the action runs.
toolstring | The tool name, for example segments_update (required) |
inputobject | The exact input the agent plans to send (required) |
If the input is not valid, nothing runs and the tool returns the named issues. If the input is valid but the action has a warning, the result of the action includes warning.
If your agent runs on a schedule with nobody there, it acts at risk 2 or 3 only if your own instruction names the action, the object, the audience and the time. Otherwise it prepares drafts and reports.
Requests that were pending before this change stay on their card in the AI panel. approvals_get still reads them.
Sessions in OpenHouse
Each day your agent works, its calls are filed into one conversation in your AI panel, marked Agent and named after the credential. Open it to see what the agent did. Each risk 2 or 3 call is marked as run at once, with the confirmation left to the agent. The conversation is read-only for you — talk to the agent in its own client.
Links instead of navigation
When the agent uses the “open a view” tool, nobody’s workspace is open, so it receives an absolute link to the view and a note that nothing was navigated. Ask it to share the link.
Limits and errors
- 60 requests per minute per member across all their credentials; beyond that, HTTP 429.
GET /mcpis 405: the server never sends anything unsolicited, so there is no stream to open.DELETE /mcpends your connection. A connection idle for 30 minutes, or beyond eight per credential, is closed; your client opens a new one on its next call.- A missing or revoked credential is 401. A login token is not an agent credential and is refused with a hint.
- Your agent’s reasoning runs on your side; MCP calls do not count against your workspace’s included AI usage.