Appearance
MCP admin recipes
Corveil MCP's control_* tools operate Corveil itself, so an admin can do much of the dashboard's work by asking Claude. Each recipe below gives a prompt to start from, the steps Claude takes, and the control_* operations it calls. Every operation on this page has a matching corveil control command for scripts.
Before you start
Connect with an API key. Corveil offers the control_* tools to a client that authenticates with a Corveil virtual API key, never to one that signs in through OAuth. That includes the Corveil connector in the Claude Desktop profile, so run these recipes from a client connected with a key. In Claude Code:
bash
claude mcp add --transport http corveil-admin "https://your-corveil-host/mcp?ns=control" \
--header "X-Corveil-Key: sk-citadel-your-key-here"?ns=control keeps the connection to the control tools (Narrowing the tool list). If the control_* tools don't appear, see Troubleshooting.
Your role decides what Claude can do. Every operation runs as you, the owner of the key. The MCP server recipes need Administer MCP servers, and the role recipe needs Manage custom roles. An operation your role doesn't allow is refused.
Changes that cut or widen access wait for confirmation. Deleting a rule, changing someone's role, turning a server off, listing a server on your MCP endpoint, and marking tools read-only all answer the first call with a requires_confirmation preview. They run only when Claude calls again with confirm: true. Creating a role, a server or a rule runs straight away, so each prompt below asks Claude to show the plan and wait for your go-ahead.
Keep secrets out of the chat. What you type to Claude goes to the model, and can land in your request logs when your client calls the model through Corveil. Store an upstream token on the server's Credentials tab yourself, or with the CLI (Move Claude Enterprise connectors shows how).
Create a custom role: Viewer without the knowledge graph
A role that can do everything Viewer can, except read the knowledge graph, for example for a contractor.
Create a custom role called "Viewer (no graph)" with everything the built-in Viewer role has except reading the knowledge graph. Show me its capabilities before you create it. Then give it to dana@example.com, and ask me before you change her role.
Claude:
- Reads the built-in Viewer role with
control_roles_list. Viewer holds See own request logs (logs.read.own), See own sessions (sessions.read.own), See AU usage (usage.read.own), Read Insights posts (insights.read) and Read the knowledge graph (ontology.read). - Checks those names and labels against the capability catalog with
control_authz_capabilities. - Shows you the list without
ontology.read, then creates the role withcontrol_roles_create. - Finds Dana with
control_org_memberships_list, and gives her the role withcontrol_org_memberships_setRole, passingcustom:<role id>. Changing a role changes what the person can do, so this step asks for confirmation.
Things to know:
- See own request logs, See own sessions and See AU usage are the read floor. Every role holds them, and Corveil adds them to a custom role even when you leave them out.
- Nobody can grant a capability they don't hold. You can't build or assign a role with a capability your own role lacks.
control_roles_updateedits the role later. It replaces the whole capability list, and it asks for confirmation because it changes access for everyone who holds the role.- The role shows on the Roles page like any other. See Custom roles.
Move Claude Enterprise connectors
Corveil can't read your Claude Enterprise settings, so start from your list of connectors in Claude (Organization settings → Connectors): each one's remote MCP URL, how people sign in, who uses it, and its tool settings. Step 1 of Move Claude Enterprise connectors to Corveil says what to write down.
I'm moving our Claude Enterprise connectors to Corveil. Here they are:
- Wiki search,
https://wiki-mcp.example.com/mcp, one service-account token. Everyone uses it. All tools are Always allow.- Tickets,
https://tickets-mcp.example.com/mcp, one service-account token. Only the Support team uses it.delete_ticketis Blocked.List the MCP servers we already have in Corveil. Register each connector that's missing, in shared mode with the gateway surface. Don't add credentials: I'll do that. Once I have, list each server's tools, propose permission rules that match the Claude Enterprise settings, and wait for my OK before you create them.
Claude:
Lists what's already registered with
control_mcpServers_list, so nothing is registered twice.Registers each missing server with
control_mcpServers_create: a slug, a name, the upstream URL,auth_modeshared, andsurfacesthat includegateway.Waits while you store each token on the server's Credentials tab, or with the CLI:
bashcorveil control integrations mcpServers-credentials-create <server-id> \ --credential_type bearer_token --credential_value "$TICKETS_TOKEN"The value is write-only: Corveil never returns it.
Lists each server's tools with
control_mcpServers_tools, which confirms Corveil can reach the server and gives the tools' real names.Finds the Support team's ID with
control_teams_list.After your OK, creates the rules with
control_mcpServers_permissions_create:- Wiki search: All tools, Allow, Organization.
- Tickets: All tools, Allow, Team Support.
- Tickets:
delete_ticket, Deny, Organization. A Claude Enterprise Blocked tool is blocked for everyone, and a Deny for the organization beats every Allow. See Tool permissions.
If you ask, lists a server on your organization's MCP endpoint with
control_mcpServers_updateandunified_gateway: true. That asks for confirmation.
What this recipe leaves to you:
- Needs approval tools have no counterpart in Corveil: choose Allow or Deny, and set any per-call approval on the client (Step 3).
- A connector where each person signs in with their own account maps to per-user mode, which is in preview. Claude can register one with
auth_modeper_user_dcr, but ask your Corveil contact first. See Shared or per-user?. - A connector Anthropic hosts, such as Microsoft 365 or Gmail, has no Corveil equivalent (the options).
- Catalog templates (GitHub, Linear, Slack, Notion and others) install from Connections → Tools → Browse Catalog in the dashboard.
- Pointing Claude Desktop and Claude Code at the new servers is Step 4.
List and lock tools
See who can call what
List our MCP servers. For each one, list its tools, say which ones count as read-only, and say who can call each tool, by team or person name.
Claude:
- Lists the servers with
control_mcpServers_list. - Lists each server's tools with
control_mcpServers_tools, which says whether each one counts as read-only. - Reads each server's rules with
control_mcpServers_permissions_list. A rule names its subject by type and ID. - Turns those IDs into names with
control_teams_listandcontrol_users_list, and works out who each tool is open to: a Deny that covers someone beats any Allow, and a tool with no Allow for them is refused.
Lock a server down
On the Jira server: let the Sales team call
search, blockdeletefor everyone, and remove the rule that lets the whole organization call every tool. Show me the changes first.
Claude:
- Reads the current rules with
control_mcpServers_permissions_list, and finds the organization's All tools Allow. - Shows you the plan, then creates the new rules with
control_mcpServers_permissions_create:search, Allow, Team Sales; anddelete, Deny, Organization. - Removes the organization's All tools Allow with
control_mcpServers_permissions_delete. That asks for confirmation. - Reads the rules back with
control_mcpServers_permissions_list.
Create the new rules before you remove the old one, as here, so Sales doesn't lose search in between.
Two more ways to lock things down:
- Turn a whole server off:
control_mcpServers_updatewithis_activefalse. Nobody can call it until it's turned back on. Asks for confirmation. - Choose which tools
gateway_call_toolandcorveil mcp callmay run:control_mcpServers_readOnlyTools_setnames the tools that count as read-only when the server doesn't say. It replaces the whole list, an empty list clears it, and it asks for confirmation. Mark only tools you know change nothing. See Read-only calls.
Operations on this page
Each control_* tool is also a corveil control command. The command takes the IDs in the operation's path as arguments, in order, and each body field as a --<field> flag. Commands that need confirmation take --yes. corveil whoami shows your organization's ID.
control_* tool | corveil control command | Confirms |
|---|---|---|
control_roles_list | identity roles-list | |
control_authz_capabilities | identity authz-capabilities | |
control_roles_create | identity roles-create --name … --capabilities '[…]' | |
control_roles_update | identity roles-update <role-id> --capabilities '[…]' | Yes |
control_org_memberships_list | identity org-memberships-list <org-id> --q <email> | |
control_org_memberships_setRole | identity org-memberships-setRole <org-id> <user-id> --role custom:<role-id> | Yes |
control_teams_list | identity teams-list | |
control_users_list | identity users-list | |
control_mcpServers_list | integrations mcpServers-list | |
control_mcpServers_create | integrations mcpServers-create --slug … --name … --upstream_url … | |
control_mcpServers_update | integrations mcpServers-update <server-id> --is_active false | When it sets is_active or unified_gateway |
control_mcpServers_credentials_create | integrations mcpServers-credentials-create <server-id> --credential_type … --credential_value … | |
control_mcpServers_tools | integrations mcpServers-tools <server-id> | |
control_mcpServers_permissions_list | integrations mcpServers-permissions-list <server-id> | |
control_mcpServers_permissions_create | integrations mcpServers-permissions-create <server-id> --tool_name … --grant_type … --grant_id … --action … | |
control_mcpServers_permissions_delete | integrations mcpServers-permissions-delete <server-id> <permission-id> | Yes |
control_mcpServers_readOnlyTools_set | integrations mcpServers-readOnlyTools-set <server-id> --tools '[…]' | Yes |
corveil control <domain> <command> --help lists every flag, and --dry-run prints the request without sending it.