Back to Home
GHjiejie icon

mcp-server

by GHjiejie

Overview

This MCP server provides a structured environment for AI models to access predefined tools, dynamic resources, and reusable prompt templates for various software development tasks.

Installation

Run Command
npm start

Environment Variables

  • MCP_FILE_RESOURCES_DIR

Security Notes

CRITICAL: The server is vulnerable to path traversal attacks due to insufficient sanitization of user-provided URI paths in `src/server/services/fileResourceService.ts`. An attacker could potentially read arbitrary files on the server's filesystem by crafting malicious `file://` URIs. Additionally, the `DEFAULT_RESOURCE_DIR` is hardcoded to a specific local user path (`/Users/jie/Documents/Github/my-mcp-server/resources`), which is a significant information leakage risk and poor practice for deployment if not explicitly overridden by `MCP_FILE_RESOURCES_DIR`.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassLow
Avg Tokens750
Stars0
Forks0
Last Update2025-11-30

Tags

MCP ServerAI AgentDevelopment ToolsCode AssistantWorkflow Management