Decorators
Decorator API reference for TypeScript and Python
Every NitroStack capability is declared with a decorator. This section lists each one with its options and an example, grouped by what it does.
TypeScript uses PascalCase decorators from @nitrostack/core (@Tool, @Module, @Injectable). Python uses snake_case decorators from nitrostack (@tool, @module, @injectable). Where both exist, the signature is shown in TypeScript and Python tabs.
MCP Primitives
Expose tools, resources, and prompts to clients.
Controllers and Modules
Group features and configure the server.
Pipeline
Attach guards, middleware, interceptors, pipes, and filters.
Caching and Rate Limiting
Cache results and limit how often a tool runs.
Dependency Injection
Make classes injectable and mark pipeline classes.
Widgets and Observability
Attach UI to tools, report health, and react to events.
