█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

NitroStack

MCP servers के लिए एक decorator-आधारित TypeScript framework, जिसमें dependency injection, auth और React widgets पहले से शामिल हैं

Agent Frameworks & Buildersओपन सोर्स
भाषा
TypeScript
लाइसेंस
Apache-2.0
$npx @nitrostack/cli init my-server
संक्षेप में

NitroStack क्या है?

NitroStack MCP servers के लिए एक decorator-आधारित TypeScript framework, जिसमें dependency injection, auth और React widgets पहले से शामिल हैं. यह Agents & Automation टूल्स की Agent Frameworks & Builders श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: नया प्रोजेक्ट scaffold करें.

सारांश

NitroStack एक open-source TypeScript framework है, जिससे Model Context Protocol (MCP) servers बनाए जाते हैं। ये वे backends हैं जो tools, resources और prompts को AI assistants के लिए उपलब्ध कराते हैं। protocol SDK से हाथ से server जोड़ने के बजाय, आप हर tool को Zod input schema वाले decorated class method के रूप में घोषित करते हैं, और registration, validation और server runtime framework संभालता है। इसके README के अनुसार यह एक opinionated (यानी पहले से तय तरीकों वाला), batteries-included framework है। इसका डिज़ाइन enterprise backend frameworks से काफ़ी प्रेरित है: modules, dependency-injection container, guards, interceptors, pipes और exception filters।

The NitroStudio desktop app home screen, with Add Server and Generate buttons above a searchable list of recent MCP projects
NitroStudio's launcher: open or add an MCP server project, or generate a new one.NitroStack README ↗

प्रोजेक्ट तीन npm packages में बंटा है: `@nitrostack/core` (decorators, DI और server runtime), `@nitrostack/cli` (scaffolding, dev server और code generators) और `@nitrostack/widgets` (interactive tool-output UIs के लिए React SDK)। एक साथी desktop app, NitroStudio, NitroStack साइट से अलग से डाउनलोड होता है। उसमें project folder खोलकर आप dev server चला सकते हैं, tools execute कर सकते हैं, request और response payloads देख सकते हैं, widgets का preview कर सकते हैं और built-in AI assistant के ज़रिए server के साथ chat कर सकते हैं।

दो बातें इसे सिर्फ़ MCP SDK से अलग करती हैं। पहली, authentication framework का हिस्सा है। JWT, OAuth 2.1 और API keys बिल्कुल तैयार मिलते हैं और guards के ज़रिए हर tool पर अलग से लागू किए जा सकते हैं। दूसरी, कोई tool widget भी रख सकता है: `@Widget` decorator से जुड़ा React component, ताकि नतीजा raw JSON के बजाय interactive UI के रूप में दिखे। एक method पर decorators का एक ही stack API परिभाषित कर सकता है, input validate कर सकता है, auth लागू कर सकता है, result cache कर सकता है और उसका UI चुन सकता है।

Servers local clients के लिए STDIO, Streamable HTTP और पुराने clients के लिए legacy SSE बोल सकते हैं। CLI एक production bundle बनाता है, जिसे Node.js, Docker या PM2 के साथ चलाया जा सकता है। इस framework का लाइसेंस Apache-2.0 है।

यह क्या करता है

  • Decorator-आधारित परिभाषाएँ: tools, resources और prompts TypeScript classes पर Zod schemas के साथ घोषित होते हैं, जिससे end-to-end type safety मिलती है
  • Modules और dependency-injection container, जिसमें singleton, transient और scoped lifecycles हैं
  • Built-in JWT, OAuth 2.1 और API-key authentication, जो guards के ज़रिए हर tool पर अलग से लागू होता है
  • Enterprise-style middleware pipeline: guards, interceptors, pipes, exception filters और caching
NitroStudio testing a show_pizza_list tool: input fields for price and rating filters on the left and the tool's widget rendered on the right as a pizza shop card with photo, rating, address and opening hours
Testing a tool in NitroStudio: fill in the inputs, execute, and see the result rendered through its React widget.NitroStack README ↗
  • UI widgets: tool outputs से जुड़े React components, ताकि नतीजा interactive view के रूप में दिखे
  • एक CLI जो templates से projects scaffold करता है, hot-reloading dev server चलाता है, tools, modules और guards generate करता है, और production bundle बनाता है

शुरू करें

NitroStack के लिए Node.js 20.18 या उससे नया और npm 9 या उससे नया चाहिए। CLI एक काम करने वाला MCP server scaffold करता है, जिसे आप तुरंत चला सकते हैं और किसी भी MCP-compatible client से जोड़ सकते हैं।

नया प्रोजेक्ट scaffold करें

