Skip to main content

Unfazed MCP

Installation

pip install unfazed-mcp

Quick Start

Use in your project

# event.application.py

from unfazed.core import Unfazed
from unfazed.lifespan import BaseLifeSpan

from unfazed_mcp.backends import UnfazedFastMCP

from .endpoints import ping

event_mcp = UnfazedFastMCP(
    name="event",
)
event_mcp.tool(ping)

event_app = event_mcp.http_app(
    path="/mcp", transport="streamable-http"
)


class EventMCPLifespan(BaseLifeSpan):
    def __init__(self, app: Unfazed) -> None:
        super().__init__(app)
        self.mcp_lifespan_context = None

    async def on_startup(self) -> None:
        self.mcp_lifespan_context = event_app.lifespan(self.unfazed)
        if self.mcp_lifespan_context is not None:
            await self.mcp_lifespan_context.__aenter__()

    async def on_shutdown(self) -> None:
        if self.mcp_lifespan_context is not None:
            await self.mcp_lifespan_context.__aexit__(None, None, None)

Mount MCP appliction at root route

# entry.routes.py

from event.mcp import event_app
from unfazed.route import mount

patterns = [
    mount("/ping", app=event_app),
]

Add settings to your project

# settings.py

UNFAZED_SETTINGS = {
    "LIFESPAN": ["event.mcp.EventMCPLifespan"]
}

Metadata

Release files for unfazed-mcp 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unfazed-mcp 0.0.1
File Size Uploaded Provenance
unfazed_mcp-0.0.1.tar.gz 73.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unfazed-mcp 0.0.1
File Interpreter ABI Platform
unfazed_mcp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 80.8 kB

Release files / unfazed_mcp-0.0.1.tar.gz

Download URL unfazed_mcp-0.0.1.tar.gz
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b2e6dbbb48b9ea9007bf50b8e8b7d574cbdd5f701d441f743e0ee427257c16a
BLAKE2b-256 checksum
How to use checksums
ee21c30ade979c7b6bd60eecea241b58e71c9173fdcb0c4a5dc4b426771f3c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Release files / unfazed_mcp-0.0.1-py3-none-any.whl

Download URL unfazed_mcp-0.0.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94e08f68f184b9b7e1e7edc647e4706e02f4dca6a5c568187d57a714a0ce6024
BLAKE2b-256 checksum
How to use checksums
d34d905c53c139efdccf2f9298f045c3b48e663cfeb2565aac5f3cc3c8a4ce0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.3

Security for unfazed-mcp 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page