Back to Home
context-hub icon

mcp-server

by context-hub

Overview

This MCP server module provides context generation, tool execution, and prompt management capabilities for AI clients like Claude Desktop, Cursor, and Codex, acting as a backend for 'ctx' (Context Generator) framework.

Installation

Run Command
ctx server

Environment Variables

  • MCP_TOOL_COMMAND_EXECUTION
  • GITHUB_PAT
  • MCP_FILE_OPERATIONS
  • MCP_SESSION_TYPE
  • MCP_HOST
  • MCP_PORT
  • MCP_TRANSPORT
  • OAUTH_ENABLED
  • OAUTH_CLIENT_ID
  • OAUTH_CLIENT_SECRET

Security Notes

The `RunToolHandler` executes arbitrary shell commands and the `HttpToolHandler` makes external HTTP requests, both allowing arguments to be passed from the MCP client. While `ToolSchema` and `ToolArgumentsProvider` are in place to define and potentially restrict arguments, the inherent risk of command injection (if `ToolArg` values are not properly sanitized or schemas are not strictly enforced) and Server-Side Request Forgery (SSRF) remains very high. The default `MCP_TOOL_COMMAND_EXECUTION` is `true`, enabling command execution by default. Loading content from external URLs in `FileMessageContentLoader` also presents an SSRF risk.

Similar Servers

Stats

Interest Score30
Security Score3
Cost ClassLow
Stars1
Forks1
Last Update2026-01-18

Tags

MCP ServerAI ToolingContext GenerationPHPClient ConfigurationProject Management