mcp-hmr


Namemcp-hmr JSON
Version 0.0.2.3 PyPI version JSON
download
home_pageNone
SummaryHot Reloading for MCP Servers
upload_time2025-10-23 01:40:05
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseMIT
keywords mcp hot-reload hmr reload server
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mcp-hmr

[![PyPI - Version](https://img.shields.io/pypi/v/mcp-hmr)](https://pypi.org/project/mcp-hmr/)
[![PyPI - Downloads](https://img.shields.io/pypi/dw/mcp-hmr)](https://pepy.tech/projects/mcp-hmr)

Provides [Hot Module Reloading](https://pyth-on-line.promplate.dev/hmr) for MCP/FastMCP servers.

It acts as **a drop-in replacement for `mcp run path:app` or `fastmcp run path:app`.** Both [FastMCP v2](https://github.com/jlowin/fastmcp) and the [official python SDK](https://github.com/modelcontextprotocol/python-sdk) are supported.

## Usage

If your server instance is named `app` in `./path/to/main.py`, you can run:

```sh
mcp-hmr ./path/to/main.py:app
```

Which will be equivalent to `fastmcp run ./path/to/main.py:app` but with [HMR](https://github.com/promplate/hmr) enabled.

Or using module import format:

```sh
mcp-hmr main:app
```

Now, whenever you save changes to your source code, the server will automatically reload without dropping the connection to the client.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mcp-hmr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "mcp, hot-reload, hmr, reload, server",
    "author": null,
    "author_email": "Muspi Merol <me@promplate.dev>",
    "download_url": null,
    "platform": null,
    "description": "# mcp-hmr\n\n[![PyPI - Version](https://img.shields.io/pypi/v/mcp-hmr)](https://pypi.org/project/mcp-hmr/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dw/mcp-hmr)](https://pepy.tech/projects/mcp-hmr)\n\nProvides [Hot Module Reloading](https://pyth-on-line.promplate.dev/hmr) for MCP/FastMCP servers.\n\nIt acts as **a drop-in replacement for `mcp run path:app` or `fastmcp run path:app`.** Both [FastMCP v2](https://github.com/jlowin/fastmcp) and the [official python SDK](https://github.com/modelcontextprotocol/python-sdk) are supported.\n\n## Usage\n\nIf your server instance is named `app` in `./path/to/main.py`, you can run:\n\n```sh\nmcp-hmr ./path/to/main.py:app\n```\n\nWhich will be equivalent to `fastmcp run ./path/to/main.py:app` but with [HMR](https://github.com/promplate/hmr) enabled.\n\nOr using module import format:\n\n```sh\nmcp-hmr main:app\n```\n\nNow, whenever you save changes to your source code, the server will automatically reload without dropping the connection to the client.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Hot Reloading for MCP Servers",
    "version": "0.0.2.3",
    "project_urls": {
        "Homepage": "https://github.com/promplate/hmr"
    },
    "split_keywords": [
        "mcp",
        " hot-reload",
        " hmr",
        " reload",
        " server"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6e9187a5ed3a58bf4deeee9e4dd837d48d8fb412f7149ad2d90ac15f69e0caed",
                "md5": "9af7e338704cdb3d7d1f3eb9a9ad4da5",
                "sha256": "b27c2bbf27b3e2e1a5806276ca751fc3575fdbb3d609cfa3e65352b5ff9f3750"
            },
            "downloads": -1,
            "filename": "mcp_hmr-0.0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9af7e338704cdb3d7d1f3eb9a9ad4da5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 3688,
            "upload_time": "2025-10-23T01:40:05",
            "upload_time_iso_8601": "2025-10-23T01:40:05.419124Z",
            "url": "https://files.pythonhosted.org/packages/6e/91/87a5ed3a58bf4deeee9e4dd837d48d8fb412f7149ad2d90ac15f69e0caed/mcp_hmr-0.0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-23 01:40:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "promplate",
    "github_project": "hmr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mcp-hmr"
}
        
Elapsed time: 2.89552s