## Full example: build, sign, install and use ```bash # 1. write manifest.json and content/ (see the page for your extension type) # 2. sign aancer-pack sign manifest.json content/ -o acme.invoice-desk-1.0.0.ancpack --key acme.key aancer-pack verify acme.invoice-desk-1.0.0.ancpack --pubkey acme.pub # 3. import into a test installation and read the summary curl -s -X POST "$AANCER/api/extensions/packs/import" \ -H "Authorization: Bearer $TOKEN" --data-binary @acme.invoice-desk-1.0.0.ancpack | jq '.items, .warnings' # 4. activate curl -s -X POST "$AANCER/api/extensions/packs/acme.invoice-desk/activate" \ -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ -d '{"version":"1.0.0","parameters":{"target_workspace":"ws-test","policies":"ks_booking_rules"}}' # 5. create an agent from the blueprint curl -s -X POST "$AANCER/api/agents" \ -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ -d '{"workspaceId":"ws-test","name":"Invoice clerk","blueprintId":"pack:acme.invoice-desk:invoice-clerk"}' ``` ## Common errors | Code | Status | Message | Fix | |---|---|---|---| | `PACK_UNSIGNED` | 422 | This pack is not signed (MANIFEST.sig is missing). | Sign with `aancer-pack sign` | | `PACK_SIGNATURE_INVALID` | 400 | This pack could not be verified, the signature is invalid. | Re-sign after every change | | `PACK_SIGNER_UNKNOWN` | 422 | This pack was signed by an unknown key (...). | Add the trust key | | `PACK_SCHEMA_INVALID` | 422 | The pack failed validation: ... | Fix the named path. Also used when the unzipped pack is too large | | `PACK_TOO_LARGE` | 413 | The pack file is too large. | Applies to the file size only | | `PACK_REVOKED` | 403 | This pack version was withdrawn by the platform (...). | Install the fixed version named in the message | | `PACK_LICENCE_REQUIRED` | 403 | This connector pack needs an active licence. | Activate the licence, then import again | | `PACK_LICENCE_MISMATCH` | 403 | This connector pack was issued for a different licence. | Ask for a pack issued to this installation | | `PACK_CONTENT_FORBIDDEN` | 422 | The connector archive contains forbidden content: ... | Remove the named files | | `PACK_PIECE_NAME_TAKEN` | 409 | A connector named ... is already installed on this platform. | Use another package name | | `EXTENSION_NOT_FOUND` | 404 | ... not found. | Check the pack id or object id | | `PACK_VERSION_CONFLICT` | 409 | Pack ... is already imported with different content. Bump the version. | Bump the version | | `PACK_PARAMETER_MISSING` | 422 | Required parameters are missing: ... | Send them on activate | | `EXTENSION_REFERENCED` | 409 | Other active extensions still reference objects in this pack: ... | Retire dependants first | | `FORBIDDEN` | 403 | You are not allowed to do that. | Check the permission in the answer | | (no code) | 403 | Permission denied | The answer names the missing `permission` | | `VALIDATION` | 400 | version is required | Send `version` on activate | | MCP | 401 | Authorization: Bearer mcp_… required | Send the `Authorization` header | | MCP | 401 | Invalid token format — expected mcp_… token | Use an MCP token, not a session or API token | | MCP | 401 | Invalid or revoked token | Issue a new token | | `MCP_FACADE_REQUIRES_APPROVAL` | JSON-RPC error | The tool call needs a person's approval before it runs | Approve it in AANCER, then call again | | MCP | 403 | The MCP Server facade is not included in your current license. | The installation needs the MCP server licence feature | | MCP | 403 | Origin not in token allow-list | Match `allowedOrigins`, or issue a token without it for server use | | `INVALID_TOKEN_SCOPE` | 400 on issue, 403 on `/mcp/v1` | scope must be { tools: string[], resources: string[] } | Fix the token body, or use a tool inside the token's scope | ## Limits and editions - The MCP server and personal MCP tokens need licence features of your installation. Registering external MCP servers is available to administrators with the MCP permissions. - Pack import and activation are controlled by permissions, with per-type licence features listed on each page. - Check your edition on [aancer.ai/pricing](https://aancer.ai/pricing). End of AANCER Developer Reference (English): every field, limit and error code. All parts: https://aancer.ai/dev/llms.txt