Add a capability to an existing project
mcpgen_addAdd a tool, prompt, or resource to an existing mcpgen-generated project using a parsed JSON capability spec, with optional dry-run and force settings.
Instructions
Add a tool, prompt, or resource to an existing mcpgen-generated project (mcpgen add). spec is the parsed JSON spec object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Project root; default . | |
| kind | Yes | tool, prompt, or resource | |
| spec | Yes | The capability spec object (same shape as the spec file) | |
| force | No | ||
| dryRun | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| fix | No | ||
| code | No | ||
| error | No | ||
| result | No | ||
| exit_code | No |