Hız sınırlama (rate limiting), doğrulama (validation) ve günlükleme (logging) gibi üretim ortamına hazır TypeScript backend bloklarını doğrudan kod tabanınıza oluşturur.
Ayrıca bilinen adı codewithnuh/blockend, blockend-cli
- Yıldızlar
- 9
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- —
- Son commit
- 13 Kas 2026
- Lisans
- MIT
Blockend MCP nedir?
Blockend bir MCP sunucusudur. Hız sınırlama (rate limiting), doğrulama (validation) ve günlükleme (logging) gibi üretim ortamına hazır TypeScript backend bloklarını doğrudan kod tabanınıza oluşturur.
Özet, projenin README dosyasından oluşturuldu
Blockend MCP sunucusu hakkında
Blockend; Express, Fastify, Next.js App Router veya Hono kullanan geliştiricilerin TypeScript projelerine üretim ortamına hazır backend altyapısı eklemesini sağlar. Bu araç harici runtime'lara güvenmek yerine kaynak dosyalarını doğrudan deponuza kopyalar; böylece kodu gerektiği gibi değiştirme veya kaldırma konusunda tam sahiplik sağlar. CLI ve Cursor, Claude Code ve VS Code gibi istemcilerle entegre olan bir MCP server aracılığıyla çalışır.
Kullanıcılar, bir yapılandırma dosyası başlatarak ve hız sınırlayıcılar (rate-limiters), istek doğrulayıcılar (request validators) veya token servisleri gibi belirli modüller ekleyerek backend mimarilerini yönetebilirler. Sistem, framework'e özel adaptörleri ve bağımlılık kontrollerini otomatik olarak halleder. Kod yerel dizininize yazıldığı için standart araçları kullanarak yönetebilirsiniz; CLI ise proje ayarlarını algılamak, değişiklikleri diff ile önizlemek ve yüklü blokları yeni sürümlere güncellemek için komutlar sunar.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Blockend MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıBlockend MCP'yi Claude Code içine yükleyin
$ claude mcp add blockend -- npx -y blockend-cliBlockend MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"blockend": {
"command": "npx",
"args": [
"-y",
"blockend-cli"
]
}
}
}Blockend MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"blockend": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"blockend-cli"
]
}
}
}Blockend MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"blockend": {
"command": "npx",
"args": [
"-y",
"blockend-cli"
]
}
}
}Blockend MCP'yi Codex içine yükleyin
~/.codex/config.toml
[mcp_servers.blockend] command = "npx" args = ["-y", "blockend-cli"]
Blockend MCP'yi Gemini CLI içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"blockend": {
"command": "npx",
"args": [
"-y",
"blockend-cli"
]
}
}
}Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilircodewithnuh/blockend is public and reachablegithub.com/codewithnuh/blockend ↗Geçti
- Paket bu depoyu kaynak olarak gösteriyorblockend-cli names codewithnuh/blockend as sourcenpmjs.com/package/blockend-cli ↗Geçti
- Derleme kaynağı (Sigstore onayı)Sigstore attestation for blockend-clinpmjs.com/package/blockend-cli/v/2.3.0#provenance ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-13github.com/codewithnuh/blockend ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from blockend-cliGeçti
- Pakette ve bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak endpoint MCP el sıkışmasına yanıt veriyorKontrol edilmedi
Blockend
Blockend copies backend source files into your project. You choose a block, and the CLI writes its code into your repository. The code is yours: read it, change it, commit it, or remove it.
The CLI supports Express, Fastify, Next.js App Router, and Hono. The add command requires TypeScript.
Quick start
npx blockend-cli init
npx blockend-cli add request-validator
init creates blockend.json with your framework, blocks directory, package manager, and import style. add writes the selected block.
import express from "express";
import { z } from "zod";
import { expressValidator } from "@/blocks/request-validator/adapters/express";
const app = express();
app.use(express.json());
const validate = expressValidator({
body: z.object({
name: z.string().min(1),
email: z.string().email()
})
});
app.post("/users", validate, (req, res) => {
const { body } = validate.validated(req);
res.status(201).json({ user: body });
});
app.listen(3000);
If your blockend.json uses a different alias, import from that path instead. With no alias, use the relative path under paths.blocks.
Blocks
| Block | What it does |
|---|---|
rate-limiter |
Fixed-window limits with memory and Redis stores. |
error-handler |
Classifies errors, hides internal details, and returns one response shape. |
logger |
Pino logger with request IDs and async context. |
request-validator |
Validates body, query, and params with Zod. |
response-formatter |
Success, error, and pagination envelopes. |
env-config |
Validates environment variables with Zod at startup. |
health-check |
Dependency checks with per-check timeouts and a JSON health report. |
graceful-shutdown |
Drains requests and closes resources in priority order. |
idempotency |
Deduplicates retries with an atomic store lock. |
password-hash |
Argon2id hashing with a server-side pepper and rehash detection. |
token-service |
JWT access tokens and rotating refresh tokens. |
How it works
initdetects your project and writesblockend.json.addfilters the registry by framework, asks for a variant, and checks dependencies.- The CLI copies source files into your blocks directory and rewrites imports.
- The block is recorded in
blockend.jsonsoupdatecan compare versions.
There is no Blockend runtime dependency. Installed blocks use normal packages such as zod, pino, or jose.
CLI
| Command | Description |
|---|---|
blockend init |
Create blockend.json. |
blockend add <block> |
Write a block into the project. |
blockend add |
Choose a block interactively. |
blockend add --multi |
Choose several blocks. |
blockend list |
List blocks for your framework. |
blockend detect |
Report framework, language, package manager, and project settings. |
blockend diff <block> |
Preview files without writing. |
blockend doctor |
Check config and project health. |
blockend update |
Compare installed blocks with registry versions. |
blockend update --apply |
Apply selected updates. |
blockend mcp |
Start the MCP server. |
blockend mcp init |
Write MCP client config. |
See the CLI reference for options.
MCP
Blockend includes an MCP server for Claude Code, Cursor, VS Code, Codex CLI, and Windsurf.
npx blockend-cli mcp init --client cursor
The server exposes block listing, project detection, diff preview, install, update, and doctor tools. Installs run with --yes, so preview with the diff tool before writing.
Local development
Prerequisites:
- Node.js 20 or newer
- pnpm
git clone https://github.com/codewithnuh/blockend.git
cd blockend
pnpm install
pnpm build
pnpm dev
Useful commands:
pnpm test
pnpm lint
pnpm typecheck
pnpm validate
Repository layout
blockend/
├── apps/
│ └── web/ Documentation site
├── blocks/ Block source code
│ ├── error-handler/
│ ├── env-config/
│ ├── graceful-shutdown/
│ ├── health-check/
│ ├── idempotency/
│ ├── logger/
│ ├── password-hash/
│ ├── rate-limiter/
│ ├── request-validator/
│ ├── response-formatter/
│ └── token-service/
├── packages/
│ └── cli/ CLI that copies blocks into projects
├── registry/
│ ├── config.json Registry format version
│ └── index.json Generated block metadata and file mappings
├── scripts/
├── turbo.json
└── pnpm-workspace.yaml
Each block usually contains:
block.jsonwith metadata and file topologycore/or a core file with framework-agnostic logicadapters/for Express, Fastify, and Honovariants/for storage implementations- tests next to the source
Each block's block.json maps its source files to the paths the CLI writes. The checked-in registry/index.json is generated from those declarations. Some blocks also provide framework-specific tests and SQL.
Contributing
Read CONTRIBUTING.md before adding a block. A block should solve a common backend problem, keep its core framework-independent, and include tests for each adapter it ships.
Docs
License
MIT. See LICENSE.
Blockend MCP soruları
Blockend MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add blockend -- npx -y blockend-cli komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
Blockend MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Blockend runtime kullanmak zorunda mıyım?
Hayır, herhangi bir Blockend runtime bağımlılığı bulunmamaktadır. Yüklenen bloklar zod, pino veya jose gibi standart paketleri kullanır.
Oluşturulan kodu değiştirebilir miyim?
Evet, kod deponuza yazıldıktan sonra tamamen size aittir; kodu okuyabilir, değiştirebilir, commit edebilir veya silebilirsiniz.
Hangi frameworkler destekleniyor?
CLI; Express, Fastify, Next.js App Router ve Hono frameworklerini destekler.
MCP server bana neler yapma imkanı tanıyor?
MCP server; blok listeleme, proje algılama, diff önizleme, kurulum, güncellemeler ve sağlık kontrolleri (health checks) için araçlar sağlar.