FastMCP
wireup.integration.fastmcp¶
Attributes¶
inject = starlette_inject
module-attribute
¶
Inject dependencies into FastMCP tools running over HTTP transports.
Classes¶
Functions¶
get_app_container(app)
¶
Return the container associated with the given application.
This is the instance created via wireup.create_async_container.
Use this when you need the container outside of the request context lifecycle.
get_request_container()
¶
When inside a request, returns the scoped container instance handling the current request.
This is what you almost always want.It has all the information the app container has in addition to data specific to the current request.
setup(container, mcp)
¶
Integrate Wireup with a FastMCP instance.