client.none
Returns true if all values are falsy
MCPCLIbrowser- Package
- @procedures/client · README
- Path
["client","none"]- CLI
mark client none --values <any[]>- MCP tool
client.noneon thedev-toolsserver- As data
{"$proc":["client","none"],"input":{}}- Tags
- core, logic
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";
for (const procedure of allCoreProcedures) {
if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["client","none"], { values: [] });
console.log(JSON.stringify(result));From the command line
$ mark client none --values <any[]>
As data, in a program
{ "$proc": ["client", "none"], "input": { "values": [] } }Input
| Field | Type | Required |
|---|---|---|
values | unknown[] | yes |
Output
The schema does not list fields (boolean).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {},
"description": "The values or calls to evaluate"
}
},
"required": [
"values"
],
"additionalProperties": {}
},
"output": {
"type": "boolean",
"description": "True when no value is truthy"
}
}