package_capability
Package a capability as a standalone MCP server. Generates Docker image, MCP manifest, pricing tiers, and connection string for easy deployment.
Instructions
Build a complete self-hosted MCP server package for an AIMarket capability.
Use this first. It assembles everything needed to ship the capability as a standalone MCP server: the Docker image name, the MCP manifest (server + tool definition), subscription/pricing tiers, and a connection string.
Returns:
A JSON object (string) with keys:
- docker_image: the image name to build/run.
- mcp_manifest: the full MCP manifest (server metadata + tools).
- subscription_tiers: pricing tiers derived for the capability.
- connection_string: how a client connects to the running server.
Example: package_capability( capability_id="translate.multi@v2", product_id="prod-translate", name="Lyra Translator", description="Translate text into multiple languages.", input_schema={"type": "object", "properties": {"text": {"type": "string"}}, "required": ["text"]}, )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable display name for the packaged MCP server, shown to end users in MCP clients such as Claude Desktop (e.g. 'Lyra Translator'). | |
| registry | No | Container registry namespace for the built image. Defaults to 'aifactory'. Set your own org/namespace to publish under a different account (e.g. 'ghcr.io/acme'). | aifactory |
| product_id | Yes | Owning product ID on the AIMarket hub, e.g. 'prod-translate'. Used to namespace the Docker image and the MCP manifest. | |
| description | No | One- or two-sentence summary of what the capability does. Surfaced in the MCP manifest and the Claude Desktop config. Optional but strongly recommended — it becomes the tool description in the generated server. | |
| input_schema | No | JSON Schema object describing the capability's input. For example, an object with a required string property 'text'. Omit or pass null for a schema-less capability. | |
| capability_id | Yes | Fully-qualified capability identifier to package, e.g. 'translate.multi@v2'. This is the single capability the generated MCP server will expose as a tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |