@Provider, inject them into tools, resources, prompts, and agents with this.get().
Defining Providers
Create a provider with a name and (optional) scope:useClass, useValue or useFactory) needs a name. @FrontMcp, @App, @Plugin and @Agent
take any of the three; up to 1.9.0 they refused useClass objects, and useValue objects unless the value was an
instance of a @Provider class.
Provider Scopes
'session' and 'request' are kept as deprecated aliases of 'context'.
Injecting Providers
Usethis.get() or this.tryGet() inside any context class:
Registering Providers
Register providers at the server or app level:Server-level providers are shared across all apps. App-level providers are isolated to their app.
Learn More
Providers Guide
Full guide to defining, scoping, and composing providers
@Provider Reference
Complete decorator API reference