Get Past the Front Door
Authentication trips up more first calls than anything else, so it comes first. MCP clients use OAuth 2.1 with dynamic client registration and PKCE. Backends and scripts use an API key.
Pick the path for where you call from. Either way, every call resolves to the same authorised identity.
One Identity, Two Ways to Present It
The client handles it and sends Authorization: Bearer with every call.
Send Authorization: Bearer sk_… with each request.
How an MCP Client Gets Its Token
Call Without a Token
The first POST to the MCP address returns 401 with a WWW-Authenticate header that points at the protected-resource metadata (RFC 9728).
Discover the Authorisation Server
The client reads /.well-known/oauth-protected-resource, then /.well-known/oauth-authorization-server (RFC 8414), and learns where to register and sign in.
Register Itself
POST /oauth/register (RFC 7591) returns the client's own id on the spot. There is no client id or secret to create in advance.
Sign in and Call
Ask the User
GET /oauth/authorize with a PKCE S256 challenge. The user signs in with Google or Microsoft and approves the scopes.
Exchange the Code
POST /oauth/token with the code and its verifier returns an access token that carries exactly the approved scopes.
Make the Call
The original request again, now with Authorization: Bearer. Archie runs it.
Discovery and Registration
Every endpoint sits at your region's root. Configure the server with its full address, ending in /mcp: the OAuth resource indicator is checked against that path.
GET https://uk.heyarchie.com/.well-known/oauth-protected-resource GET https://uk.heyarchie.com/.well-known/oauth-authorization-server POST https://uk.heyarchie.com/oauth/register GET https://uk.heyarchie.com/oauth/authorize POST https://uk.heyarchie.com/oauth/token MCP address: https://uk.heyarchie.com/mcp
Dynamic Client Registration
You never paste a client id or secret into an MCP client. On first connect the client registers itself and receives its own id, which is what makes a one-address connector possible.
Consent and Scopes
The token carries exactly the scopes the user approved, and every call is checked against them on the server. Someone who cannot see a client in Archie cannot reach it through a token either. API keys choose from the same eleven permissions. These four only read.
Read client financial and payroll data and analyse it.
Search the knowledge base.
List and read Topics and their messages.
List WorkStreams and check how a cycle is going.
Ask, Analyse, Draft, Report
These four let Archie produce work for a person to review. Nothing they produce takes effect on its own.
Ask Archie a question, plus the advisory and research skills built on it.
Analyse uploaded documents and review them against compliance requirements.
Draft client communications for a person to approve.
Produce financial reports, memos and packs.
Change the Record
These three change what is stored. A write that crosses a risk threshold waits for a person to confirm it.
Bookkeeping writes: enrich trial-balance rows, flag duplicate codes and propose QBO tax-line mappings. Posting a journal is not yet available.
Create Topics and link conversations into them.
Run, advance, approve and cancel WorkStreams.
The scope names retired in June 2026 (messages:create, conversations:read, documents:read, drafts:write, journal:write, reports:read, standards:read, workstreams:execute) are refused when a client signs in or a key is created. A key that still lists only retired names is refused on every call: create a replacement with current scopes and revoke the old one, because rotating copies the permissions unchanged.
API Keys
Create a key with archie keys create or the Python SDK's client.keys.create and choose the permissions it needs. The full sk_ value is shown once, so copy it then; after that only a short preview, such as sk_...Ozgi, is shown.
curl https://uk.heyarchie.com/api/v1/skills/workstream.list/invoke \
-H "Authorization: Bearer $ARCHIE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 5}'Archie has no sandbox: every key reaches your live workspace. Give each key only the permissions it needs, keep it out of code you share, and revoke any key that may have leaked. A rotated key keeps its parent working for 24 hours while you roll out the new value.
Errors
A skill call with no credential returns 401, with type authentication_error and code auth_required under detail.error. Other sign-in failures on skill calls carry AUTH codes, such as AUTH.TOKEN_INVALID; other routes return the status and a message. Branch on the status and the code, never on the message. Error handling lists every code.
{
"error": true,
"status_code": 401,
"message": "Authorization: Bearer <token> required. …",
"detail": {
"error": {
"type": "authentication_error",
"code": "auth_required",
"message": "Authorization: Bearer <token> required. …"
}
}
}