Serves user-specific tools dynamically via a Model Context Protocol (MCP) server, integrating with external APIs for permission-based tool generation.
This tool implements a Model Context Protocol (MCP) server in Python, leveraging FastMCP to dynamically generate and serve tools. It intelligently fetches user-specific schemas from an external API, creating tailored tools with fields based on individual user permissions. Designed for performance and reliability, it includes features like intelligent caching with TTL for schemas and tools, graceful degradation to static tools if the API is unavailable, comprehensive logging, and thread-safe handling of concurrent requests. This allows for highly customizable and secure tool exposure to various users within a system.