← All procedures

cue.add

Add a feature to dependencies.json

MCPCLI
Package
@procedures/cue · README
Path
["cue","add"]
CLI
mark cue add --feature <string>
MCP tool
cue.add on the dev-tools server
As data
{"$proc":["cue","add"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/cue"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["cue","add"], { feature: "<feature>" });
console.log(JSON.stringify(result));

From the command line

$ mark cue add --feature <string>

As data, in a program

{ "$proc": ["cue", "add"], "input": { "feature": "<feature>" } }

Input

FieldTypeRequiredDefaultDescription
featurestringyesThe feature: git, npm, ts, node, node-cjs, react, vite, vite-react, cue or vitest
cwdstringnoThe folder of the package (default: the current folder)

Output

FieldTypeRequiredDefaultDescription
successbooleanyesTrue when the feature is in dependencies.json after the call
featurestringyesThe feature
addedbooleanyesTrue when the call added the feature (false when it was there already)
messagestringnoA message about the result
errorstringnoThe reason of a failure (when success is false)
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "feature": {
        "type": "string",
        "description": "The feature: git, npm, ts, node, node-cjs, react, vite, vite-react, cue or vitest"
      },
      "cwd": {
        "description": "The folder of the package (default: the current folder)",
        "type": "string"
      }
    },
    "required": [
      "feature"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {
        "type": "boolean",
        "description": "True when the feature is in dependencies.json after the call"
      },
      "feature": {
        "type": "string",
        "description": "The feature"
      },
      "added": {
        "type": "boolean",
        "description": "True when the call added the feature (false when it was there already)"
      },
      "message": {
        "description": "A message about the result",
        "type": "string"
      },
      "error": {
        "description": "The reason of a failure (when success is false)",
        "type": "string"
      }
    },
    "required": [
      "success",
      "feature",
      "added"
    ],
    "additionalProperties": {}
  }
}