Skip to content

chant doctor

chant doctor [path]

chant doctor runs a series of health checks on your chant project and reports any issues. It verifies that your project structure, configuration, and type definitions are correctly set up.

CheckWhat it verifies
config-existschant.config.ts or chant.config.json exists and parses
src-directorysrc/ directory exists and contains .ts files
core-types.chant/types/core/ exists and is populated
lexicon-types.chant/types/lexicon-<name>/ exists for each configured lexicon
lexicon-compatLexicon manifest version is compatible with current chant version
stale-dirsNo orphaned .chant/types/lexicon-* directories for unconfigured lexicons
tsconfig-pathstsconfig.json has compilerOptions.paths configured
mcp-config.mcp.json exists with a chant server entry
skills-<name>Lexicon skill files are installed in skills/<name>/
Terminal window
chant doctor
# Check a specific project
chant doctor ./my-infra

Each check reports one of:

  • OK — check passed
  • WARN — non-blocking issue found
  • FAIL — blocking issue found
CodeMeaning
0All checks passed (no failures, warnings are allowed)
1One or more checks failed