MCP Async Server
MCP Async Server
<p align="center"> <em>Built with TypeScript โข Powered by Node.js โข MCP Protocol</em> </p>๐ A high-performance Model Context Protocol (MCP) server implementation showcasing asynchronous task processing with robust status tracking and error handling.
โจ Features
- ๐ Asynchronous Task Processing - Handle long-running operations efficiently
- ๐ Real-time Status Tracking - Monitor task progress with polling support
- ๐งน Automatic Resource Management - Smart task cleanup and memory management
- โฑ๏ธ Timeout Handling - Configurable timeouts for tasks
- ๐ก๏ธ Robust Error Handling - Custom error types and comprehensive error reporting
- ๐ TypeScript Support - Full type safety and modern JavaScript features
- ๐ Built-in Inspector - Debug and test your MCP server with ease
<a href="https://glama.ai/mcp/servers/k2os9maqr0"><img width="380" height="200" src="https://glama.ai/mcp/servers/k2os9maqr0/badge" alt="Async Server MCP server" /></a>
๐ Quick Start
Prerequisites
- Node.js 20.x or higher
- npm 9.x or higher
Installing via Smithery
To install Async MCP Server for Claude Desktop automatically via Smithery:
Installation
Running the Server
Using the Inspector
๐ API Reference
Available Tools
process_task
Creates a new asynchronous task.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
input | string | โ | - | The input string to process |
delayMs | number | โ | 5000 | Processing delay in milliseconds |
timeoutMs | number | โ | 30000 | Task timeout in milliseconds |
check_task_status
Check the status of an existing task.
Parameter | Type | Required | Description |
---|---|---|---|
taskId | string | โ | The ID of the task to check |
Task States
Status | Description |
---|---|
๐ pending | Task created but not started |
โก processing | Task is being processed |
โ
complete | Task completed successfully |
โ error | Task failed |
โ๏ธ Configuration
Key configuration options in src/constants.ts
:
๐ ๏ธ Development
Project Structure
Development Commands
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
<p align="center"> Made with โค๏ธ by the MCP community </p>
You must be authenticated.
This server implements the Model Context Protocol (MCP) to handle asynchronous tasks with real-time status tracking, robust error handling, and automatic resource management.