Back to Home
yulunjiang icon

remote-mcp-server-authless

by yulunjiang

Overview

Builds an AI-powered roaming customer service assistant (chatbot) as a remote Model Context Protocol (MCP) server.

Installation

Run Command
wrangler dev

Environment Variables

  • OPENAI_API_KEY
  • MCP_SSE_URL
  • SESSION_TIMEOUT_MINUTES
  • USE_MOCK_DATA

Security Notes

CRITICAL: The `chat` MCP tool's error handling in `src/index.ts` exposes `this.env.OPENAI_API_KEY` in its JSON error response. This is a severe vulnerability that could lead to the compromise of the OpenAI API key if any error occurs within the `handleChatRequest` function in the MCP context. It should be removed immediately. Additionally, some helper modules use `dotenv.config()` instead of relying on the Cloudflare Worker's `env` object, which might lead to unexpected behavior or missed configuration in a Worker environment.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassHigh
Avg Tokens750
Stars0
Forks0
Last Update2025-12-02

Tags

AIServerlessCloudflare WorkersAI AgentChatbotMCPCustomer Service