epicweb-dev

EpicMe MCP

Community epicweb-dev
Updated

EpicMe MCP

This is an example of an application that's exclusively accessible via ModelContext Protocol (MCP).

Everything from user registration and authentication to interacting with userdata is handled via MCP tools.

The goal is to demonstrate a possible future of applications where usersinteract with our apps via natural language with LLMs and the MCP protocol. Thiswill also be the basis upon which I will teach how to build MCP tools onEpicAI.pro.

Authentication

The authentication flow is unique because we need to be able to go through OAuthfor users who don't exist yet (users need to register first). So we generate agrant automatically without the user having to go through the OAuth flowthemselves. Then we allow the user to claim the grant via a TOTP code which isemailed to them.

This works well enough.

Known Issues

During development, if you delete the .wrangler directory, you're deleting thedynamically registered clients. Those clients don't know that their entries havebeen deleted so they won't attempt to re-register. In the MCP Inspector, you cango in the browser dev tools and clear the session storage and it willre-register. In other clients I do not know how to make them re-register.

MCP Server ยท Populars

MCP Server ยท New