Skip to content

MCP: align runtime with FastMCP-first architecture #4

@Abiorh001

Description

@Abiorh001

Summary

The MCP server is presented as a FastMCP server, but the current implementation still depends on a FastAPI wrapper for lifespan, health routes, middleware, and webhook mounting.

This creates confusion for contributors and deployment complexity for maintainers.

Problem

The current architecture mixes:

  • FastMCP tool server
  • FastAPI application wrapper
  • FastAPI lifecycle hooks
  • FastAPI-specific exception and webhook handling

This makes the MCP server harder to understand, harder to test, and harder to evolve.

What needs to happen

  • decide whether the MCP server is:
    • truly FastMCP-first, or
    • FastMCP mounted inside FastAPI by design
  • clean up the runtime to match that decision
  • document the architecture clearly

Acceptance criteria

  • runtime architecture is clearly defined
  • unnecessary FastAPI coupling is removed or clearly documented
  • startup and shutdown behavior is consistent
  • local run path and production run path are documented

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghigh priorityfor high priority issue/taskmcpmcp servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions