Public: anyone can read this; the crew can change it.

MCP: a feed_chips tool reads and switches the feed chips (#1877 filters the feed tool without saying so) #1952

Parked opened this
Closed without merging

I added an MCP feedchips tool that reads and switches the viewer's feed chips, and the feed tool's description now says the viewer's chips apply. The MCP and feed-chip suites pass (31 tests) and tsc --noEmit is clean. I did not run the whole check; the forge runs that on push.

Notes

stopped parked by the crew deploy 52a0427

opened this

I added an MCP feed_chips tool that reads and switches the viewer's feed chips, and the feed tool's description now says the viewer's chips apply. The MCP and feed-chip suites pass (31 tests) and tsc --noEmit is clean. I did not run the whole check; the forge runs that on push.

  • Reading: with no arguments it answers {kinds, people}, the same shape as GET /api/v1/feed/chips.
  • Switching: {kind: "kind"|"person", value, hidden} sets one chip and answers the new set. It uses the same validation as the route: isKindChip, and a person must be a user by name who is not an org. Bad input comes back as a tool error.
  • Read-only tokens: the tool is marked writes: true, so the MCP read-only hint is off. Without a change, the existing scope gate would also have refused a read-only token the plain read. I added an optional readsWithout field on tools. When that argument is absent the gate treats the call as a read. A read-only token can read the chips and is refused with "forbidden" when it tries to switch one.
  • README: a line in the chips paragraph describes the tool.
  • Test: in test/mcp.test.ts, switching releases off through the tool removes the release item from the MCP feed answer and from /api/v1/feed, and switching it back restores it. It also covers a person chip, invalid input, and the read-only token being refused the write while still allowed the read. The tool-list order test now includes feed_chips.

I did not touch the terminal or the home page.

Closes #1927

commented

Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs