This page is the developer reference for apps and the 2026 MCP features. For the user view see Make it an app. For the page runtime itself (storage, AI, sandbox) see Page runtime API.
Every part is on by default. The flags apps.shelf, apps.install, mcp.tasks, mcp.skills and share.live stay as off switches only. Routes below are in cloud-api unless the heading says otherwise. Errors have the shape {error, message}.

App package

An artifact app is an artifacts record with these additive columns. Vendor apps (an MCP App from a connected server) are rows in vendor_apps: owner, connector id, server URL, ui:// resource, name, icon, tool allow-list and a tier of browser or app only. We cannot vouch for vendor code, so a vendor app is never full. Installs are rows in app_installs (kind artifact or vendor, app ref, pinned version, granted_tier, granted_capabilities, pinned), unique per user, kind and ref.

Tiers

Capability names in granted_capabilities and the snapshot are storage, ai, tasks, events, skill and connector:CONNECTOR/TOOL. Docs, Slides and Sheets artifacts cannot be apps: 422 kind_not_installable.

App routes

The server stores the grant and asks again only when the tier rises or the snapshot adds a capability (growth-only consent). The check runs in artifact_runtime.rs, never in the UI alone. The runtime context response carries app: {tier, granted_tier, needs_consent, requested_tier, added_capabilities}, or null for a plain page.

Handoff

A Desktop window or a launcher opens an app without a workspace session on the app domain, using a one-time token. session starts aps_ and is accepted as a Bearer token for that artifact’s runtime only: 403 app_session_wrong_app, 401 app_session_invalid, 401 app_session_required. App origins never use a workspace session, and CORS for *.allternitusercontent.com is allowed on the exchange and runtime routes only. Tokens are stored as hashes. Caps for live links are 3 active links and 20 GB a month per account. Hosted links are https://SUB.allternitusercontent.com; live links are https://SUB.live.allternitusercontent.com. Without APP_DOMAIN set, a hosted link falls back to https://ai.allternit.com/app/SUB and a live link has no url. auth_mode is public, signed_in or org.

The x-allternit v2 bridge

MCP Apps is the one host protocol: ui/initialize, tools/list, tools/call, resources/*, prompts/list, ui/open-link and ui/download-file. Allternit adds an extension under x-allternit, announced in ui/initialize (ALLTERNIT_EXT_VERSION is 2). Which methods are advertised depends on the app’s tier; a call below the tier fails with the MCP error tier_too_low in error.data. Runtime errors travel in the MCP error data as {code}.

Mirror tools

mcp.allternit.com mirrors the extension as ordinary tools, so an exported app works in a host that does not know the extension. One SDK shim picks the path. A mirror tool returns the runtime result in structuredContent, or isError with {code}. It obeys the same tier as the extension. Older drafts of these tools used dotted names; use the underscore names. Old pages that post {allternit: 1} messages keep working through an adapter in PageRuntimeFrame.tsx, and the sandbox proxy script allternit-ext.js serves both versions. Stored page code is not rewritten.

MCP App export

The owner turns on export_mcp per app (top level in the PUT .../app body; gizzi app export SLUG --mcp sets it). The edge then serves the app’s ui:// resource and its tools to other AI clients, and an outside MCP App can be installed here in the same shape. The mirror tools above carry storage and AI.

MCP Tasks

Long-running tools return a task instead of blocking. Task state lives at the server, in the edge table mcp_tasks, and the allternit-api proxy stays stateless. On mcp.allternit.com. These edge tools return a task: phone_tap, phone_type, phone_open_app, phone_tool, phone_task, mail_read_otp, decide, respond, agent_send, shell.exec, http.get, http.post and inference.execute_routed_turn. A task needing approval is waiting with a link elicitation; accepting re-checks the stored approval. A client opts in by declaring the tasks extension on the request. Tasks belong to an owner (user, client or target). Through the proxy. allternit-api’s POST /mcp/user-proxy passes tasks through. Task ids it returns are CONNECTOR_ID:UPSTREAM_TASK_ID, and these methods are routed to that connector: Servers on older protocol versions are not told about tasks at initialize. The Rust client (mcp/mcp-client) opts in with with_tasks(); call_tool returns ToolOutcome::Complete or ToolOutcome::Task, and wait_for_task polls to the end. A task result is accepted only for a tools/call that declared the extension.

Chat events

gizzi publishes mcp.task on its event stream with {sessionID, part}; the part has type: "mcp-task", taskId, status, toolName, title, optional statusMessage, progress, elicitation, result and error. allternit-api passes these on as mcp_task. Cancel with POST /api/v1/mcp/task/{id}/cancel (URL-encode the id; it contains a colon). The web card and the terminal row both read these.

Elicitation forwarding

When an upstream server sends elicitation/create, the proxy forwards it to the client and returns the answer.
  • A client opts in with Accept: text/event-stream plus the elicitation capability, or _meta["allternit/elicitation"] = true. The call is then answered as a stream; the elicitation arrives as an event, and the client posts the JSON-RPC response to the same endpoint.
  • Without opt-in, or after the 120 second timeout, the request is declined or cancelled. Older servers that send elicitation/create get a decline rather than a hang.
  • In chat the part is mcp-elicitation with mode form or url, an id of TASK_ID:KEY, and requestedSchema or {url, elicitationId}. Reply with POST /api/v1/mcp/elicitation/{id}/reply and body {action: "accept" | "decline" | "cancel", content?}.
  • Elicitation from the 2025-11-25 protocol era is not routed to the UI.

Events and watches

allternit-api polls a server’s events while a session is live. Routes under /api/v1/mcp: Errors: 404 event_not_found, 404 connector_not_found, 422 poll_unsupported, 422 unsupported, 429 too_many_watches (20 per user), 502. Watches are held in memory. The shape of the upstream events/poll request and result is not yet checked against the final spec. Webhook delivery covers the case where no session is live; see MCP events.

Agent Skills over MCP

The edge serves skills as resources with the capability io.modelcontextprotocol/skills. Only SKILL.md is listed; supporting files are readable by address. An unknown address is error -32002. Clients consume skills with McpClient::list_skills and read_skill; GET /api/v1/mcp/skills in allternit-api lists them as [{server, connectorId, uri, name, description}]. gizzi has MCP_SKILLS on by default.

Cloud skills API

User and org skills are stored in cloud-api (cloud_skills). Caps: 256 KB, 40 files and 100 skills per owner. Errors: invalid_skill_md, invalid_skill, 409 name_taken, 403 admin_required, 404 not_found. Org writes need org admin and fail closed. Erasing an account deletes its skills.

Server Card

mcp.allternit.com publishes two discovery documents, so other AI apps can find and add it. Allternit’s connect screen reads other servers’ cards the same way: Add on a card connects that server.