Skip to content

fix: starlight dependency #21435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: Build MCP servers with the Agents SDK
description: The Agents SDK now includes built-in support for building remote MCP servers directly as part of your Agent.
products:
- agents
- workers
date: 2025-04-07T13:00:00Z
---

import { Render, PackageManagers, TypeScriptExample } from "~/components";

The Agents SDK now includes built-in support for building remote MCP (Model Context Protocol) servers directly as part of your Agent. This allows you to easily create and manage MCP servers, without the need for additional infrastructure or configuration.

The SDK includes a new `MCPAgent` class that extends the `Agent` class and allows you to expose resources and tools over the MCP protocol, as well as authorization and authentication to enable remote MCP servers.

<TypeScriptExample>

```ts
export class MyMCP extends McpAgent<Env> {
server = new McpServer({
name: "Demo",
version: "1.0.0",
});

async init() {
this.server.resource(`counter`, `mcp://resource/counter`, (uri) => {
// ...
});

this.server.tool(
"add",
"Add two numbers together",
{ a: z.number(), b: z.number() },
async ({ a, b }) => {
// ...
},
);
}
}
```

</TypeScriptExample>

See [the example](https://github.com/cloudflare/agents/tree/main/examples/mcp) for the full code and as the basis for building your own MCP servers, and the [client example](https://github.com/cloudflare/agents/tree/main/examples/mcp-client) for how to build an Agent that acts as an MCP client.

To learn more, review the [announcement blog](https://blog.cloudflare.com/building-ai-agents-with-mcp-authn-authz-and-durable-objects) as part of Developer Week 2025.

### Agents SDK updates

We've made a number of improvements to the [Agents SDK](/agents/), including:

- Support for building MCP servers with the new `MCPAgent` class.
- The ability to export the current agent, request and WebSocket connection context using `import { context } from "agents"`, allowing you to minimize or avoid direct dependency injection when calling tools.
- Fixed a bug that prevented query parameters from being sent to the Agent server from the `useAgent` React hook.
- Automatically converting the `agent` name in `useAgent` or `useAgentChat` to kebab-case to ensure it matches the naming convention expected by [`routeAgentRequest`](/agents/api-reference/calling-agents/#calling-your-agent).

To install or update the Agents SDK, run `npm i agents@latest` in an existing project, or explore the `agents-starter` project:

```sh
npm create cloudflare@latest -- --template cloudflare/agents-starter
```

See the full release notes and changelog [on the Agents SDK repository](https://github.com/cloudflare/agents/blob/main/packages/agents/CHANGELOG.md) and
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: Create fully-managed RAG pipelines for your AI applications with AutoRAG
description: AutoRAG lets you create fully-managed, retrieval-augmented generation (RAG) pipelines that continuously updates and scales on Cloudflare.
products:
- autorag
- vectorize
date: 2025-04-07T6:00:00Z
hidden: true
---

[AutoRAG](/autorag) is now in open beta, making it easy for you to build fully-managed retrieval-augmented generation (RAG) pipelines without managing infrasturcture. Just upload your docs to [R2](/r2/get-started/), and AutoRAG handles the rest: embeddings, indexing, retrieval, and response generation via API.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: Browser Rendering REST API is Generally Available, with new endpoints and a free tier
title: Browser Rendering REST API is Generally Available, with new endpoints and a free tier
description: Browser Rendering updates - free tier and REST API GA with new endpoints
products:
- browser-rendering
date: 2025-04-07T6:00:00Z
hidden: true
---

We’re excited to announce Browser Rendering is now available on the [Workers Free plan](https://www.cloudflare.com/plans/developer-platform/), making it even easier to prototype and experiment with web search and headless browser use-cases when building applications on Workers.
Expand All @@ -27,7 +26,7 @@ curl -X 'POST' 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browse

```

For the full list of endpoints, check out our [REST API documentation](/browser-rendering/rest-api/). You can also interact with Browser Rendering via the [Cloudflare TypeScript SDK](https://github.com/cloudflare/cloudflare-typescript).
For the full list of endpoints, check out our [REST API documentation](/browser-rendering/rest-api/). You can also interact with Browser Rendering via the [Cloudflare TypeScript SDK](https://github.com/cloudflare/cloudflare-typescript).

We also recently landed support for [Playwright](/browser-rendering/platform/playwright/) in Browser Rendering for browser automation from Cloudflare [Workers](/workers/), in addition to [Puppeteer](/browser-rendering/platform/puppeteer/), giving you more flexibility to test across different browser environments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ title: Durable Objects on Workers Free plan
description: Durable Objects now available on Workers Free plan.
products:
- durable-objects
- workers
- workers
date: 2025-04-07T06:00:00Z
hidden: true
---

Durable Objects can now be used with zero commitment on the [Workers Free plan](/workers/platform/pricing/) allowing you to build AI agents with [Agents SDK](/agents/), collaboration tools, and real-time applications like chat or multiplayer games.
Durable Objects can now be used with zero commitment on the [Workers Free plan](/workers/platform/pricing/) allowing you to build AI agents with [Agents SDK](/agents/), collaboration tools, and real-time applications like chat or multiplayer games.

Durable Objects let you build stateful, serverless applications with millions of tiny coordination instances that run your application code alongside (in the same thread!) your durable storage. Each Durable Object can access its own SQLite database through a [Storage API](/durable-objects/best-practices/access-durable-objects-storage/). A Durable Object class is defined in a Worker script encapsulating the Durable Object's behavior when accessed from a Worker. To try the code below, click the button:
Durable Objects let you build stateful, serverless applications with millions of tiny coordination instances that run your application code alongside (in the same thread!) your durable storage. Each Durable Object can access its own SQLite database through a [Storage API](/durable-objects/best-practices/access-durable-objects-storage/). A Durable Object class is defined in a Worker script encapsulating the Durable Object's behavior when accessed from a Worker. To try the code below, click the button:

[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/staging/hello-world-do-template)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ products:
- durable-objects
- workers
date: 2025-04-07T06:00:00Z
hidden: true
---

SQLite in Durable Objects is now generally available (GA) with 10GB SQLite database per Durable Object. Since the [public beta](https://blog.cloudflare.com/sqlite-in-durable-objects/) in September 2024, we've added feature parity and robustness for the SQLite storage backend compared to the preexisting key-value (KV) storage backend for Durable Objects.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Workflows is now Generally Available
description: Workflows is now GA - ship Workflows that you can rely on in production.
products:
- workflows
- workers
date: 2025-04-07T13:00:00Z
hidden: true
---

import { Render, PackageManagers, TypeScriptExample } from "~/components"
Expand Down
Loading