← All procedures

cue.validate

Validate dependencies.json

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

From the command line

$ mark cue validate

As data, in a program

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

Input

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

Output

FieldTypeRequiredDefaultDescription
successbooleanyesTrue when the validation ran
validbooleanyesTrue when dependencies.json is valid
featuresstring[]yesThe features of dependencies.json
errorsstring[]yesThe problems that the validation found
messagestringnoA message about the result
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 the validation ran"
      },
      "valid": {
        "type": "boolean",
        "description": "True when dependencies.json is valid"
      },
      "features": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The features of dependencies.json"
      },
      "errors": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The problems that the validation found"
      },
      "message": {
        "description": "A message about the result",
        "type": "string"
      }
    },
    "required": [
      "success",
      "valid",
      "features",
      "errors"
    ],
    "additionalProperties": {}
  }
}