zcaceres/easy-mcp — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a TypeScript library called EasyMCP that makes it really simple to create Model Context Protocol servers without writing a bunch of boilerplate.

I want someone to be able to define tools, prompts, resources, resource templates, and roots with a friendly Express like API. They should also be able to use an experimental decorator style where class methods automatically become MCP tools, prompts, or resources, and the inputs are inferred as much as TypeScript allows.

Include a context object for tools so they can log messages, report progress, read resources, and access request metadata. Make the developer experience feel safe and typed, but keep the basic examples very short and easy to understand.

Please include examples for a minimal server, a decorator based server, and a more complete server that shows optional arguments, descriptions, templates, prompts, and progress logging. Use Bun and TypeScript. Don’t add unsupported MCP features like SSE or sampling yet. Look up current MCP docs online if needed.

Want more depth? Deep Reverse