CLI का `init` command प्रोजेक्ट बनाता है; docs में `typescript-starter`, `typescript-pizzaz` और `typescript-oauth` templates दिए गए हैं। नतीजे में `src/index.ts` में entry point, `src/app.module.ts` में root module, `src/modules/` के अंदर feature modules और `src/widgets/` के अंदर widget components होते हैं।

bashbash
npx @nitrostack/cli init my-server
A macOS terminal running nitrostack-cli init to scaffold a new NitroStack project
Scaffolding a project with the NitroStack CLI.NitroStack README ↗

Dev server शुरू करें

Dependencies इंस्टॉल करें और development शुरू करें; फ़ाइलें बदलते ही dev server अपने आप reload हो जाता है। अगर port पहले से इस्तेमाल में है, तो docs `nitrostack-cli dev --port 3002` आज़माने का सुझाव देते हैं।

bashbash
cd my-server
npm install
npm run dev

एक tool परिभाषित करें

Tool एक decorated method होता है जिसके साथ Zod input schema होता है। Guards, caching और widget उसी method पर लगे अतिरिक्त decorators हैं।

tsts
import { McpApp, Module, ToolDecorator as Tool, z, ExecutionContext } from '@nitrostack/core';

export class SearchTools {
  @Tool({
    name: 'search_products',
    description: 'Search the product catalog',
    inputSchema: z.object({
      query: z.string().describe('Search query'),
      maxResults: z.number().default(10)
    })
  })
  @UseGuards(ApiKeyGuard)
  @Cache({ ttl: 300 })
  @Widget('product-grid')
  async search(input: { query: string; maxResults: number }, ctx: ExecutionContext) {
    ctx.logger.info('Searching products', { query: input.query });
    return this.productService.search(input.query, input.maxResults);
  }
}

Code generate करें और NitroStudio में टेस्ट करें

CLI को global रूप से इंस्टॉल करने के बाद, `generate` tools, resources, prompts, modules, guards, middleware और भी बहुत कुछ scaffold करता है। फिर nitrostack.ai/studio से NitroStudio डाउनलोड करें और project folder खोलें, ताकि tools execute कर सकें, payloads देख सकें और अपने server के साथ chat कर सकें।

bashbash
npm i -g @nitrostack/cli
nitrostack-cli generate tool <name>

Production के लिए build और run करें

`nitrostack-cli build` `dist/` में production build लिखता है, जिसे deployment checklist Node.js के ज़रिए सीधे चलाती है (या Docker या PM2 के अंदर)।

bashbash
nitrostack-cli build
node dist/index.js

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब MCP server कुछ tools से आगे बढ़ने लगे और आप एक लंबी handlers वाली फ़ाइल के बजाय modules, dependency injection और middleware चाहें, तब इसे चुनें
  • जब आपके MCP tools को असली authentication चाहिए (JWT, OAuth 2.1 या API keys) और वह हर tool पर लागू हो, तब इसे चुनें
  • जब tool के नतीजे क्लाइंट में plain JSON के बजाय interactive UI के रूप में दिखने चाहिए, जैसे product grid, तब इसे चुनें
  • जब आपकी टीम पहले से decorator और DI वाले TypeScript backends लिखती है और AI-facing services के लिए भी वही structure चाहती है, तब इसे चुनें

How NitroStack compares

NitroStack alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
DeepSeek Harness★ 290kDeepSeek का ओपन एजेंट हार्नेस, जहाँ हर क्षमता एक प्लगइन है
AutoGPT★ 188kदोबारा इस्तेमाल होने वाले ब्लॉक्स से निरंतर AI एजेंट बनाएं, डिप्लॉय करें और चलाएं
DeerFlow★ 86.1kसब कुछ पहले से शामिल सुपर एजेंट हार्नेस, जिसमें स्किल्स, सब-एजेंट्स, सैंडबॉक्स और मेमोरी हैं
nanobot★ 50.5kWebUI, मेमोरी, MCP और चैट ऐप्स वाला सेल्फ-होस्टेड पर्सनल एजेंट रनटाइम
LangGraph★ 45.7kलंबे समय तक चलने वाले, stateful AI agents बनाने के लिए low-level orchestration framework
Agno★ 43.4kAI agent प्लेटफ़ॉर्म बनाने, चलाने और मैनेज करने के लिए Python SDK
AgentGPT★ 36.3kब्राउज़र में ही ऑटोनॉमस AI एजेंट बनाएं, कॉन्फ़िगर करें और डिप्लॉय करें
NitroStack★ 2.6kMCP servers के लिए एक decorator-आधारित TypeScript framework, जिसमें dependency injection, auth और React widgets पहले से शामिल हैं