Dieser Artikel ist nur auf Englisch verfügbar.
Externa Core v1.5.0 changes what an AI agent is allowed to do without asking. 1.4.0 shipped the plumbing — an MCP server, a permission-aware tool registry, an approval inbox — with every write denied by default. One release later the plumbing has been used enough to know which parts were caution and which were friction. Writes are now on, deletion is not, and an agent can build a collection from scratch rather than only fill one. API keys were rebuilt on a vocabulary shared across every Qiick product, with rotation and expiry notices. Notes: GitHub Release v1.5.0 · Upgrade guide.
Read this before you upgrade
Two things change behaviour the moment you migrate.
AI write tools are on by default. After the upgrade the in-app assistant can create and change collections, fields, items and files, and an API key with the mcp:write scope writes over MCP without the approval inbox. Each in-app write still asks the signed-in user to approve it in the chat; an agent driving a key headlessly does not ask anyone. Three independent settings put it back: AI_TOOLS_WRITE_ENABLED=false for read-only, AI_MCP_WRITE_REQUIRES_APPROVAL=true to park every MCP write, AI_MCP_WRITE_ENABLED=false to turn MCP writes off entirely.
There is a trap worth knowing either way: an .env copied from the 1.4.0 example already contains AI_WRITE_TOOLS=false, and that line still wins. Such an install stays read-only after the upgrade until you remove it. Check the file rather than assuming either outcome — both directions surprise someone.
Clear the approval inbox first. An MCP call parked on 1.4.0 has no API key on record. After the upgrade it cannot be approved at all: approving returns "This MCP call has no API key on record…" and the call waits until it expires. Nothing runs and nothing is silently dropped, but the work is lost and the agent has to send it again.
What matters
Deletion is its own decision
The old gate was per tool: a tool was either allowed to mutate or it was not. 1.5.0 gates each call by the kind of action it performs — read, write, or destructive. One tool can now read freely, write under the write gate, and delete only when deletion is explicitly on.
Deleting items, collections, fields or files, emptying the trash, rolling back an AI turn, and every change to users, roles or groups are refused until you set AI_TOOLS_DESTRUCTIVE_ENABLED=true — and then each one is still approved a call at a time. Changes to users, roles and groups never reach MCP at all. An assistant that could delete items with approval in 1.4.0 now answers that it cannot.
That is the shape of the whole release: make the common thing frictionless, keep the irreversible thing deliberate.
An agent can build a collection, not just fill one
MCP gains schema tools: create_collection (list or singleton), create_field and update_field — name, type, per-locale flag, and settings such as required, validation and relations — plus reorder_fields. An agent can now design a collection and then populate it with create_item.
They run on the collection builder's own requests and actions, with the same validation as the admin UI, so there is no second, looser path into the schema. They need an mcp:write key with collections:write, and the permission on the key's role, and the collection inside the key's collection_slugs. The owner's permissions alone are not enough.
One sharp edge, called out in the docs because it will catch people: a key's role holds no grant on a collection created after that role was set up. The agent builds the collection, then gets refused on the first item. Grant it in Roles first.
API keys, rebuilt
The read_only flag and the files_scope setting are gone. In their place is one vocabulary shared across every Qiick product: <resource>:(read|write) over collections, files and mcp, where write implies read.
The upgrade translates every existing key, and keeps exactly what it could do in 1.4.0 — never more. Two combinations resolve to the narrower reading because 1.4.0 already enforced them that way: read_only together with files_scope: all becomes files:read, and mcp:write without mcp:read gives no MCP access. A key that ends up with no scopes is kept and refused on every request, so it surfaces as a failure rather than vanishing.
Three things around the key itself:
- Rotation. A new secret for the same key — same id, prefix, scopes and audit trail — shown once. The old secret keeps working for 24 hours so an integration can switch without downtime. Revoking ends that window at once, for both secrets.
- Expiry notices. Seven days before a key expires its owner, and its issuer when that is someone else, get a bell notification and a mail, once.
- A scannable shape. New keys are issued as
ext_live_…orext_test_…, with only the SHA-256 of the whole token stored and only the publicext_<env>_<id>part shown in lists and logs. Keys issued before this release keep theirek_shape and keep working, so a secret scanner needs both patterns.
{% callout type="warning" title="Breaking: a blocked IP is now 403" %}
A request from an address outside a key's ip_allowlist is refused with 403 and "error": "ip_not_allowed". In 1.4.0 it was 401. A client that reads 401 as "the key is wrong" and 403 as "the key may not do this" now sees the second one. Unknown, expired and revoked keys stay 401, now with WWW-Authenticate: Bearer error="invalid_token"; a missing scope is 403 with insufficient_scope and the scope it needed.
{% /callout %}
The security work behind the defaults
Turning writes on is only defensible if the path underneath is sound. The follow-ups from the 1.4.0 review landed in the same release:
- An approved MCP call now runs under the API key that asked for it, so the key's role, collection scopes and files access still apply — and a key revoked or narrowed while the call waited can no longer run it. A call with no key on record is refused rather than running with the approver's full permissions.
- Two concurrent approve or reject clicks can no longer both decide, and both run, the same call.
- Rejecting a pending call needs the same tool permission as approving it.
- Approvals stay open to the requester on purpose — the requester is the human who owns the agent's key, a key cannot approve anything, and blocking it would leave a single-admin install unable to approve at all. Instead the activity log records the requester, the approver, and whether it was a self-approval.
- A batch create, update or delete is charged once per entry, so a 100-item batch costs like 100 writes rather than one.
- Deploy hook delivery is pinned to the address the SSRF guard resolved, so a DNS change between the check and the request cannot reach a private host.
- Restoring a revision needs the collection Update grant where a Read grant used to be enough, and "Save as copy" now checks Create like creating an item does.
Smaller things that earn their place
- AI drafts in the item editor. An "AI draft" button turns a short brief into proposed values for the collection's text fields, checked against each field's rules — invalid values are left out and listed rather than quietly written. Previewed before they fill the unsaved form. Off by default (
AI_ITEM_DRAFTS), and it needs the newai.draftpermission. - Structured logging, opt-in.
LOG_CHANNEL=structuredwrites one JSON object per line withrequest_id, the actor, route, queued job and app version, redacting authorization headers, cookies, tokens, passwords and secrets. Every response now carriesX-Request-Idwhether or not you turn the channel on. - An AI model catalog. Curated models per provider with capabilities and a recommended / supported / deprecated status, shown on the AI settings page and printed by
php artisan ai:models. Models outside the catalog stay allowed, marked "unverified". - Live Preview before the first save. The create form's unsaved state is validated, stripped by the field ACL and stashed for the preview token's five minutes without creating an item, so a draft can be previewed before it exists.
- A per-user daily token budget next to the prompt cap, now also covering field translation.
Upgrading
# 1. Back up, and clear Settings → AI tool approvals
# 2. Get the code
git fetch upstream --tags && git merge v1.5.0
# 3. Dependencies (spatie/laravel-permission 8, Inertia 3)
composer install --no-dev --optimize-autoloader
npm ci && npm run build
# 4. Migrate — this rewrites every API key's permissions
php artisan externa:upgrade --forceDocker: pull ghcr.io/qiick-io/externa-core:1.5.0 and recreate containers.
If you maintain a fork, note that Inertia 3 changes config/inertia.php and the root template: re-apply your customisations on the new files. Pest 5, TypeScript 7 and Vite+ (Oxlint and Oxfmt, replacing ESLint and Prettier) also land in this release.
The full list, with every mapping table and behaviour change, is in the upgrade guide.
What is next
OAuth for remote MCP clients is the priority for 1.6.0: today a connector needs an API key issued by hand, and dynamic client registration is what lets a chat client connect itself. Alongside it, 1.6.0 carries the single sign-on work — login modes with SSO-only and a break-glass local login, linking and unlinking an SSO identity, optional logout at the identity provider — plus webhook endpoints with per-collection selection, and a moderation gate before publishing.
Externa auf dem eigenen Server ausprobieren
Open Source unter MIT, selbst gehostet, auf Laravel-Basis.