Repository navigation
feat(mcp): subscribe to news feeds in one step - #530
Merged
Merged
Conversation
Agents can now follow a news feed without the two-step source-then-watch dance: subscribe_feed (MCP and the assistant, admins) takes an address or a site's page and a namespace, reads the feed first and keeps it only if it works, names it by the feed's title, and adds the watch; a feed already followed is reused. news_feeds lists what's followed (addresses stay sealed) and unsubscribe_feed stops one, keeping the posts. The assistant's changes ask first outside a setup conversation, and its result never echoes the feed's own words. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SWH8a26M9wkAPq2eRrfWZK
17 of 23 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: an agent following a news feed (#453) had to create a source, then add a watch, over the generic source and watch tools.
After:
subscribe_feed(MCP with a write-scope token, and the assistant, admins only) takes a feed's address or a site's page and a namespace, reads the feed first and keeps it only if it works, names it by the feed's title, and adds the watch; a feed already followed is reused.news_feedslists what's followed (addresses stay sealed) andunsubscribe_feedstops one, keeping the posts it brought in. The assistant's versions ask first outside a setup conversation, and the result never echoes the feed's own words.How:
rss.pygainssubscribe,subscriptionsandunsubscribeon top of the existing source and watch code;mcp_tools.pyandops_tools.pyexpose them;ai_tools.pyroutes the two writes through the existing approval path. The threat model's news feed row now names who can add a feed.Motivation and Context
Agent-first (AGENTS.md): everything a person does in the web app an agent can do too, and following a feed should be one step for an agent.
Steps to reproduce (if appropriate):
pytest tests/api/test_news_feed_source.py::test_subscribing_in_one_step tests/api/test_setup_assistant.py::test_the_assistant_follows_news_feedsTypes of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Done questions (AGENTS.md)
docs/mcp.md,docs/assistant.mdanddocs/processing.mdupdated; nothing generated changed.Local CI (
ci/local-ci.sh) on the same change one commit back (6ea0612): FastAPI (embedded SurrealDB), Next.js, pre-commit and title pass; on this head the news feed, MCP and setup assistant tests pass andvalidate_threat_model.py --base origin/mainagrees.Generated by Claude Code