This repository demonstrates a durable object pattern for an MCP client, showcasing communication between a client and server. The client sends a request to the server, which processes it and
This example demonstrates a functional pattern employing durable objects to implement an MCP (Management Component Protocol) client. The project is structured with a client and a server component.
To begin, install the necessary dependencies in both the root directory /
and the /server
directory using the command npm i
.
To initiate the server, navigate to the server/
directory and execute npm run start
. Similarly, to launch the client, run npm run start
from the root directory /
.
The project showcases a simple interaction: asking "Can you add 5 and 6?". The client then sends a request to the server, receives the computed result, and displays it to the client-side interface. This illustrates the durable object's role in handling requests and responses within the MCP client architecture.
MIT
Dhravya/mcp-durable-object-client
March 6, 2025
March 23, 2025
TypeScript