AI agents
Let an AI agent find, connect and check domains.
An AI agent can do the domain work for you or for your users: look up where a domain's DNS lives, start a connection, follow it to live, and say why it is stuck. It works through the hosted CustomDomain™ MCP server, the same control plane as the API behind a tool interface.
The CustomDomain™ MCP server's only endpoint is https://mcp.customdomain.ai/mcp
(registry name ai.customdomain/mcp).
Only mcp.customdomain.ai is the product
Other MCP endpoints on customdomain.ai subdomains belong to the company's internal back office. They are not part of CustomDomain™; do not connect an agent to them.
When this fits
- An agent you use (Claude Code, Claude Desktop, Codex, Cursor, VS Code, ChatGPT or a custom MCP client) should connect and look after your domains.
- Your product runs an agent that connects domains on your users' behalf.
- A coding agent is writing your CustomDomain™ integration and needs the docs in a form it can read.
How CustomDomain™ fits in
-
One endpoint, Streamable HTTP. Connect the agent to
https://mcp.customdomain.ai/mcp. In Claude Code:claude mcp add --transport http customdomain https://mcp.customdomain.ai/mcp -
Access a person approves. An agent signs in with OAuth (authorization code with PKCE), and a signed in owner of your workspace approves exactly which scopes it gets (
domains:read,domains:connect,domains:disconnect,domains:purchase). The grant can be revoked at any time. An API key works too, but it carries the whole workspace's authority. See Agent access. -
An agent token reads and does less than your key. It is bound to one application. It never reads your customer's id, a key's name, customer number or sign-in session, or which of your members made a key, it cannot set a customer's email address or make a reconnect link, and what it changes in a domain's DNS (a saved key's write, a re-apply, a nameserver move) is in the audit log under its grant. The list is on the agent access page.
-
No tool takes DNS records. Record values are computed on the server from vetted templates, which closes off prompt injection that ends in an arbitrary DNS write.
connect-domainreturns the records to add and a link, andlinkKindsays who opens it: the provider's one click page or, for an API key or a client credentials token, a setup page for that one domain with whichever of the ways to connect fits their provider (a sign-in with it, a secure sign-in or the records to add), both for the user; an agent token gets the console page, which needs a login to the workspace, and gives the user the records. A setup page link is a bearer link that lasts 30 days and lets whoever opens it first set up the domain, so the agent sends it only to the person who owns the domain. The agent follows the connection until it is live. An agent never starts a secure sign-in itself: a person is always there for that. Purchases through MCP are off on the hosted service. -
A skill that teaches the safe way. The agent skill tells an agent to treat domain names and DNS values as data, to ask before disconnecting, and never to purchase or write records.
-
Docs an agent can read.
/docs/llms.txtlists every page with a description, and every page is served as Markdown at its own URL plus.md.
An agent grant cannot be given a Sandbox application, so an agent works on your live application and real domains.
What to read next
MCP: drive it from an agent
Connect, the flow an agent should follow, and what a failed call answers.
MCP server reference
Every tool, its input and the scope it needs.
Agent access
Human-approved, scoped and revocable access with OAuth.
Agent skill
Install the skill that teaches an agent to use the tools safely.