Skip to content

Admin MCP

Admin MCP lets domain administrators and external AI agents diagnose and operate a domain through the Model Context Protocol (MCP). It covers system health, statistics, background jobs and errors, work item diagnostics, channels and cases, full-text search, MCP usage, audit search, and domain configuration. On the administration screens, Ema uses the same tools.

The endpoint is:

1
https://<mydomain>.emakin.com/mcp/admin

Prerequisites

  • Administration is selected in MCP Modes for the application in Host Administration; see MCP Modes.
  • The client uses HTTPS and signs in with an Emakin bearer token.
  • The token has the mcp scope and at least one administrative scope. Each tool also requires the scopes listed below, and the client sees only the tools that the token's scopes allow.
  • The domain is licensed for MCP. Admin MCP calls count against the MCP usage limits of the domain.

Capabilities and Scopes

MCP clients receive the available tools and their descriptions when they connect, and see only the tools that the token's scopes allow.

Capability What it covers Required scopes
Health and statistics System health and failing checks, statistics collection and problem detection state, and job, worker, process, activity, and external service call statistics over a selected period any administrative scope for health; jobs_write for statistics
Background jobs and errors Workers and their job counts, job search and details with logs, and recently failed jobs grouped by recurring error jobs_write
Job operations Retrying failed or aborted jobs and cancelling waiting or failed jobs jobs_write
Work item diagnostics Work item search, details with related jobs, diagnostic traces, current instance data, and the scripts of the running process version workitem_search; instance data, scripts, and trace contents also need Write permission on the process
Channels and cases Channel settings and mail synchronization state, case state with deadlines and milestones, and activity history of work items, instances, and cases domain_write; activity history needs activity_read, plus workitem_search for work items and instances or domain_write for cases
Data and full-text search Read-only repository queries, full-text search state, and indexing a process instance or case again database_read and database_manage for repository data; domain_write for full-text state; jobs_write for indexing again, plus workitem_search for instances or domain_write for cases
Usage and audit MCP and AI usage, limits, and remaining quota, and audit log search domain_write for usage; audit_search for audit
Domain configuration Reading, validating, and saving configuration sections, and testing AI provider, OpenAuth, SMTP, and channel mail connections domain_write; saving and connection tests also need domain_cred
Guide and skills Searching this administrator guide and reading admin task procedures any administrative scope

Related jobs shown with work items, channels, cases, and full-text state also need jobs_write. Configuration sections that contain connection credentials also need domain_cred for reading and validation.

Behavior

  • Domain isolation. Every tool works only on the domain of the signed-in user. Jobs, work items, cases, audit entries, statistics, and configuration of other domains are reported as not found.
  • Audit. Every Admin MCP call is recorded in the audit log with the tool name, its result, and its arguments, with secret values hidden. Configuration updates also record the previous and new values. Search them through Admin MCP or the Audit Log Search screen.
  • Approval of destructive actions. Cancelling jobs and updating configuration take two steps. The first call only shows what will change. The change is applied when the client repeats the call after the user agrees, and only exactly the change that was shown is applied. Asking the user is the client's responsibility.
  • Retrying jobs. Retrying runs at once. Up to 100 jobs can be retried in one call, and jobs that have already started again are skipped, so a job never runs twice because of a retry.
  • Configuration. Domain configuration is read and changed by section. Changes are checked with the same rules as Edit Domain. Secret values such as passwords and API keys are never shown and cannot be changed here; enter them in Edit Domain. Sections managed by the host cannot be changed. To undo a change, apply the previous content of the section.
  • Working calendars. Working calendars are managed as the Schedules section. Removing a calendar that a process or channel uses causes errors in its work items, so such a change is shown with a warning.
  • Problem management. The Problems section turns automatic problem detection and AI analysis on or off and sets their limits. Problem analysis runs whether or not the Administration MCP mode is enabled; see Problems.

Admin Skills

Skills are task procedures that guide Ema and external agents through a diagnosis or a configuration change, such as failed jobs, mail synchronization, calendars, or sign-in settings. They do not grant scopes or permissions. Ema loads a relevant skill on its own; type / in Ema to see and start one. External MCP clients can list and read the skills through Admin MCP. Domain administrators can add their own skills with the Admin context; see Ema Skills.

Ema on Administration Screens

On the Administration screens, Ema offers the same tools as the Admin MCP endpoint, with the same scopes, usage limits, and audit entries. All administration screens share one conversation. When the Administration MCP mode is not enabled or the user has no administrative scope, Ema offers only its regular tools there.

Before cancelling jobs or updating configuration, Ema asks a question that states exactly what will change, and the action runs only after the administrator approves it. The approval covers only the change that was shown, such as the listed jobs; a different change needs a new approval.

Screens opened from the Administration panel, such as Edit Domain or the background jobs manager, are forms. There Ema can also read and fill the form, and it offers the admin tools that the user's scopes allow. Settings shown on such a form are changed through its fields and saved with the form, so that saving the form does not undo a change made by Ema.

Limitations

  • Statistics are available only while the host collects them and only for the period the host keeps them; see System Statistics.
  • Diagnostic traces exist only when trace capture is enabled and their retention has not expired.
  • Work item data is the current data, not the data at the time of a failure. It includes fields hidden on forms, which is why it requires Write permission on the process.
  • Only jobs of the domain are visible. Host jobs, such as maintenance scripts, are not.
  • Channel and case tools read every channel and case of the domain, regardless of channel membership. They never return mail passwords or message bodies.