hearthis-mcp 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Feed sync (https://hearthis.at/imports/): `list_feeds`, `add_feed`, `edit_feed`, `check_feed`, `remove_feed` - podcast and
6
+ SoundCloud feeds whose new episodes come in as sounds every hour; changed titles and descriptions follow the feed unless
7
+ the user changed them on hearthis.at. Premium, up to 3 feeds per profile.
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  - Workflows (https://hearthis.at/workflows/): `list_workflows`, `create_workflow`, `edit_workflow`, `delete_workflow`,
package/README.md CHANGED
@@ -46,6 +46,7 @@ key on save* and save. Every client with the old pair loses access; run `npx hea
46
46
  | Sets | `list_my_sets`, `get_set`, `add_to_set`, `edit_set`, `remove_from_set`, `delete_set` |
47
47
  | Groups | `list_groups`, `get_group`, `create_group`, `join_group`, `edit_group`, `group_track`, `group_approve`, `group_block`, `group_member_role`, `delete_group` |
48
48
  | Messages | `list_conversations`, `read_conversation`, `poll_messages`, `send_message`, `delete_conversation` |
49
+ | Feeds | `list_feeds`, `add_feed`, `edit_feed`, `check_feed`, `remove_feed` |
49
50
  | Workflows | `list_workflows`, `create_workflow`, `edit_workflow`, `delete_workflow`, `order_workflows`, `test_workflow`, `apply_workflow`, `get_workflow_run`, `cancel_workflow_run`, `workflow_history`, `undo_workflow`, `list_control_tags`, `workflow_webhook` |
50
51
 
51
52
  Tools that delete, overwrite, undo or publish carry the MCP `destructiveHint`, so clients ask before running them;
package/dist/tools.js CHANGED
@@ -829,4 +829,46 @@ export function registerTools(server, api) {
829
829
  kind: 'read',
830
830
  run: ({ q }) => api.get('/my/control-tags/', { q }),
831
831
  });
832
+ // Feed sync (https://hearthis.at/imports/): podcast/RSS feeds that bring their new episodes in as sounds
833
+ const feedId = z.number().int().positive();
834
+ tool('list_feeds', {
835
+ title: 'Synced feeds',
836
+ description: 'The podcast/RSS feeds the account keeps in sync - looked at hourly: new episodes become sounds, a changed title or ' +
837
+ 'description follows the feed unless the user changed it on hearthis.at. With feed_id one feed and its latest episodes.',
838
+ input: { feed_id: feedId.optional() },
839
+ kind: 'read',
840
+ run: ({ feed_id }) => api.get(feed_id ? `/my/feeds/${feed_id}/` : '/my/feeds/'),
841
+ });
842
+ tool('add_feed', {
843
+ title: 'Keep a feed in sync',
844
+ description: 'Keeps a podcast/RSS feed in sync (Premium, at most 3 per profile). start "new" (default): only episodes that appear later; "all": every ' +
845
+ 'episode, a few per hour - episodes imported before are taken over, not imported twice. private: new episodes come in private. ' +
846
+ 'Imported episodes are public unless private - ask before adding a feed with start "all".',
847
+ input: { url: z.string().url().max(500), private: z.boolean().optional(), start: z.enum(['new', 'all']).optional() },
848
+ kind: 'write',
849
+ run: ({ url, private: bolPrivate, start }) => api.post('/my/feeds/', { url, private: bit(bolPrivate), start }),
850
+ });
851
+ tool('edit_feed', {
852
+ title: 'Change a synced feed',
853
+ description: 'private: new episodes come in private; paused: true pauses the sync, false resumes it (also after errors).',
854
+ input: { feed_id: feedId, private: z.boolean().optional(), paused: z.boolean().optional() },
855
+ kind: 'write',
856
+ run: ({ feed_id, private: bolPrivate, paused }) => api.post(`/my/feeds/${feed_id}/`, {
857
+ private: bit(bolPrivate), paused: bit(paused),
858
+ }),
859
+ });
860
+ tool('check_feed', {
861
+ title: 'Check a feed now',
862
+ description: 'Looks at a synced feed now: notes new episodes and changed titles or descriptions; the episodes themselves come in with the next runs (every 5 minutes). Once every 5 minutes per feed.',
863
+ input: { feed_id: feedId },
864
+ kind: 'write',
865
+ run: ({ feed_id }) => api.post(`/my/feeds/${feed_id}/check/`),
866
+ });
867
+ tool('remove_feed', {
868
+ title: 'Stop syncing a feed',
869
+ description: 'Stops keeping the feed in sync. The sounds it brought stay.',
870
+ input: { feed_id: feedId },
871
+ kind: 'destructive',
872
+ run: ({ feed_id }) => api.post(`/my/feeds/${feed_id}/delete/`),
873
+ });
832
874
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hearthis-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "MCP server for hearthis.at - lets an AI assistant browse, upload, edit and message as your account (Premium members)",
5
5
  "keywords": [
6
6
  "mcp",