Skip to content
ELVII AI

Building an MCP server for ELVII.

The hard part is choosing which operations to expose. The rest is a day's work.

  • Capability discovery
  • Server allowlisting
  • Consequence marking
  • Full audit
A capability, as ELVII reads it
{
  "name": "update_order_status",
  "description": "Move one order to a new status. Used by the
                  fulfilment exception workflow. Does not
                  create, cancel or refund orders.",
  "consequential": true,
  "inputSchema": {
    "type": "object",
    "required": ["orderId", "status"],
    "properties": {
      "orderId": { "type": "string" },
      "status": {
        "type": "string",
        "enum": ["picking", "packed", "dispatched", "held"]
      },
      "note": { "type": "string", "maxLength": 500 }
    }
  }
}

Decide which operations to expose.

Everything else is mechanics. Three operations beat thirty.

  • Start from the workflow, not the API surface
  • Split read and write into two servers
  • Leave destructive operations out entirely
  • Add more when a second workflow needs them
ordering system · recommended shape
read server
  list_orders · get_order · get_stock_position

write server
  update_order_status

not exposed
  create_credit_note · issue_refund · delete_order

What ELVII needs from your server.

  • A capability list

    Name, description, schemas.

  • Clear descriptions

    For the person granting it.

  • Consequence marking

    ELVII gates flagged operations.

  • Its own service account

    Never an admin's.

  • Deterministic errors

    Say what went wrong.

  • Bounded results

    Page large sets.

From server to working capability.

  1. Step 1

    Build

    The operations one workflow needs. About a day.

  2. Step 2

    Allowlist

    Register address and credential.

  3. Step 3

    Review

    Approve operations one by one.

  4. Step 4

    Assign and test

    Grant to employees, run in draft.

Security is mostly your server's job

Two independent checks

ELVII checks this employee may call this capability. Your server should still validate the request — two checks fail independently. Validate arguments, scope the account narrowly, log on your side, and don't implement anything you wouldn't want called at 3am.

What's recorded on our side

Every call: server, capability, employee, run, argument shape, result size, duration and outcome. Refusals are recorded as carefully as successes.

MCP questions

Where should the server run?

Anywhere it can be reached over HTTPS — ELVII connects to it as a client. Local (stdio) servers are not run.

How do we handle long-running operations?

Return a handle promptly and let the workflow poll, rather than holding the call open.

How do we change a schema?

Add the new shape beside the old, then retire the old once nothing uses it.

Can one server serve several offices?

Yes, but scope the service account per office so the audit trail stays clear.

Tell us the three operations your workflow needs.

We'll tell you what to expose — and what not to.