Connect an agent
At the end of this guide, an MCP client can search and file the catalog through /mcp. You need a
running xixo that is connected to masks, and an account in the masks tenant it signs in with. See
agents and MCP for how the endpoint works.
Allow dynamic registration in masks
Section titled “Allow dynamic registration in masks”An MCP client registers itself with masks the first time it connects. The masks tenant has to allow that.
- Open the masks console. With the built-in masks, it is at
/id/manageon xixo’s origin. - Choose Settings, then General.
- Under Dynamic registration, choose On, or On, limited to these scopes.
- If you limit it, list
openid,profile,email,offline_access,xixo:catalog:read,xixo:catalog:write,xixo:web:read,xixo:web:keep,xixo:mcp:call,xixo:resources:read, andxixo:resources:command.
A client asks for every scope xixo offers, and masks refuses the whole request when one of them is
outside the limit. To limit what a client may do, use the client’s own controls, such as Claude’s
per-tool permissions. MASKS_DYNAMIC_REGISTRATION on the masks deployment overrides the tenant’s
choice.
Connect Claude Code
Section titled “Connect Claude Code”-
Add the server, using your xixo address followed by
/mcp:Terminal window claude mcp add --transport http xixo https://xixo.example.com/mcp -
Start
claudeand run/mcp. -
Choose
xixo, then authenticate. -
Sign in to masks in the browser that opens, and approve the scopes.
/mcp in Claude Code then lists xixo as connected, with its tools.
Connect Claude or another client
Section titled “Connect Claude or another client”Any MCP client that supports OAuth and registers itself dynamically can connect. Give it the /mcp
URL, such as https://xixo.example.com/mcp.
In Claude:
- Open Settings, then Connectors.
- Choose Add custom connector.
- Enter a name and the
/mcpURL. - Sign in to masks and approve the scopes.
What the token reaches
Section titled “What the token reaches”A client sees only the tools its token’s scopes reach. xixo:web:read lets the resource tool
search the web, fetch a page, and look up weather and places. See the
scopes reference for every scope, and the MCP reference for
each tool.
Check that it works
Section titled “Check that it works”- Ask the agent to search the catalog for a word you know is in it. It calls
searchand returns feeds with their ids. - Ask it to list resources. It calls
resourcewith no key.
If it doesn’t work
Section titled “If it doesn’t work”The masks log shows each step the client took.
- The client never opens masks. Dynamic registration is off in the masks tenant. The masks
metadata at
/.well-known/oauth-authorization-serverthen has noregistration_endpoint. - masks redirects back with
invalid_scopeandthis client may not request. The tenant’s limit leaves out a scope xixo offers. Add the scopes it names. - The client gets
404. The address is missing/mcp. 401after signing in. xixo refused the token, for example because masks issued it for a different tenant. xixo records each refusal with its reason under Activity in settings.503from/mcpor/.well-known/oauth-protected-resource. masks is not answering. The response body says why.- A tool is missing. The token does not hold the scope for it. Authenticate again and approve the scope.
429 too many requests. The token made more thanXIXO_MCP_LIMITcalls in a minute, 120 by default.