Commit 258ecfb
committed
mcp(fix[resources]): lead format-strings reference with subset disclaimer
The ``tmux://reference/format-strings`` resource lists ~25 of tmux's
~200 format variables. Without a clear "this is a subset" signal at
the top, an agent that reads the body and doesn't find e.g.
``#{history_size}`` (one of the 175 omitted strings) may erroneously
conclude that string is unsupported and skip a ``display_message``
call that would have worked. The closing ``man tmux`` line existed
but came after the substantive content — too easy to miss in a
top-down skim.
Adds a leading note declaring the resource a curated cheat sheet,
not the complete catalog, and points readers at ``man tmux`` for
anything not listed. Also softens the ``get_format_string_reference``
docstring's "avoids hallucinated format names" claim — the resource
is now honest about being a subset, so the docstring framing
matches.
Test: ``test_format_string_reference_leads_with_subset_disclaimer``
asserts both that the disclaimer keywords are present AND that the
disclaimer precedes the first format-variable example, so a future
edit can't quietly move the disclaimer to the bottom (recreating the
original problem).1 parent b20d651 commit 258ecfb
2 files changed
Lines changed: 52 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
240 | 277 | | |
241 | 278 | | |
242 | 279 | | |
| |||
0 commit comments