Example of a MCP implementation using TypeScript and OAuth.
Overview
What is MCP Server Demo?
MCP Server Demo is an illustrative implementation of a Model Context Protocol (MCP) server using TypeScript and OAuth, designed to showcase architectural patterns and security considerations.
How to use MCP Server Demo?
To use the MCP Server Demo, clone the repository, install dependencies, set up environment variables, and run the server in development or production mode.
Key features of MCP Server Demo?
- Integration of MCP TypeScript SDK for server setup.
- OAuth 2.0 token validation for secure tool calls.
- Management of workspace context and multi-tenancy.
- Firestore integration for data handling.
- Use of Zod for schema definition and validation.
Use cases of MCP Server Demo?
- Demonstrating secure multi-tenant server architecture.
- Learning how to integrate OAuth 2.0 in server applications.
- Exploring TypeScript and Firestore in a practical context.
FAQ from MCP Server Demo?
- Is this a production-ready server?
No, this is a demo and not a complete production-ready server.
- What are the prerequisites?
Node.js, npm or yarn, and access to a Google Cloud Project with Firestore enabled are required.
- Can I contribute to this project?
Yes, feel free to open issues or submit pull requests for improvements.