Skip to content

Commit 9e33d5e

Browse files
committed
Update ProxyToSelf class description for accuracy
1 parent b6df6ac commit 9e33d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/agents/examples/build-mcp-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class WeatherWorker extends WorkerEntrypoint<Env> {
5555
**How it works:**
5656
* **TypeScript methods as MCP tools:** Each public method in your class is exposed as an MCP tool that agents can call. In this example, getWeather is the tool that fetches data from an external weather API.
5757
* **Automatic tool documentation:** JSDoc comments define the tool description, parameters, and return values, so Claude knows exactly how to call your method and interpret the response.
58-
* **Build-in MCP compatibility:** The `ProxyToSelf` class handles all MCP protocol requirements
58+
* **Build-in MCP compatibility:** The `ProxyToSelf` class translates incoming requests into relevant JS RPC methods
5959
* **Enforced type safety:** Parameter and return types are automatically derived from your TypeScript definitions
6060

6161
## Get Started

0 commit comments

Comments
 (0)