Repository navigation
Description
Summary
[features] already accepts a table-form description field (mcpp 2026.11.21.1+), and mcpp search --format json / mcpp why features --format json can carry it per feature. This issue tracks making that description a first-class, discoverable piece of feature metadata so users can understand what each feature does, and so mcpp-ide can show detailed feature introductions in the editor.
Related IDE requests: mcpp-community/mcpp-ide#16 and mcpp-community/mcpp-ide#17.
Current state
-
The manifest schema allows
descriptionon a feature table entry:[features] default = [] metrics = { sources = ["src/metrics.cpp"], description = "Adds optional timing counters and pulls the counters dependency." }
-
Machine output already states
descriptionwhen the package writes it:"features": { "version": "0.1.0", "state": "declared", "from": "payload", "list": [ { "name": "metrics", "default": false, "implies": [], "enables": [], "description": "Adds optional timing counters and pulls the counters dependency." } ] }
-
The array shorthand has no description, and many existing examples / descriptors declare features without one.
What this issue asks for
1. Make feature descriptions discoverable in the manifest docs and examples
- Expand
docs/06-features-and-capabilities.mdso thedescriptionfield is presented as the intended way to explain a feature's purpose, not only an optional display string. - Add
descriptionto theexamples/11-featuresfeature declarations, showing both the table form and what the description means for a consumer. - State the expected shape: one concise line, optional, no build semantics; absent means the consumer sees only the feature name.
2. Keep the description available through every feature query
- Ensure
mcpp search --format json,mcpp why features --format json, and any future per-package feature query return the samedescriptionfield for manifest descriptors and installed payloads. - Keep the field optional: a feature without a description must still resolve and list normally.
- Confirm index descriptors can carry the same description inline, so published packages can explain their features without requiring the payload to be installed.
3. Prepare the contract for mcpp-ide feature details
mcpp-ide only reads mcpp's machine contract and does not parse index descriptors or human-readable output. To support hover, completion details, package-detail panels, and feature checkboxes, the feature metadata should already carry enough information for the IDE to render an introduction:
| Field | Purpose |
|---|---|
name |
Feature identifier shown in completion, hover, and UI lists |
default |
Whether the feature is in the package's default set |
implies |
Features this one activates transitively |
enables |
Dependency/feature edges this feature opens |
description |
One-line explanation of what the feature does and when a consumer should enable it |
The IDE side can later consume this through mcpp-ide protocol requests; this issue is about keeping the mcpp-side metadata complete, documented, and machine-readable.
Use cases
- A user browsing dependencies sees what
metrics,no-freetype,backend-openblas, or similar features actually do before choosing them. - Hover over a feature name in
features = [...]shows the description instead of only the identifier. - A package-detail panel lists optional features with their purpose, default state, and implied features.
- Feature checkboxes can show a short explanation beside each name, reducing manual TOML editing and spelling mistakes.
Non-goals
- No change to feature resolution, additive semantics, default-feature handling, or capability binding.
- No editor-specific UI design in this repository; mcpp-ide owns the presentation layer.
- No requirement that every existing feature gain a description; the field remains optional.
Notes
This follows #992, which added machine-readable package features to JSON queries. The remaining gap is mainly documentation, example coverage, and confirming that descriptions flow consistently from manifest descriptors, index descriptors, and installed payloads into the queries mcpp-ide consumes.
Activity
speak-agent commentedon Nov 26, 2026
Duplicate of #1018: the same text, submitted twice. #1018 tracks the request.