Description
What is asked
A machine-readable statement of the features a package declares, by package and version:
| Field | Meaning |
|---|---|
name |
the feature |
default |
whether it is on without being named |
implies |
the features it turns on |
description |
one line for a reader; optional, from the package's descriptor |
Either in each package of mcpp search --format json, or as a query of one package. A name in
features of mcpp --protocol-version (for example package-features) lets a client tell that the
answer is there.
Why
mcpp-ide shows only what mcpp states and does not read an index's descriptors (mcpp-ide AGENTS.md,
"Only mcpp's contract"). Two requests there ask for a package's features in the editors:
mcpp-community/mcpp-ide#16 and mcpp-community/mcpp-ide#17 (completion inside features = [...], a
hover, a diagnostic for an unknown name, checkboxes in a package's detail).
Until mcpp states them, mcpp-ide answers the features of path and workspace dependencies only,
which it reads from the dependency's own mcpp.toml.
What mcpp states now
mcpp 2026.11.9.1, on compat.harfbuzz of the mcpplibs index, whose descriptor declares
features = { ["no-freetype"] = {} }:
mcpp search harfbuzz --format json: the package hasdescription,id,index,licenses,
name,namespace,repo,versions. No features.mcpp xpkg parse <descriptor> --format json:datahasgenerated_contents,generated_files,
import_std,include_dirs,name,namespace,sources,standard,targets,
unknown_keys,versions. No features.
Not asked
No change to how features resolve, and no editor concept. A descriptor's description of a feature is
optional; without it the query still answers the names.
Activity
2026.11.21.1: the test and CI design (mtest 0.11), the home's unit ca…
speak-agent commentedon Nov 22, 2026
Released in mcpp 2026.11.21.1 (#984):
mcpp search --format jsonstates the features of each package's newest version (features:version,state,from,list), read from the index or the installed payload, and installs nothing;mcpp why features [--format json]lists each package of the resolved graph with the features it declares and those the build activates.--protocol-versionlistspackage-features(SPEC-004 §16, docs/06).