← All procedures

procedure.manifest

The manifest of the registry: each exposed procedure with its schemas and effects

MCPCLIbrowser
Package
@procedures/client · README
Path
["procedure","manifest"]
CLI
mark procedure manifest
MCP tool
procedure.manifest on the dev-tools server
As data
{"$proc":["procedure","manifest"],"input":{}}
Tags
core, meta

Try it in the Composer →

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(["procedure","manifest"], {});
console.log(JSON.stringify(result));

From the command line

$ mark procedure manifest

As data, in a program

{ "$proc": ["procedure", "manifest"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
namespacestringnoOnly the procedures under this first path segment

Output

FieldTypeRequiredDefaultDescription
formatstringyesThe format of the manifest
hashstringyesA hash of the entries: two manifests with the same hash describe the same procedures
proceduresobject[]yesThe procedures, in the order of their keys
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "namespace": {
        "description": "Only the procedures under this first path segment",
        "type": "string"
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "format": {
        "type": "string",
        "const": "procedures.manifest/1",
        "description": "The format of the manifest"
      },
      "hash": {
        "type": "string",
        "description": "A hash of the entries: two manifests with the same hash describe the same procedures"
      },
      "procedures": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "path": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "key": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "key"
          ],
          "additionalProperties": {}
        },
        "description": "The procedures, in the order of their keys"
      }
    },
    "required": [
      "format",
      "hash",
      "procedures"
    ],
    "additionalProperties": {}
  }
}