Back to Home
vielhuber icon

charly

by vielhuber

Overview

A comprehensive Model Context Protocol (MCP) server gateway that integrates multiple MCP servers with unified OAuth2 and bearer token authentication, including a web client for management.

Installation

Run Command
uvicorn server.mcp:app --host 0.0.0.0 --port 8000

Environment Variables

  • DB_CONNECTION
  • DB_HOST
  • DB_USERNAME
  • DB_PASSWORD
  • DB_DATABASE
  • DB_PORT
  • JWT_SECRET

Security Notes

Critical security flaw: The client-side API endpoint `/api/skills` (implemented in `client/_public/api/Skills.php`) reads and exposes the entire `../../../server/config.json` file. This file, as per `server/config.example.json`, contains sensitive credentials, most notably `AUTH0_CLIENT_SECRET` and potentially API keys for MCP providers. Exposing `AUTH0_CLIENT_SECRET` allows an attacker to impersonate the application in the OAuth2 flow, leading to significant security breaches. Additionally, the Python server's `StdioTransport` is configured to execute commands with arguments directly from `config.json`; while the `config.example.json` uses static commands, this structure could allow remote code execution if the `config.json` is compromised or modified without strict validation. Broad CORS `Access-Control-Allow-Origin: *` is enabled, which might not be ideal for all deployment scenarios.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-12-12

Tags

MCPGatewayAuthenticationOAuth2API Proxy