AIMarket MCP Packager

v2.2.0
io.github.alexar76/aimarket-plugins Checked 14 hours ago Published 5 days ago

Stdio MCP packager: AIMarket hub plugins into self-hosted MCP server products.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

package_capability

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_st…

ParameterTypeDescription
capability_id *stringFully-qualified capability identifier to package, e.g. 'translate.multi@v2'. This is the single capability the generated MCP server will expose as a tool.
name *stringHuman-readable display name for the packaged MCP server, shown to end users in MCP clients such as Claude Desktop (e.g. 'Lyra Translator').
product_id *stringOwning product ID on the AIMarket hub, e.g. 'prod-translate'. Used to namespace the Docker image and the MCP manifest.
descriptionstringOne- 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 gener…
input_schemaJSON 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.
registrystringContainer 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').

generate_dockerfile

Generate a ready-to-build Dockerfile for the packaged MCP server. Takes the same capability inputs as `package_capability` and returns the Dockerfile text that builds the self-hosted MCP server image for it. Returns: The Dockerfile contents as plain text — write it to `Dockerfile` and run `docker build` to produce the image named in `package_capability`'s `docker_image` field. Example: generate_dockerfile( capability_id="translate.multi@v2", product_id="prod-translate", name="Lyra Translator", )…

ParameterTypeDescription
capability_id *stringFully-qualified capability identifier to package, e.g. 'translate.multi@v2'. This is the single capability the generated MCP server will expose as a tool.
name *stringHuman-readable display name for the packaged MCP server, shown to end users in MCP clients such as Claude Desktop (e.g. 'Lyra Translator').
product_id *stringOwning product ID on the AIMarket hub, e.g. 'prod-translate'. Used to namespace the Docker image and the MCP manifest.
descriptionstringOne- 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 gener…
input_schemaJSON 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.
registrystringContainer 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').

generate_claude_desktop_config

Generate a claude_desktop_config.json snippet for the packaged MCP server. Takes the same capability inputs as `package_capability` and returns the `mcpServers` entry that registers the docker-run MCP server with Claude Desktop (or any MCP host that reads this config format). Returns: A JSON object (string) containing an `mcpServers` block — merge it into the user's existing `claude_desktop_config.json` and restart the host. Example: generate_claude_desktop_config( capability_id="translate.multi@v2", product_id="prod-tran…

ParameterTypeDescription
capability_id *stringFully-qualified capability identifier to package, e.g. 'translate.multi@v2'. This is the single capability the generated MCP server will expose as a tool.
name *stringHuman-readable display name for the packaged MCP server, shown to end users in MCP clients such as Claude Desktop (e.g. 'Lyra Translator').
product_id *stringOwning product ID on the AIMarket hub, e.g. 'prod-translate'. Used to namespace the Docker image and the MCP manifest.
descriptionstringOne- 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 gener…
input_schemaJSON 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.
registrystringContainer 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').