Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Repository files navigation

@zuplo/mcp

Caution

The package is deprecated and no longer supported. Use the official SDK instead.

@zuplo/mcp is a stateless, remote server first MCP SDK that aims to be "minimum common API" compliant as defined by the WinterTC. It uses the fetch APIs and is intended to work out of the box on Zuplo, Node, Deno, Workerd, etc.

📝 Documentation

Quickstart

  1. Create an MCP server:
const server = new MCPServer({
  name: "Example Server",
  version: "1.0.0",
});
  1. Add some tools:
server.addTool({
  name: "add",
  description: "Adds two numbers together and returns the result.",
  validator: new ZodValidator(
    z.object({
      a: z.number().describe("First number"),
      b: z.number().describe("Second number"),
    }),
  ),
  handler: async ({ a, b }) => ({
    content: [{ type: "text", text: String(a + b) }],
    isError: false,
  }),
});
  1. Wire up your MCP server with a transport:
const transport = new HTTPStreamableTransport();
await transport.connect();

server.withTransport(transport);
  1. Handle a Request:
const response = await transport.handleRequest(httpRequest);

🤝 Contributing

See the CONTRIBUTING.md for further details.

Attributions

Inspired by, with MIT Licensed attributions to, the official modelcontextprotocol/typescript-sdk

About

A fetch API based TypeScript SDK for MCP

Topics

Resources

Code of conduct

Contributing

Stars

22 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages