MCPcopy Index your code
hub / github.com/Dhravya/mcp-durable-object-client

github.com/Dhravya/mcp-durable-object-client @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
42 symbols 117 edges 18 files 9 documented · 21%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🤖 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

Core symbols most depended-on inside this repo

cn
called by 14
src/lib/utils.ts
handlePostMessage
called by 2
src/transport.ts
formatTime
called by 1
src/app.tsx
HANDLER
called by 1
src/mcp-server-do.ts
createMcpServer
called by 1
src/mcp-server-do.ts
fetch
called by 1
src/mcp-server-do.ts
handleMessage
called by 1
src/transport.ts
send
called by 1
src/transport.ts

Shape

Function 23
Method 13
Class 6

Languages

TypeScript100%

Modules by API surface

src/transport.ts9 symbols
src/server.ts7 symbols
src/mcp-server-do.ts7 symbols
src/components/ui/card.tsx6 symbols
src/components/ui/avatar.tsx3 symbols
src/app.tsx3 symbols
src/utils.ts2 symbols
src/lib/utils.ts1 symbols
src/components/ui/textarea.tsx1 symbols
src/components/ui/switch.tsx1 symbols
src/components/ui/input.tsx1 symbols
src/components/ui/button.tsx1 symbols

For agents

$ claude mcp add mcp-durable-object-client \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact