MCP Async Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 비동기 서버

🚀 강력한 상태 추적 및 오류 처리 기능을 갖춘 비동기 작업 처리를 보여주는 고성능 모델 컨텍스트 프로토콜(MCP) 서버 구현입니다.


✨ 특징

  • 🔄 비동기 작업 처리 - 장기 실행 작업을 효율적으로 처리합니다.
  • 📊 실시간 상태 추적 - 폴링 지원을 통해 작업 진행 상황 모니터링
  • 🧹 자동 리소스 관리 - 스마트한 작업 정리 및 메모리 관리
  • ⏱️ 시간 초과 처리 - 작업에 대한 구성 가능한 시간 초과
  • 🛡️ 강력한 오류 처리 - 사용자 정의 오류 유형 및 포괄적인 오류 보고
  • 📝 TypeScript 지원 - 전체 유형 안전성 및 최신 JavaScript 기능
  • 🔍 내장 검사기 - MCP 서버를 쉽게 디버깅하고 테스트하세요

🚀 빠른 시작

필수 조건

  • Node.js 20.x 이상
  • npm 9.x 이상

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 비동기 MCP 서버를 자동으로 설치하려면:

지엑스피1

설치

# Clone the repository git clone https://github.com/ViezeVingertjes/example-async-mcp.git # Navigate to the project directory cd example-async-mcp # Install dependencies npm install # Build the project npm run build

서버 실행

npm start

검사기 사용

npm run inspector

📖 API 참조

사용 가능한 도구

process_task

새로운 비동기 작업을 만듭니다.

{ "name": "process_task", "arguments": { "input": "Hello, World!", "delayMs": 5000, "timeoutMs": 30000 } }
매개변수유형필수의기본설명
입력-처리할 입력 문자열
지연Ms숫자5000밀리초 단위의 처리 지연
타임아웃Ms숫자30000작업 시간 초과(밀리초)

check_task_status

기존 작업의 상태를 확인합니다.

{ "name": "check_task_status", "arguments": { "taskId": "550e8400-e29b-41d4-a716-446655440000" } }
매개변수유형필수의설명
작업 ID확인할 작업의 ID

작업 상태

상태설명
🕒 pending작업이 생성되었지만 시작되지 않았습니다.
processing작업이 처리 중입니다
complete작업이 성공적으로 완료되었습니다
error작업이 실패했습니다

⚙️ 구성

src/constants.ts 의 주요 구성 옵션:

export const DEFAULT_TASK_TIMEOUT_MS = 30000; // 30 seconds export const DEFAULT_TASK_DELAY_MS = 5000; // 5 seconds export const DEFAULT_POLL_DELAY_MS = 10000; // 10 seconds export const POLL_INTERVAL_MS = 100; // 100ms export const MAX_TASKS = 1000; // Maximum concurrent tasks

🛠️ 개발

프로젝트 구조

src/ ├── index.ts # Main server implementation ├── types.ts # TypeScript types and interfaces ├── constants.ts # Configuration constants └── utils.ts # Utility functions

개발 명령

# Build the project npm run build # Watch for changes npm run watch # Run tests npm test # Run inspector npm run inspector

📝 라이센스

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.


-
security - not tested
A
license - permissive license
-
quality - not tested

이 서버는 실시간 상태 추적, 견고한 오류 처리, 자동 리소스 관리를 통해 비동기 작업을 처리하기 위해 MCP(모델 컨텍스트 프로토콜)를 구현합니다.

  1. ✨ Features
    1. 🚀 Quick Start
      1. Prerequisites
      2. Installing via Smithery
      3. Installation
      4. Running the Server
      5. Using the Inspector
    2. 📖 API Reference
      1. Available Tools
      2. Task States
    3. ⚙️ Configuration
      1. 🛠️ Development
        1. Project Structure
        2. Development Commands
      2. 📝 License
        ID: k2os9maqr0