
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
TypeScript MCP 프레임워크
개요
xmcp는 TypeScript를 사용해 MCP 서버를 구축하고 배포하기 위한 프레임워크입니다. DX를 염두에 두고 설계되어 개발을 간소화하고 모델 컨텍스트 프로토콜 생태계 위에서 강력한 도구를 만들고 배포하려는 누구에게나 진입 장벽을 낮춥니다. 첫 xmcp 애플리케이션을 다음과 같이 부트스트랩하세요: 또는 기존 Next.js 또는 Express 프로젝트에서 xmcp 초기화를 할 수 있습니다: ⊹ - 도구 및 프롬프트가 도구 및 프롬프트 디렉토리에서 자동 등록됩니다\ ⊹ - 즉각적인 개발 피드백\ ⊹ - 출시 인증 및 커스텀 미들웨어용 툴킷\ ⊹ - MCP 서버 맞춤형 설정 제공\ ⊹ - 모든 플랫폼에 대한 유연한 배포\ ⊹ - Vercel을 통한 제로 구성 배포 ⊹ 프로젝트에 대해 더 알고 싶다면 xmcp.dev 를 방문하세요. ⊹ 전체 문서를 보시려면 xmcp.dev/docs 를 방문하세요. 보안 취약점을 발견했다고 생각되면 즉시 알려주시기 바랍니다. 모든 합법적인 신고를 조사하고 신속히 문제를 해결하기 위해 최선을 다하겠습니다.
개요(AI 번역)
XMCP
TypeScript MCP 프레임워크
이미 알고 있는 코드로 MCP 서버를 구축하고 배포하세요. AI 애플리케이션이 도구, 데이터, 워크플로우에 접근할 수 있도록 하세요. TypeScript 함수를 작성하세요; xmcp는 프로토콜, 검증, 전송을 담당합니다.
시작
새로운 xmcp 앱 만들기:
또는 기존 프로젝트에 xmcp를 추가하는 방법도 있습니다:
도구는 파일입니다. 스키마, 메타데이터, 함수를 내보내면 xmcp가 등록합니다:
특징
⊹ 파일 시스템 라우팅 - 도구, 프롬프트, 자원이 디렉터리에서 자동으로 등록되며, 설정은 전혀 없습니다\ ⊹ 미들웨어 - 모든 요청에 인증, 기록, 속도 제한 또는 사용자 지정 로지를 추가하세요\ ⊹ *전송 전송 - 동일한 코드에서 HTTP 또는 STDIO를 통해 서비스 제공\ ⊹ *통합 - Better Auth, Clerk, Auth0, WorkOS, Descope, Scalekit, Supabase와의 인증; Polar, Commet, x402를 통한 수익화 ⊹ 어댑터 - Next.js, Express, NestJS, Fastify, Hono, TanStack Start, Nuxt, SvelteKit, React Router 또는 Astro 안에서 실행됩니다. ⊹ MCP 앱 - 도구와 함께 인터랙티브 React 위젯을 함께 배포하세요\ ⊹ 어디든 배포 가능 - Vercel, Cloudflare, Alpic, Replit, Railway, Render 또는 Node.js 호스트 어디든 배포 가능\
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
The TypeScript MCP framework
Build and ship MCP servers with the code you already know. Give AI applications access to your tools, data, and workflows. Write TypeScript functions; xmcp handles the protocol, validation, and transport.
Getting started
Create a new xmcp app:
npx create-xmcp-app@latest
Or add xmcp to an existing project:
npx init-xmcp@latest
A tool is a file. Export a schema, metadata, and a function, and xmcp registers it:
// src/tools/greet.ts
import { z } from "zod";
import { type InferSchema } from "xmcp";
export const schema = {
name: z.string().describe("The name of the user to greet"),
};
export const metadata = {
name: "greet",
description: "Greet the user",
};
export default async function greet({ name }: InferSchema) {
return `Hello, ${name}!`;
}
Features
⊹ File system routing - Tools, prompts, and resources register automatically from their directories, with zero configuration
⊹ Middlewares - Add authentication, logging, rate limits, or custom logic to every request
⊹ Transports - Serve over HTTP or STDIO from the same code
⊹ Integrations - Authentication with Better Auth, Clerk, Auth0, WorkOS, Descope, Scalekit and Supabase; monetization with Polar, Commet and x402
⊹ Adapters - Run inside Next.js, Express, NestJS, Fastify, Hono, TanStack Start, Nuxt, SvelteKit, React Router or Astro
⊹ MCP Apps - Ship interactive React widgets alongside your tools
⊹ Deploy anywhere - Vercel, Cloudflare, Alpic, Replit, Railway, Render, or any Node.js host
⊹ Hot reloading - Instant feedback while you develop
Learn more
⊹ Visit xmcp.dev to learn more about the project.
⊹ Read the documentation for guides and API reference.
⊹ Start from a template.
Security
설치
npx create-xmcp-app@latest