mcp-authentication-samples
If you are the rightful owner of mcp-authentication-samples and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This is a sample implementation of a Model Context Protocol (MCP) server that serves programming jokes with token-based authentication using FastAPI.
The MCP Joke Server with Authentication is a demonstration server that provides programming-related jokes through a Model Context Protocol (MCP) interface. It is built using FastAPI and features token-based authentication to secure its Server-Sent Events (SSE) endpoint. The server cycles through a collection of programming jokes, delivering a different joke each time it is called. It is designed to integrate with GitHub Copilot in VS Code, allowing users to receive jokes directly in their development environment. The server is intended for educational and demonstration purposes, highlighting the use of MCP tools and authentication mechanisms in a simple, yet effective manner.
Features
- Token-based authentication for secure access to the SSE endpoint.
- Integration with GitHub Copilot in VS Code for joke delivery.
- FastAPI-based HTTP server for efficient request handling.
- Cycles through a collection of programming jokes.
- Implements a single MCP tool called 'tell_joke'.
Tools
tell_joke
Returns a different programming joke on each invocation.