pack_plugin_dir
Pack a real on-disk plugin folder into propose_plugin_preview JSON (modules + schema_json + dependencies).
PREFERRED authoring: write files on disk with the MCP client, then pack once.
Folder layout: Scene.tsx (required entry) schema.json package.json (dependencies) plugin.json (optional id/name/description/category) components/, lib/ (multi-file)
Skips node_modules, dist, lockfiles. Returns propose_plugin_args ready for propose_plugin_preview.
Requires filesystem access (stdio MCP on the machine). On HTTP MCP, use the pack CLI: node mcp-server/scripts/pack-plugin.mjs ./my-plugin --out packed.json
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "pack_plugin_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Override plugin id (else plugin.json / folder name). | |
| name | No | Override display name. | |
| path | Yes | Absolute or relative path to the plugin project folder. | |
| category | No | ||
| description | No |