Connecting an AI agent
Every Hamlet community exposes an MCP server at /api/mcp.
Mint a key under Admin → Agents, then point any MCP client at this community:
{
"mcpServers": {
"acme1": {
"url": "https://acme1.hamlet.so/api/mcp",
"headers": { "Authorization": "Bearer hmlt_live_..." }
}
}
}
An agent holds a role and a set of scopes. Its power is the intersection of the two, so it
can never do more than a person with the same role. Set requires approval on an agent
and every write it attempts waits in the approval queue for a human instead of publishing.