Skip to content

Add @pins header, trim oversized preset descriptions - #61

Merged
trick77 merged 1 commit into
masterfrom
trim-descriptions-add-pins
Jul 29, 2026
Merged

Add @pins header, trim oversized preset descriptions#61
trick77 merged 1 commit into
masterfrom
trim-descriptions-add-pins

Conversation

@trick77

@trick77 trick77 commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Why

Preset @description blocks had grown into multi-paragraph essays — mcp-litellm was 1363 chars. That text renders in full in three places (install confirm, batch preview, list -l), so every install prompt was a wall of prose. Meanwhile the one fact worth scanning — which third-party version a preset pins — was buried in that prose or visible only inside the JSON body.

Descriptions

Trimmed the ten presets whose description exceeded 450 chars to one or two sentences. There was a clean gap in the data at that line (480 → 420), so it splits the catalogue without argument; the other eleven were already short and are untouched.

before after
mcp-litellm 1363 159
mcp-vscode 913 246
mcp-playwright 879 186
plugin-litellm-pricing 814 155
mcp-litellm-passthrough 774 227
provider-litellm 670 155
permissions-build-tools 652 216
permissions-container-info 519 157
permissions-shell-safe 510 152
plugin-superpowers 480 96

@pins

New optional, repeatable header recording a third-party artifact installed at an exact version:

// @pins: @playwright/mcp 0.0.78

Shown on the install confirmation (Pins : @playwright/mcp @ 0.0.78) and under list -l. Applied to the four presets that install something third-party: jdtls-lombok (lombok 1.18.46), mcp-playwright, plugin-litellm-pricing (0.2.0), plugin-superpowers (tag v6.2.0).

Drift guards

Metadata that duplicates a version rots when only one side gets bumped. Two tests close that:

  • every @pins version must appear in the body or @fetch line it describes
  • every @fetch dest must be referenced by the body or @path — catches bumping @fetch to lombok 1.18.47 while the -javaagent flag still points at 1.18.46, which would boot jdtls against a jar that was never downloaded

A third test caps descriptions at 450 chars so they can't regrow.

Also

  • README.md documents @pins; the built-in preset table lists pinned versions
  • AGENTS.md gains @pins and the description rule, and is trimmed 6748 → 5280 chars
  • No @version bumps — prose-only edits don't change a preset's payload

109 tests pass.

Descriptions had grown into multi-paragraph essays — mcp-litellm was
1363 chars — and they render in full on the install confirm, the batch
preview and `list -l`. Trim the ten over 450 chars to one or two
sentences; leave the eleven that were already short alone.

Promote pinned third-party versions out of prose into `@pins: name
version`, a repeatable optional header shown on the install confirm and
in `list -l`, so you can see what a preset drags in before saying yes.
Applied to the four presets that install something third-party.

Two tests guard the metadata against drift: every @pins version must
appear in the body or @fetch it describes, and every @fetch dest must be
referenced by the body or @path — so a version bump can't land on one
side only. A third caps descriptions at 450 chars so they can't regrow.
@trick77
trick77 merged commit 08887f5 into master Jul 29, 2026
3 checks passed
@trick77
trick77 deleted the trim-descriptions-add-pins branch July 29, 2026 09:59
@trick77 trick77 mentioned this pull request Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant