Quick-reference guide to core configuration specs, runtime environment variables, OAuth callback allowlists, publishing limits, and the MCP Apps (
2026-01-26) protocol methods, container matrix, request budgets, and error codes for Qoder's open ecosystem.
1. Core Files & Directory Conventions
| Extension Type | Required Files | Common Optional Files / Directories | Specification |
|---|---|---|---|
| Skill | SKILL.md (YAML frontmatter with name, description) | references/, scripts/, assets/ | Skill Specification |
| Plugin | .qoder-plugin/plugin.json (also supports .claude-plugin/plugin.json, with the former taking precedence) | .mcp.json (or mcp.json), skills/, commands/, agents/, hooks/hooks.json, local server artifacts, README.md | Plugin Specification |
| App Plugin (with UI) | Same as Plugin + MCP Server & ui:// HTML resources | skills/, icon data URLs, CSP & host extension configs | Protocol & Host Capabilities |
| Connector | Public HTTPS MCP Server URL + OAuth 2.0 | No ZIP upload required | Connector Specification |
Built-in Runtime Variables (.mcp.json)
| Variable | Description |
|---|---|
${QODER_PLUGIN_ROOT} (legacy alias: ${CLAUDE_PLUGIN_ROOT}) | Absolute path to the installed Plugin root directory (never hardcode local machine paths) |
${QODER_NODE_RUNTIME} | Path to the Qoder host's built-in Node.js executable (recommended for local Node stdio MCP servers) |
OAuth 2.0 Callback Allowlist (Global)
| Scenario | Exact Callback URL (character-for-character match) |
|---|---|
| Production integration and current test publishing page authorization | https://mcp.qoder.com/api/mcp/oauth_callback |
| Dedicated test pipeline | https://mcp-test.qoder.ai/api/mcp/oauth_callback |
2. Publishing Center Asset & Package Limits
| Item | Format & Hard Limit |
|---|---|
| Extension ZIP package (Plugin / Skill) | .zip, ≤ 20 MB per package; Plugin root must contain .qoder-plugin/plugin.json directly |
| Extension icon | PNG / JPG / GIF / WebP / SVG, ≤ 1 MB |
| Showcase screenshots | Up to 6 images, 16:9 aspect ratio, 640×360–3840×2160, ≤ 1 MB each |
| Self-test report documents | PDF / DOCX / Markdown, up to 10 files, ≤ 20 MB each |
| Publisher avatar / logo | JPG / PNG, ≤ 100 KB (for review use only) |
| Publisher bio / contact phone | Bio ≤ 128 characters; country code + local digits 7–15 digits total |
3. App Plugins (MCP Apps 2026-01-26) Protocol Reference
1. Protocol Methods & Container Support Matrix
| Method / Notification | SDK Call or Raw Message | inline Card | fullscreen Standalone View | Prerequisites / Notes |
|---|---|---|---|---|
ui/initialize / ui/notifications/initialized | app.connect() | Supported | Supported | Register the message listener before handshaking |
ui/notifications/tool-input / tool-result / tool-cancelled | app.ontoolresult, etc. | Supported | Supported | Render tool-result directly on first paint without re-running the entry tool |
ui/notifications/host-context-changed | app.onhostcontextchanged | Supported | Supported | Incremental updates for theme, dimensions, route, and model context |
tools/call | app.callServerTool({ name, arguments }) | Supported | Supported | Restricted to App-visible tools on the same Server |
resources/list / resources/read | Standard MCP resource methods | Supported | Supported | Restricted to the same Server |
ui/message | app.sendMessage({ role, content, _meta }) | Subject to session capability | Subject to session capability | role must be "user"; returns {} on success |
ui/update-model-context | app.updateModelContext({ content, structuredContent }) | Subject to session capability | Subject to session capability | Pass {} or { content: [] } to withdraw context |
ui/open-link | app.openLink({ url }) | Supported | Supported | Check openLinks capability and isError |
ui/request-display-mode | app.requestDisplayMode(...) | Returns current mode | Returns current mode | Does not migrate containers in place |
ui/notifications/size-changed | Raw notification { height } | Supported | N/A | inline only; report positive integer height |
ui/download-file | app.downloadFile({ contents }, options) | Supported | Supported | Returns { isError: true } if user cancels |
ui/resource-teardown | Respond {} to cleanup request | Supported | Supported | Release listeners, timers, and pending requests |
ui/notifications/request-teardown | App requests host to close view | Not supported | Supported | Standalone view only |
qoder/files/open / pick / subscribe-drop | Raw requests | Subject to capability | Subject to capability | Check experimental["qoder/files"] and sub-flags |
ping / sandbox-proxy-ready | Keepalive & sandbox readiness | Supported | Supported | ping returns {} on success |
prompts/get / sampling/createMessage / resources/templates/list | — | Not supported | Not supported | Explicitly unsupported |
2. Available hostContext Fields
| Field | Description |
|---|---|
theme | "light" / "dark" |
displayMode / availableDisplayModes | Current active container mode and available modes |
containerDimensions | { maxWidth, maxHeight } layout bounds |
locale / timeZone / platform | UI locale, timezone, and platform ("desktop") |
deviceCapabilities | { touch, hover } |
qoder/deepLink | { url: "/your/route" } (object, not a bare string) |
qoder/modelContext | Accepted context (including updateId); null once withdrawn |
hostContextdoes not provide: host color CSS variables, safe-area insets, chatsessionId,cwd, workspace name, or execution host type (for reading session metadata, see Protocol & Host Capabilities).
3. Budgets & Size Limits
KiB/MiBare binary units; the20,000,000HTML limit is in decimal bytes. Layered budgets apply simultaneously.
| Target | Limit / Constraint |
|---|---|
| UI HTML payload | Decoded UTF-8 ≤ 20,000,000 bytes; MIME must be text/html;profile=mcp-app |
Tool resourceUri | ≤ 8,192 chars (ui:// + hostname; no credentials or control characters) |
Entry tool icons data URL | ≤ 65,536 chars (PNG / JPEG / WebP / GIF) |
Entry tool title | Recommended ≤ 8 Chinese chars / ≤ 15 English chars (layout guidance) |
ui/message total request / single text block | ≤ 2 MiB / ≤ 64 KiB |
| Model context (per entry / per instance / per session) | ≤ 128 KiB / ≤ 2 MiB / ≤ 8 MiB; titles and group names exceeding 512 chars are truncated |
| Shared in-flight host request budget | 2 per App instance / 32 global (shared across state, messages, context, and file open) |
| State & context subscription limits | 256 each for instance state and session context subscriptions; context concurrent reads 2 / timeout 30s |
| Local file picker | Extensions: 1–16 lowercase alphanumeric chars (no leading dot); up to 16 files per batch |
| File downloads & concurrency | Up to 8 files / 16 MiB decoded total per batch; 1 per window / 4 global; SDK default timeout 60s |
| Resource response / standalone view envelope | 4 MiB / 5 MiB (includes JSON and base64 overhead; also constrains downloads) |
Host settings form (qoder/settings) | Up to 64 fields / 128 layout items / 16 groups; pattern ≤ 512 chars; concurrency 16 global, 2 per Server, timeout 30s |
App deep link / session navigation sessionId | Deep link total length ≤ 32,768; sessionId length 1–128 ([a-zA-Z0-9_-]) |
4. App Plugin Error Codes
| Error Code | Meaning | Recommended Handling |
|---|---|---|
MCP_APP_SESSION_REVOKED | Instance closed or origin access revoked | Stop sending requests on this instance; prompt user to reopen or re-authorize |
MCP_APP_SESSION_EXPIRED | View instance expired / released | Do not reuse the old instance; guide user to reopen |
MCP_APP_SERVER_UNAVAILABLE | MCP Server temporarily unavailable | Check server status; once recovered, run a read-only refresh first |
MCP_APP_TOOL_NOT_ALLOWED | Tool is not visible to App, crosses Servers, or is ambiguous | Verify Server ownership, tools/list, and _meta.ui.visibility |
MCP_APP_READ_ONLY_TOOL_REQUIRED | Entry tool must be read-only | Remove side effects and set annotations.readOnlyHint: true |
MCP_APP_HOST_REQUEST_LIMIT | Shared in-flight host request budget exceeded | Queue, throttle, and coalesce redundant requests |
MCP_APP_CONTEXT_BUSY | Concurrent model context read/write limit exceeded | Serialize context updates and reduce update frequency |
MCP_APP_CONTEXT_SNAPSHOT_CHANGED | Context changed concurrently while message send was frozen | Re-verify latest context and session before deciding whether to resend |
MCP_APP_FILE_OPEN_UNAVAILABLE | File-open capability unavailable or invalid path | Verify capability flag, absolute path, and regular-file readability |
MCP_APP_RESOURCE_MIME_TYPE_INVALID | Invalid HTML resource MIME type | Set MIME type strictly to text/html;profile=mcp-app |
MCP_APP_RESOURCE_TOO_LARGE | HTML exceeds 20,000,000 bytes | Trim bundle size and inline assets |
MCP_APP_RESOURCE_MISMATCH | Declared resourceUri does not match resources/read result | Keep URI identical character-for-character between tool definition and resources/read |
MCP_APP_RESOURCE_CONTENT_INVALID | UI resource content is not valid HTML | Return a local HTML shell instead of a raw remote URL |
MCP_APP_HOST_WATCH_LIMIT | State/context subscription limit exceeded | Clean up redundant listeners and stale instance subscriptions |