MCP ExplorerExplorer

Mcp Durable Object Client

@Dhravyaon 9 months ago
60 MIT
FreeCommunity
AI Systems
testing mcps

Overview

What is Mcp Durable Object Client

mcp-durable-object-client is a client implementation that utilizes durable objects to interact with an MCP server, allowing for persistent and reliable communication.

Use cases

Use cases for mcp-durable-object-client include scenarios where users need to perform calculations (e.g., ‘Can you add 5 and 6?’), and receive immediate responses from the server, making it suitable for chat applications, online games, and other interactive platforms.

How to use

To use mcp-durable-object-client, first install the necessary dependencies in both the root directory and the ‘/server’ directory using ‘npm i’. Then, start the server by running ‘npm run start’ in the ‘server/’ directory and start the client by running ‘npm run start’ in the root directory.

Key features

Key features of mcp-durable-object-client include the use of durable objects for reliable state management, easy setup with npm, and the ability to make server calls and receive responses seamlessly.

Where to use

mcp-durable-object-client can be used in applications that require persistent connections and reliable state management, such as real-time data processing, collaborative applications, and interactive web services.

Content

🤖 MCP Client as a durable object

This example shows a working pattern using durable objects as an MCP client.

To start, install depdencies in / and /server

npm i

To start the server, run npm run start in server/

To start the client, run npm run start in /

Ask Can you add 5 and 6?

The client will make a call to the server, get the response and show it to the client.

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers