Back to Home
ValentinTorassa icon

ShellFusion-mcp-server

by ValentinTorassa

Overview

A full-stack application for managing tickets, with a Python-based Model Context Protocol (MCP) server to enable AI assistant integration for interacting with the backend API.

Installation

Run Command
mcp dev server.py

Environment Variables

  • PORT
  • FRONTEND_ORIGIN
  • MONGODB_URI
  • TOKEN_SECRET
  • API_KEY
  • BACKEND_BASE_URL
  • MCP_SERVER_NAME
  • NODE_ENV

Security Notes

1. **API Key Bypass:** The `apiKeyAuth` middleware (backend/src/middlewares/apiKeyAuth.ts) explicitly bypasses API key authentication if the `BACKEND_API_KEY` environment variable is not set. This could unintentionally expose protected API routes if the variable is omitted in a production environment. 2. **Hardcoded Docker Credentials:** Default hardcoded MongoDB root ('root'/'example') and application-specific ('appuser'/'apppass') credentials are used in `docker-compose.yml` and `mongo-init/001-init.js`. While common for local development, these are **critical security risks** if deployed in a production environment without immediate and strong modification. 3. **Missing Security Headers:** The `helmet` dependency is listed in `backend/package.json` but is not explicitly utilized in `backend/src/index.ts`, missing out on a straightforward way to implement crucial security headers for HTTP responses. 4. **CORS Configuration:** CORS is configured to allow `FRONTEND_ORIGIN`. Ensure this variable is strictly controlled and not set to `*` in production to prevent unintended cross-origin access. 5. **JWT Handling:** JWT tokens are signed with `process.env.TOKEN_SECRET` and expire in '8h'. The `Authorization` cookie is set with `httpOnly` and `secure` flags conditionally based on `NODE_ENV`, which is good practice. 6. **Password Hashing:** Passwords are securely hashed using `bcryptjs` with 12 salt rounds.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens10
Stars0
Forks0
Last Update2025-11-26

Tags

Full-stackTicket ManagementAI IntegrationMCP ServerNode.jsReactExpressMongoDBPython