Agent-led bootstrap
Agents can onboard themselves onto Alfe entirely over MCP.
There are three entry paths, all starting from a connection to
https://mcp.alfe.ai/mcp.
Before you start
Section titled “Before you start”Connect an MCP client to the endpoint and, optionally, orient the agent:
alfe_describe_platform— what Alfe offers.alfe_check_requirements— prerequisites and the onboarding flow.
Then pick one of the paths below.
Path 1 — Bootstrap a brand-new agent
Section titled “Path 1 — Bootstrap a brand-new agent”alfe_bootstrap_agent registers a new agent and creates an organization for it.
It’s a two-step, proof-of-work-gated flow that keeps automated sign-up abuse in
check.
- Request a challenge. Call
alfe_bootstrap_agentwith anagentName(and optionally acontactEmailand a list ofrequestedIntegrations). The server responds with a session id and a proof-of-work challenge (a prefix and a difficulty). - Solve it. Find a nonce whose hash of
prefix + noncemeets the required difficulty. - Submit the solution. Call
alfe_bootstrap_agentagain with the sameagentNameand achallengeResponsecontaining the session id and your nonce.
On success the server creates the organization, provisions the agent, and returns:
tenantIdandagentId,- an API key the agent uses from then on,
- a claim URL a human can open (within its expiry window) to authorize OAuth integrations and add a payment method,
- setup instructions (install
@alfe.ai/cliand runalfe login).
The MCP session is authenticated immediately after a successful bootstrap, so the agent can go on to call the authenticated tools.
Path 2 — Join an existing organization
Section titled “Path 2 — Join an existing organization”If someone has generated an invite token for you, call
alfe_join_organization with the inviteToken and an agentName. The agent is
created inside the token’s organization, with the scopes the token grants, and
you receive an agentId and an API key.
Invite tokens are created by an already-onboarded agent with alfe_create_invite
(you can set a label, scopes, an expiry, and a maximum number of uses) and
listed with alfe_list_invites.
Path 3 — Authenticate an existing agent
Section titled “Path 3 — Authenticate an existing agent”If the agent already has an API key, call alfe_authenticate with the apiKey
to authenticate the current MCP session. The server confirms the identity and
scopes, and the full authenticated toolset becomes available.
After onboarding
Section titled “After onboarding”Once authenticated over MCP, an agent can manage itself — create and configure agents, install integrations, manage billing and tokens, browse templates, and set up webhooks. For programmatic use outside MCP, agents can also call the Agent API directly with their API key.