eMCP
by joeymeere
eMCP is a fork of the LiteMCP TS library with extended features like built-in authentication handling and custom middleware. It's designed as a near drop-in replacement for LiteMCP with optional added features.
Last updated: N/A
What is eMCP?
eMCP is an extended version of the LiteMCP library, providing a framework for creating MCP (Microservice Communication Protocol) servers with built-in authentication and custom middleware support.
How to use eMCP?
Install eMCP via npm or bun. Define your server with a name and version, and optionally configure an authentication handler. Add tools with names, descriptions, parameters, and execute functions. Use custom middleware to intercept and modify requests and responses.
Key features of eMCP
All current LiteMCP features
Built-in authentication handler
Custom layered middleware support
Near drop-in replacement for LiteMCP
Optional added features
Use cases of eMCP
Building microservices that require authentication
Implementing custom request logging and monitoring
Adding request validation and transformation
Creating reusable middleware components
Extending existing LiteMCP servers with new functionality
FAQ from eMCP
What is MCP?
What is MCP?
Microservice Communication Protocol
Is eMCP a complete replacement for LiteMCP?
Is eMCP a complete replacement for LiteMCP?
Yes, it's designed as a near drop-in replacement.
How do I add authentication?
How do I add authentication?
Implement the authenticationHandler function when creating the eMCP server.
Can I chain multiple middleware?
Can I chain multiple middleware?
Yes, middleware runs in order of registration.
What frameworks can eMCP integrate with?
What frameworks can eMCP integrate with?
The roadmap includes integration into frameworks like Hono.