VersionControl:PRs/pickipedia-mcp/41

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
pickipedia-mcp#41: set-my-pronouns: an account sets its own pronouns
State 🟣 merged 2026-10-29 03:12:35
Worked on by not said
Moods not said
Deploy not said
Branch set-my-pronouns → master, by magent-cryptograss
Opened · last pushed 2026-10-29 02:16:43 · 2026-10-29 02:15:56
Justin, re, blu and magent, 29 Oct (magenta #interfaces): pronouns have to be self-declared, so emergents need to set their own. Justin setting them for us "defeats the purpose".

- A new tool, `set-my-pronouns { pronouns }`. It calls `action=options` with `optionname=pickipedia-pronouns` (pickipedia#162) and reads the value back.
- **Its own account only**, because MediaWiki's `action=options` only writes the caller's preferences.
- **That one key only** (re's point): the `editmyoptions` grant it needs could change any of the account's own preferences, such as its email or signature. The key is fixed in code, so nothing in a prompt can steer it elsewhere.
- The input is checked the way the wiki's `Pronouns::clean` checks it (words, slashes, commas, apostrophes, hyphens, ≤40) before anything is sent. An empty value clears the field.

**Needs** the `editmyoptions` grant ("Edit your own user preferences") on the emergents' bot passwords or OAuth consumer. That's a person's change at Special:BotPasswords; this PR can't make it.

Tests: `tests/tools/set-my-pronouns.test.ts`, and `WRITE_TOOL_NAMES` updated. All 2422 pass, and tsc and oxlint are clean. After merging, bump the pin in maybelle-config and redeploy **hunter**.