@ebitex/mcp
v1.1.347
Published
An MCP server for the ebitex suite: let an AI agent work in Content, Assets, Audience, Commerce, Data and Forms with your management keys.
Readme
@ebitex/mcp
An MCP server for the ebitex suite. Point an AI agent at it and it can work in your apps through your own management keys: Content (build a content model end to end and publish it), Assets (put files into the library), Audience (individuals, audiences, accounts and their lifecycle), Commerce (record shipments on orders), Data (models and records) and Forms (build and publish forms). It is one package and one entry in your MCP client, not one per app.
It runs locally, over stdio, authenticated by management keys you mint yourself. Nothing is hosted
by ebitex, so your write-capable keys never leave your machine.
This package was published as
@ebitex/content-mcpuntil it became the suite's server. That name still runs this one and is deprecated; change it to@ebitex/mcpwhen convenient. Nothing else changes: the Content tools, resources and environment variables are the same.
Configure it
{
"mcpServers": {
"ebitex": {
"command": "npx",
"args": ["-y", "@ebitex/mcp"],
"env": { "EBITEX_CONTENT_MANAGEMENT_KEY": "frm_live_..." }
}
}
}An app's tools appear when its key is set. Each app has its own key, minted in that app and bound to one organization, so a session that should reach two apps carries two keys. An app whose key is not set is not started at all: no request, no tools, no resources. A server with no app key set refuses to start and names each variable.
Shared by every app:
| Variable | |
|---|---|
| EBITEX_API_BASE | Defaults to https://api.ebitex.io |
| EBITEX_MCP_READ_ONLY | Set to 1 to hide every write tool in every app, regardless of the keys' scopes |
Content:
| Variable | |
|---|---|
| EBITEX_CONTENT_MANAGEMENT_KEY | Required to use Content. Mint one in Content under Deliver → API keys → Management keys |
| EBITEX_CONTENT_TARGET_MANAGEMENT_KEY | A second key, for content_transfer to import into |
| EBITEX_CONTENT_REALM | The realm key the management key is expected to act in. Startup stops if it does not (a key is bound to one realm; this checks, it does not select). Unset: not checked |
Assets, Audience and Commerce:
| Variable | |
|---|---|
| EBITEX_ASSETS_MANAGEMENT_KEY | Mint one in Assets under Settings → Management keys (read, or write) |
| EBITEX_AUDIENCE_MANAGEMENT_KEY | Mint one in Audience under Connections → API keys (read, write, or erase: each includes the one before) |
| EBITEX_COMMERCE_MANAGEMENT_KEY | Mint one in Commerce under Management keys. It records shipments and does nothing else |
The names from when this server only did Content, EBITEX_CONTENT_API_BASE and
EBITEX_CONTENT_MCP_READ_ONLY, are still read. If both spellings of the base URL are set the new one
wins; if either read-only variable is set, the session is read-only.
Mint the key deliberately
A management key is bound to one organization, and a Content key also to one authoring environment and one role. That binding is the real safety boundary here, and it is the one this server cannot supply for you. What follows is written for Content, whose keys write to an environment; the other apps' keys are bound to the organization and carry a read, write or erase scope, and the same advice applies: give an agent the lowest scope the job needs.
- Bind it to a non-production authoring environment. This server has no way to tell which of your environments is production — that is your own topology, and a management key deliberately cannot see it. A heuristic would be worse than nothing, because it would be believed.
- Leave the authoring scope off unless the agent needs to write. Without it, the write tools are not merely refused; they are not offered at all.
- Give it a role with the access it needs and no more. Branch access rules and workflow gating apply to a key exactly as they do to a person.
On startup the server prints, to stderr, which organization and environment the key reached and which role it acts as. Read it once; if it is not what you expected, stop.
Content tools
Ten, shaped around what an agent does rather than around REST routes.
| | |
|---|---|
| content_whoami | Where this key is scoped: organization, environment, role, scopes, this server's version, and which tools were withheld and why. Needs no scope, so a key that can do almost nothing can still ask why |
| content_describe | What can exist here: every field type with its own settings schema, plus this environment's Contracts and Templates |
| content_find | Locate entities by kind, search or external id, with one paging contract across both listings |
| content_get | Read one entity in full |
| content_write | Create or update one entity |
| content_delete | Delete one, behind an explicit confirmation |
| content_publish | Plan, read the blockers, then publish |
| content_operation_status | Poll a job |
| content_transfer | Move a whole model between environments, atomically. identityMode picks how items are matched: externalId (the default, by natural key), preserve (by id), or fresh (everything new) |
| content_topology | Where this environment sits: the delivery environments a publish lands in, and its promotion neighbours. One hop only |
Which of them appear depends on your key's scopes: a read-scoped key gets a server with no write
tools at all, rather than tools that always fail. content_whoami is the exception and always
appears — it reports which tools were withheld and what each would need, so an absent tool is
explained rather than merely missing.
Every result also names the organization and environment it was answered in, and an empty one says so explicitly. A key reads and writes exactly one authoring environment, so "no Contracts" always means "none here" — an agent that reads it as "none anywhere" creates duplicates.
Content: authoring is half the job
This server builds and publishes a content model. The site that renders it reads the Content
Delivery API, and that has its own client, @ebitex/content-sdk
(or Ebitex.Content.Delivery for .NET). The server's instructions and the
ebitex-content://help/rendering-your-site resource tell an agent so before it writes a renderer; if
you are briefing an agent yourself, say the same.
Content: why it cannot drift
The Content app encodes no knowledge of the content model. It does not know what field types exist,
what a Contract may contain, or what makes a document valid. All three are answered at runtime:
content_describe returns each field type's own declared schema, and every write is validated by the
server that stores it. There is nothing here to fall out of step, because nothing is duplicated.
That also shapes how errors work. A refusal is relayed whole, with its field paths intact and no summarizing, because for an agent the error is the control loop: try, read the error, fix the one field it names, call again.
Content resources
Alongside the tools, the server offers the Content documentation as MCP resources — start with
ebitex-content://help/agent-authoring, which explains what Contracts, Templates, Presentations,
Adapters and the Experience tree are for, and the order to create them in. Then read
ebitex-content://help/content-modelling before you decide what the model looks like: it says what belongs in a Contract and what in a Template,
which field to use, how to name things, how to build containers such as tabs and accordions, and how to ship a model to others.
Assets tools
| | |
|---|---|
| assets_whoami | The organization, key and scopes, and which tools were withheld. Needs no scope |
| assets_find | Find assets by the SHA-256 of their bytes (up to 50 at a time); also reports which hashes matched nothing |
| assets_get | Read one asset; with directMp4, also its direct MP4 link |
| assets_upload | Upload a local file by path: hashes it, reuses an existing image with the same bytes, otherwise uploads (multipart over 50 MiB). Private by default |
| assets_update | Change an asset's name, text and other fields. It reads the asset first and sends back everything you did not mention, because the API replaces what is left out |
| assets_set_visibility | Make an asset public, behind confirm: true |
| assets_ensure_folder | Create a folder path if it is missing |
The Assets management API has no listing, no delete and no way back from public, so an agent cannot
enumerate the library or undo assets_set_visibility. Re-finding an image by hash works only for
images; a document uploaded twice is stored twice. Video upload is not supported here.
assets_upload runs on the machine the server runs on and sends the bytes from there to storage, so it works with a management key. The same upload made from a page in a browser does not:
the storage bucket's CORS rule allows only ebitex's own app origins.
Audience tools
| | |
|---|---|
| audience_whoami | The organization, key and scopes. Needs no scope |
| audience_describe | The organization's schema (GET /schema) |
| audience_find | List individuals, interactions, audiences, accounts, lifecycle stage rows or the review queue |
| audience_get | Read one individual, audience or account, an individual's journey, a stage summary |
| audience_write | Create or update by kind: individuals, identities, channel permissions, interactions, audiences, accounts and their members, lifecycle stages, review resolutions, tasks, identify |
| audience_delete | Delete an audience, an identity or an account member, behind confirm: true |
| audience_erase | Erase personal data: forget an individual, delete an account. Needs the erase scope, confirm: true, and is not offered in a read-only session |
Like Content's content_write, audience_write takes a kind and an opaque payload that the API
validates; the server holds no model of what an individual or a stage is. A refusal comes back whole,
with its field paths. The three listing styles differ (page and pageSize, cursor, before) and each
result says how to ask for the next page. Accounts answer 409 accounts_not_enabled when the
organization has not turned them on.
Commerce tools
| | |
|---|---|
| commerce_whoami | The organization, key and scopes. Needs no scope |
| commerce_get_fulfilment | How an order is being fulfilled: its groups and lines (ordered, shipped, cancelled) and its shipments. No buyer details |
| commerce_record_shipment | Record that items have shipped, which takes them off the shelf. It cannot be undone |
| commerce_update_shipment | Change a shipment's status, tracking number or URL, external reference or label URL. Its items stay shipped whatever the status says |
A Commerce management key cannot list orders, refund or cancel: the user must give the agent an order id.
Embedding it
import { buildServer, readConfig } from '@ebitex/mcp'
const { server, banner } = await buildServer({ config: readConfig() })
console.error(banner) // never stdout — on stdio, that stream is the protocolA note on zod
This package pins zod to ^3.25.76 rather than ^4, even though @modelcontextprotocol/sdk
accepts either. The reason is type identity, not capability: the SDK's schema types are written
against whichever zod resolves for it, and a second copy at a different major produces a type
mismatch on every tool registration. Pinning to the version the SDK resolves keeps one zod in the
tree. This matters at build time only; at runtime the SDK handles both.
Licence
Apache-2.0 — © ebitex software LLC.
Full guide: developers.ebitex.io.
