Skip to main content

Documentation Index

Fetch the complete documentation index at: https://redop.useagents.site/docs/llms.txt

Use this file to discover all available pages before exploring further.

If a resource can change over time, mark it as subscribable and notify clients when the underlying data changes.

Step 1: Allow subscriptions

app.resource("notes://latest", {
  name: "Latest notes",
  subscribe: true,
  handler: async () => ({
    type: "text",
    text: JSON.stringify(["draft roadmap"]),
  }),
});

Step 2: Notify on change

app.notifyResourceChanged("notes://latest");
Clients that subscribed to that URI can then receive a resources/updated notification.