FastMCP-based hot update MCP server demo

FastMCP-based hot update MCP server demo

hot-update-mcp-server•bywhitejoce

A demo MCP server built on FastMCP that dynamically loads and registers tool functions, letting utilities be updated without restarting the server.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Supports dynamic loading of utility functions as MCP tools.
  • •Manages tools through JSON configuration files.
  • •Provides real-time hot update capability with detailed error handling and logging.
  • •Executes tool code from the JSON file and registers found functions as MCP tools.

BEST FOR

  • •Developers who want to update MCP tool functions without restarting the server.

ABOUT HOT-UPDATE-MCP-SERVER

FastMCP-based hot update MCP server demo is cataloged as an MCP server attributed to whitejoce. A demo MCP server built on FastMCP that dynamically loads and registers tool functions, letting utilities be updated without restarting the server. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for FastMCP-based hot update MCP server demo are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are tools configured in this server?

Tools are defined in a JSON configuration file, where each entry includes a name, description, and code.

Is the current implementation safe for production?

The README warns that the current implementation uses exec() to run code read from the JSON file and that additional security measures are required for production.

Upstream README

View this exact version on GitHub

README.md · 51deda103ce6 · Fetched 2026-11-13 10:59:37 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Hot Update Server Demo

中文文档 | DeepWiki for this Repository

This is a hot update server example based on the FastMCP framework, allowing dynamic loading and updating of utility functions without restarting the server.

Features

  • Supports dynamic loading of utility functions
  • Manage tools via JSON configuration files
  • Real-time hot update capability
  • Detailed error handling and logging

Key Code

exec(tool_code, globals(), local_namespace)
if inspect.isfunction(obj) and obj.__name__ in local_namespace:
     if found_func is not None:
          # Handle potential duplicate function definition if needed
          pass # Or log a warning, raise an error, etc.
     found_func = obj
if found_func:
     # Add the tool to MCP using the database name
     mcp.tool(
          name=tool_name, description=tool_description
     )(found_func)
     print(f"Successfully registered tool '{tool_name}'")

🚀 Quick Start

1️⃣ Environment Setup

Make sure you have Python 3.7+ installed. Then, install the required library:

$ pip install fastmcp
  • fastmcp: Python implementation library for MCP.

2️⃣ Run MCP Server

$ python server.py
  • The tools.json file format is as follows:
[
     {
          "name": "Tool Name",
          "description": "Tool Description",
          "code": "def function_name(params):\n    # Function implementation\n    return result"
     }
]

Security Notes

⚠️ Important Security Warning:

  • The current implementation uses exec() to execute code read from the JSON file
  • Additional security measures are required for production environments:
    • Code signature verification
    • Sandbox environment restrictions
    • Code review mechanisms
    • Access control

Development Suggestions

  1. Test all utility functions in the development environment
  2. Ensure the JSON file format is correct
  3. Add appropriate error handling
  4. Implement a code review process
  5. Consider adding version control mechanisms

Workflow

graph TD
     A[Start Server] --> B[Load tools.json]
     B --> C{Parse JSON}
     C -->|Success| D[Iterate Tool List]
     C -->|Failure| E[Output Error Log]
     D --> F[Execute Tool Code]
     F --> G{Code Execution}
     G -->|Success| H[Register to MCP]
     G -->|Failure| I[Output Error Log]
     H --> J[Server Running]
     J --> K[Wait for New Requests]

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for FastMCP-based hot update MCP server demo from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/hot-update-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools