Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Nifra docs, runnable examples, and API types as an MCP server for any AI assistant.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://mcp.nifra.dev在终端中运行这条命令
claude mcp add --transport http nifra-docs https://mcp.nifra.dev粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"nifra-docs": {
"url": "https://mcp.nifra.dev"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"nifra-docs": {
"type": "http",
"url": "https://mcp.nifra.dev"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://mcp.nifra.dev菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
工具名称和描述与服务器在 2026年11月6日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
nifra_docsSearch nifra's framework documentation and get back ONLY the matching sections - auth, uploads, ISR, WebSockets, loaders, deployment, anything. Call with no query for the cheap section index; pass query (e.g. "isr revalidate") for the top matching sections. Use this instead of re
nifra_exampleGet a verified, copy-pasteable Nifra code example for a task - auth route, file upload, ISR page, loader/action, typed client, SSE, deployment, and more. Every snippet is typechecked against the installed Nifra version, so it compiles as-is. Returns code as text for direct use. C
nifra_typesGet the exact TypeScript declaration of any exported @nifrajs/* symbol - interface, type, class, function, or const. Each signature is generated from the package's built .d.ts and returns the complete declaration rather than prose. Pass `name` for an exact symbol (e.g. "RateLimit
nifra_learnWalk the guided path to build a nifra app end to end - an ORDERED sequence (create → page route → loader → typed API → typed client → auth → background jobs → deploy), not the random-access search of nifra_docs/nifra_example. Call with no args for the step index; pass `step: N` f
nifra_frontendDiagnose a client-side Nifra problem by symptom across every adapter (React, Preact, Solid, Vue, Svelte, and vanilla). Returns the likely cause, a concrete fix, and how to verify it. Covers the Nifra server/client seam, hydration mismatches, duplicated framework runtimes, loader-
nifra_runtime 看起来像是对 AI 下的指令Explain a behavior that differs between Bun, Node, Deno and Cloudflare Workers by symptom. These are runtime behaviors, not Nifra's: request-target and Host handling, pipelining, JSON content-type, engine error messages, recursion depth, .env loading, and runtime-specific APIs. R
nifra_galleryOpen an interactive, filterable gallery of ALL of nifra's verified code examples (MCP Apps widget) - for browsing and discovering what exists. NOT for fetching one snippet as text: use nifra_example for that. Pass query to pre-filter; the widget also filters client-side.
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 nifrajs 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
在 435 毫秒内响应(HTTP 200)
无需登录
有 1 个工具描述包含看起来像是对 AI 下指令的文字。安装前请先阅读下方的内容
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(5.12.1)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Dialyne
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Real phone calls in France for AI agents: dial +33 numbers, menus, hold, AI disclosure.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Nifra
The AI-native TypeScript framework.
Typed APIs and full-stack SSR on five UI libraries, one app across Bun, Node, Deno, and the edge -
built so both humans and coding agents can change it safely.
= 1.3">
Documentation · Playground · Benchmarks · vs. other frameworks
Nifra is for software that is built, operated, and used with agents in the loop.
An agent should not be a chat bubble bolted onto an app, or a coding assistant guessing at an API. It should discover the real contract, call typed capabilities, stream progress into the UI, ask for approval at the right boundary, update state optimistically, reconcile with the server, and leave evidence that the work actually happened. Nifra makes that one system:
The central design decision is simple: define the capability once, then project it to the surface that fits the moment. A page-local agent can use WebMCP while the page is open; a background agent can use remote MCP; another agent can use A2A; a human-facing client can consume AG-UI. They still meet the same typed validation, authorization, approval, output, and evidence boundary.
import { t } from "@nifrajs/schema"
import { defineAgentCapability, registerWebMcpTools } from "@nifrajs/webmcp"
export const addToCart = defineAgentCapability({ name: "cart.add", description: "Add a product to the current cart.", input: t.object({ sku: t.string(), quantity: t.number() }), output: t.object({ cartVersion: t.string() }), writes: ["cart"], execute: (input) => addItemOnTheServer(input), predict: ({ input, version }) => ({ baseVersion: version, patch: [{ op: "add", path: "/items/-", value: input }], }), })
// Explicit page-local discovery. Unsupported hosts receive a safe no-op report. await registerWebMcpTools([addToCart])
The same addToCart.tool can be projected into Nifra's remote MCP adapter or called by an agent runner. Predictions are deterministic application code - not LLM guesses - and commit, rollback, conflict, expiry, and authoritative reconciliation are explicit outcomes.
See the WebMCP and predictive UI guide and the agent layer.
bun create nifra my-app # scaffold the API starter
cd my-app bun install bun run dev
For a full-stack React app with SSR:
bun create nifra my-app --template site --framework react
Or add a backend to an existing project:
bun add @nifrajs/core @nifrajs/schema @nifrajs/client
import { server } from "@nifrajs/core/server"
import { t } from "@nifrajs/schema"
export const app = server() .get("/users/:id", (c) => ({ id: c.params.id })) .post("/users", { body: t.object({ name: t.string() }) }, (c) => ({ id: crypto.randomUUID(), name: c.body.name, }))
The client is inferred from the server type - no codegen, no duplicated schema, no stale SDK:
import { client } from "@nifrajs/client"
import type { app } from "./server"
const api = client ("http://localhost:3000") const result = await api.users({ id: "42" }).get()
if (result.ok) result.data.id // route return type, checked by tsc else result.error // failures are returned, never thrown
Change a route and every caller stops compiling until it is updated. Add loaders, actions, streaming, defer()/ , islands, query cache, progressive-enhancement forms, and server functions when the app grows. The same web layer runs on React, Vue, Solid, Svelte, or Preact.
The web layer also keeps pages fresh and fast without a second data layer:
live(...); a publish reloads only those loaders on every open tab, through the same middleware, gates and loaders a navigation runs.Nifra also provides the runtime for applications whose product is an agent. The model provider, credentials, durable state, tenancy, and policy are injected ports; the framework owns the safety and execution semantics around them.
import { createAgentState, runAgent } from "@nifrajs/agent"
const result = await runAgent(definition, { value: input }, ports, { state: createAgentState("support-1"), maxTurns: 8, })
You get typed tool contracts, bounded turns and budgets, approvals, cancellation, idempotency, resumable token-only evidence, model/token streaming, transient shared state, and composable telemetry. A failed post-turn gate can become a bounded repair turn in the standalone nifra-agent host. The local process and extension adapters contain crashes and accidents; they are not hostile-code sandboxes.
The UI is not an afterthought. Nifra gives an agent several deliberate ways to interact with an app:
| Surface | Best for | Nifra's contract |
|---|---|---|
| WebMCP | An agent acting in the currently open page | Explicit tool allowlists, typed inputs/outputs, bounded receipts, deterministic prediction, versioned reconciliation |
| MCP / MCP Apps | Remote tools, background work, and rich tool results | The same core tool projected to remote MCP and ui:// widgets |
| AG-UI | Streaming an agent run into a product UI | SSE lifecycle, text/reasoning/tool deltas, shared-state snapshots/deltas, resumable evidence, typed resume |
| Agent App / Workbench | Browser and desktop control planes | Negotiated features, approvals, handoffs, decision inbox, capability registry, Run Studio |
For a predictive interaction, the application supplies a pure patch and a reconciliation rule. The store applies it atomically, then either accepts authoritative server state or reports rollback, conflict, or expiry. The human UI remains fully functional when no agent host is present.
The runner is the center; protocol adapters are edges:
@nifrajs/mcp exposes tools and MCP Apps.@nifrajs/webmcp exposes explicit page-local tools and predictive UI.@nifrajs/a2a mounts an A2A 1.0 card plus JSON-RPC/SSE.@nifrajs/ag-ui mounts AG-UI events over SSE.@nifrajs/agent-app provides a backend-neutral browser client.@nifrajs/coding-agent, @nifrajs/agent-protocol, and @nifrajs/pi provide a standalone coding-agent host; @nifrajs/acp drives any Agent Client Protocol agent through it.Every protocol boundary still needs application authentication and authorization. Public reference adapters keep credentials, durable storage, tenant state, and operated policy outside the package so you can supply the right implementation for your deployment.
Register Nifra once and an agent can inspect the actual project, fetch version-checked examples and types, scaffold in the correct route directory, run HTTP/SSR/WebSocket checks, inspect recent requests, and loop on structured fixes:
claude mcp add nifra -- bunx nifra mcp
nifra init-agents
nifra context # live route and convention map nifra smoke # real SSR, API, auth and hydration requests against the build nifra check # typecheck, drift, and bundle-boundary gate nifra assure # route security evidence gate nifra levels # cumulative proof level and next missing rung
The local server runs where your code lives - your source never reaches Nifra. The teaching tools are also hosted at mcp.nifra.dev for agents that only need the verified Nifra corpus. Skills are available for Pi and Claude Code.
Agentic systems need more than “the model said it worked.” Nifra turns the important claims into gates:
nifra check
nifra assure nifra capabilities check nifra manifest diff nifra levels --min 1
nifra check catches type drift, raw calls around the typed client, server-only bundle leaks, and other contract violations.nifra assure classifies the live route graph and fails when required authentication, validation, rate limiting, CSRF, or body-cap evidence is missing.nifra capabilities check compares declared effect tokens with the module graph and a reviewed lockfile.nifra manifest diff detects contract, assurance, effect, and response-sensitivity changes at promotion time.nifra levels reports the highest cumulative proof level a project actually holds, from typed contract to contract-derived invariant tests.Docs and examples are compiled against the live API, and the machine-readable MCP corpus is generated from built packages. An agent gets a repairable diagnostic instead of a stale suggestion.
The app lifecycle is app.fetch(Request): Promise . Define it once and deploy to Bun, Node, Deno, Cloudflare Workers/Pages, or Vercel Edge with a small adapter. The web layer supports React, Vue, Solid, Svelte, and Preact without changing the route/data model.
The published snapshot in site/shared/data/benchmarks.json is the source of truth for the website tables and benchmark comparison articles. The benchmark suites merge fresh results into it through bench/site-bench.ts. The public tables include
只显示了开头部分;其余内容请在仓库中阅读