Back to Home
sahil-makandar icon

mcp-servers-github-mslearn-filesystem

by sahil-makandar

Overview

A multi-server Model Context Protocol client orchestrating GitHub, MS Learn, and FileSystem tools via Azure OpenAI for an AI agent.

Installation

Run Command
python client.py

Environment Variables

  • AZURE_OPENAI_ENDPOINT
  • AZURE_OPENAI_KEY
  • AZURE_OPENAI_DEPLOYMENT
  • GITHUB_TOKEN

Security Notes

The `server_filesystem.py` module exposes `read_file` and `save_file` tools directly to the AI without adequate path sanitization or validation. The `read_file` tool takes a `filepath` argument, which can be exploited via path traversal (e.g., `../../../../etc/passwd`) to read arbitrary files on the system that the Python process has permissions for. Similarly, `save_file` constructs paths using `topic` and `filename` arguments, which could be manipulated via path traversal to write files outside the intended `data/` directory. This poses a significant risk for data exfiltration (e.g., `.env` file containing API keys) or arbitrary file writes, even if the AI is generally trusted, as prompt injection could exploit these vulnerabilities.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-26

Tags

Multi-serverMCPOpenAIGitHubMicrosoft LearnFileSystemAI Agent