← All procedures

cue.generate

Generate config files from dependencies.json

MCPCLI
Package
@procedures/cue · README
Path
["cue","generate"]
CLI
mark cue generate
MCP tool
cue.generate on the dev-tools server
As data
{"$proc":["cue","generate"],"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","generate"], {});
console.log(JSON.stringify(result));

From the command line

$ mark cue generate

As data, in a program

{ "$proc": ["cue", "generate"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
cwdstringnoThe folder of the package (default: the current folder)

Output

FieldTypeRequiredDefaultDescription
successbooleanyesTrue when every file was generated
resolvedFeaturesstring[]yesThe features with their dependencies
generatedstring[]yesThe files that the call wrote
messagestringnoA message about the result
errorstringnoThe reason of a failure (when success is false)
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "cwd": {
        "description": "The folder of the package (default: the current folder)",
        "type": "string"
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {
        "type": "boolean",
        "description": "True when every file was generated"
      },
      "resolvedFeatures": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The features with their dependencies"
      },
      "generated": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The files that the call wrote"
      },
      "message": {
        "description": "A message about the result",
        "type": "string"
      },
      "error": {
        "description": "The reason of a failure (when success is false)",
        "type": "string"
      }
    },
    "required": [
      "success",
      "resolvedFeatures",
      "generated"
    ],
    "additionalProperties": {}
  }
}