인셔셔RSS 관심 있는 블로그, 뉴스, 기술 정보를 효율적으로 추적하고 읽으세요
원문 읽기 InertiaRSS에서 열기

추천 피드

Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
博客园 - 叶小钗
MyScale Blog
MyScale Blog
V
Visual Studio Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
I
InfoQ
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python)
60초 안에 생산 준비된 MCP 서버 (인증, 제한율, 감사 로그 포함)
David McHale · 2026-05-25 · via DEV Community
Cover image for Production-Ready MCP Servers in 60 Seconds (Auth, Rate Limits, Audit Logs Included)

David McHale

생산 환경 MCP 서버를 위한 TypeScript 기반 템플릿으로, 플러그인 가능한 인증, 각 도구별 비율 제한, 구조화된 감사 로그, 그리고 OpenTelemetry를 포함하여, 실제 도구를 만들 수 있도록 지루한 부분을 다시 발명하지 않도록 돕습니다.

나가 읽은 모든 MCP 서버 튜토리얼은 단일 도구를 등록하고 문자열을 반사하는 방법을 보여줍니다. 그런 다음 "생산 환경 문제"를 일축하고 게시물을 마칩니다.

생산 환경 문제 게시물.

@hailbytes/mcp-server-template는 저가 업계에서 실제로 실행할 MCP 서버를 배포할 때 사용하는 TypeScript 템플릿입니다. 다음과 같은 기능이 포함되어 있습니다.

  • 인증 — API 키, OAuth, JWT를 위한 플러그 가능한 미들웨어.
  • 요청 제한 — 클라이언트별 및 도구별로, 한 번에 도주하는 에이전트가 전체 서버를 다운시킬 수 없도록.
  • 감사 로깅 — 각 도구 호출 및 세션 이벤트에 대한 구조화된 로그
  • OpenTelemetry — 트레이스 및 메트릭, 그래서 당신의 모델이 무엇을 했는지 실제로 디버깅할 수 있습니다
  • 다중 운송 — SSE, stdio, 및 HTTP, 스키마플래드 시간에 선택됨

새 서버를 스키마플래드

npx @hailbytes/create-mcp-server my-server --transport=sse

전체 화면 모드 입력 전체 화면 모드 종료

사용자는 들어갈 수 있는 디렉토리를 얻고 바로 cd 할 수 있습니다.npm run dev 바로 사용할 수 있습니다.

또는 프로그래밍 방식으로 삽입할 수 있습니다

import { createMcpServer, defineTools } from "@hailbytes/mcp-server-template";

const tools = defineTools([
  {
    name: "echo",
    description: "Echoes the input back.",
    inputSchema: { type: "object", properties: { message: { type: "string" } } },
    handler: async ({ message }) => ({ content: [{ type: "text", text: message }] }),
  },
]);

const server = await createMcpServer({
  name: "my-server",
  version: "1.0.0",
  transport: "sse",
  tools,
  auth: { type: "api-key", header: "X-Api-Key" },
  rateLimit: { requestsPerMinute: 60 },
  audit: { destination: "stdout" },
});

await server.start();

전체 화면 모드 입력 전체 화면 모드 종료

이것은 전체 "생산 MCP 서버" 차이와 튜토리얼 에코 예제입니다.

이것을 함께 사용하세요@hailbytes/mcp-security-scanner를 사용하면 기본적으로 보안이 강화된 서버를 갖게 되고, 도구를 추가해도 그 상태를 유지할 수 있습니다.

npx @hailbytes/create-mcp-server my-server

전체 화면 모드로 입력 전체 화면 모드 종료

출처: github.com/hailbytes/mcp-server-template — MIT 라이선스.