MCP Enhanced Server
Allows deploying the MCP server to Cloudflare Workers, utilizing D1 database for task management and environment variables for configuration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Enhanced Server read the file src/index.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Enhanced Server v2.0.0
Enhanced MCP (Model Context Protocol) Server with full 2025-03-26 specification support:
Tools - With annotations, outputSchema, structuredContent, resource_link
Resources - URI-identified data with subscriptions and list change notifications
Prompts - Templated messages and workflows with argument schemas
Elicitation - Server-initiated user input requests
Tasks - Async long-running operations with progress tracking
Streamable HTTP - Production-ready HTTP transport with session management
Auth - Bearer token authentication for remote deployments
Origin Validation - DNS rebinding attack prevention
Quick Start
npm install
npm run build
npm startRelated MCP server: maic-server-fs-mcp
Transport Modes
Stdio (default)
npm startStreamable HTTP
MCP_TRANSPORT=http MCP_PORT=3000 npm startStreamable HTTP with Auth
MCP_TRANSPORT=http MCP_PORT=3000 MCP_AUTH_TOKEN=your-secret-token npm startFeatures
Resources
Resource | URI | Description |
Server Info |
| Server name, version, features |
Config Info |
| Transport, auth, environment |
Project Files |
| Template-based file access |
Prompts
Prompt | Description | Arguments |
| Review code quality | code, language |
| Explain code behavior | code, detail_level |
| Generate unit tests | code, framework |
| Debug code errors | code, error |
Tools
Tool | readOnly | destructive | idempotent | Description |
| ✓ | ✗ | ✓ | Read file contents |
| ✗ | ✓ | ✓ | Write file (overwrites) |
| ✓ | ✗ | ✓ | List directory contents |
| ✗ | ✓ | ✗ | Delete a file |
| ✓ | ✗ | ✓ | Regex search in code |
| ✗ | ✓ | ✗ | Execute shell command |
| ✓ | ✗ | ✓ | Request user confirmation |
| ✓ | ✗ | ✓ | Request user input |
| ✓ | ✗ | ✓ | Get async task status |
| ✗ | ✓ | ✓ | Cancel a running task |
| ✓ | ✗ | ✓ | List all tasks |
| ✗ | ✗ | ✗ | Start batch processing |
| ✓ | ✗ | ✓ | Weather data (structured output) |
| ✓ | ✗ | ✓ | System information (structured output) |
| ✓ | ✗ | ✓ | List resources as resource links |
Environment Variables
Variable | Default | Description |
|
| Transport: |
|
| HTTP port |
|
| HTTP host |
| - | Bearer token for auth (optional) |
Cloudflare Workers Deployment
Live deployment: https://mcp-enhanced-server.catnip-haze.workers.dev
Health:
GET /healthMCP endpoint:
POST /mcp(JSON-RPC 2.0)MCP info:
GET /mcp
See cloudflare/ directory for Workers deployment with D1 database.
cd cloudflare
npm install
wrangler d1 create mcp-enhanced-tasks
# Update database_id in wrangler.toml
wrangler d1 execute mcp-enhanced-tasks --file=src/schema.sql
wrangler deployWorkers Environment Variables
Set via Cloudflare Dashboard or wrangler secret put:
MCP_AUTH_TOKEN- Authentication tokenMCP_ALLOWED_ORIGINS- Comma-separated allowed origins
Architecture
src/
├── index.ts # Main entry, server setup, all features
├── tools/
│ ├── annotations.ts # Tool Annotation type definitions
│ └── registry.ts # Tool registry with Zod validation
├── resources/
│ ├── manager.ts # Resource lifecycle manager
│ └── tools.ts # Resource tools
├── prompts/
│ ├── manager.ts # Prompt lifecycle manager
│ └── builtin.ts # Built-in prompt templates
├── elicitation/
│ ├── manager.ts # Elicitation request/response manager
│ └── tools.ts # Elicitation tools
└── tasks/
├── manager.ts # Async task lifecycle manager
└── tools.ts # Task toolsDebug
npx @modelcontextprotocol/inspector node dist/index.jsAvailable Tools
15 toolsbatch_processB
Start a batch processing task. Returns a task ID for polling.
Inputs: items (required), operation (required).
confirm_actionARead-onlyIdempotent
Request user confirmation before a destructive or important action.
Inputs: action (required), details, riskLevel.
delete_fileADestructive
Delete a file from the local filesystem. DESTRUCTIVE and NON-IDEMPOTENT.
Inputs: path (required).
get_weatherARead-onlyIdempotent
Get current weather data for a location
Inputs: location (required). Returns: humidity, conditions, temperature
list_available_resourcesARead-onlyIdempotent
List all available MCP resources as resource links
Inputs: no named parameters.
list_directoryARead-onlyIdempotent
List the contents of a directory
Inputs: path (required).
read_fileARead-onlyIdempotent
Read the contents of a file from the local filesystem
Inputs: path (required), encoding.
request_inputARead-onlyIdempotent
Request additional input from the user during tool execution.
Inputs: prompt (required), inputType (required), choices.
run_commandBDestructive
Execute a shell command. DESTRUCTIVE operation with side effects.
Inputs: command (required), cwd, timeout.
search_codeBRead-onlyIdempotent
Search for a pattern in code files using regex
Inputs: pattern (required), directory (required), maxResults, filePattern.
system_infoBRead-onlyIdempotent
Get system information
Inputs: no named parameters. Returns: uptime, platform, nodeVersion, serverVersion
task_cancelADestructiveIdempotent
Cancel a running async task
Inputs: taskId (required).
task_listARead-onlyIdempotent
List all tasks and their statuses
Inputs: no named parameters.
task_statusBRead-onlyIdempotent
Get the status of an async task
Inputs: taskId (required).
write_fileADestructiveIdempotent
Write content to a file on the local filesystem. DESTRUCTIVE - overwrites existing files.
Inputs: path (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool has a clearly distinct purpose, but the presence of get_weather and system_info alongside file and task management tools creates ambiguity about the server's core domain, potentially confusing an agent.
Most tools use a verb_noun pattern (e.g., read_file, list_directory), but several tools like task_status and system_info use noun_noun, breaking the pattern. The mix is readable but inconsistent.
15 tools is a reasonable count, but the inclusion of get_weather and system_info seems extraneous for the implied focus on file and task management, making the set feel slightly over-scoped.
File operations lack create directory, move, and copy; task management lacks a create_task tool (tasks are only created via batch_process). These gaps could cause agent failures in common workflows.
Related MCP Connectors
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn HTTP-based MCP server that provides filesystem tools and code analysis, enabling LLMs to read, write, list files, and analyze code securely.1-
- AlicenseAqualityDmaintenanceProvides LLMs with local filesystem operations (read/write files, list directories) and command execution via MCP, enabling file management and task automation within AI clients.74 npmISC
- FlicenseBqualityDmaintenanceProvides tools for file system operations and text generation using OpenAI-compatible models via the Model Context Protocol, supporting both stdio and HTTP transports.6-
- AlicenseCqualityCmaintenanceA full-featured secure MCP server for local file system operations, with built-in image processing, OCR and media tools. Fully compliant with the official Model Context Protocol specification, offering standardized request/response schemas, large-file streaming I/O, multi-transport remote deployment, and comprehensive text search & replace functionality for LLM agent integration.2217 PyPIApache 2.0