MCPsharp
Verified Safeby jas88
Overview
Provides intelligent C# project analysis and semantic code editing capabilities to AI agents via the Model Context Protocol (MCP).
Installation
dotnet run --project src/MCPsharp/MCPsharp.csprojEnvironment Variables
- OLLAMA_URL
- OLLAMA_MODEL
- OPENROUTER_API_KEY
- MCP_MAX_TOKENS
- MCP_ENABLE_TRUNCATION
- MCP_SUMMARY_STYLE
- MCP_TRUNCATE_LENGTH
- MCP_WARNING_THRESHOLD
- MCP_INCLUDE_TOKEN_COUNT
- MCP_EXEMPT_TOOLS
Security Notes
The server demonstrates a strong security posture. It enforces strict path validation for file operations, preventing traversal attacks. A comprehensive security framework for external Roslyn analyzers includes digital signature verification, malicious pattern detection, granular permission systems (file/network/command access), sandboxed execution with resource limits, and audit logging. AI-powered code transformations leverage Roslyn's Abstract Syntax Tree (AST) to ensure syntactically valid and compilable changes, mitigating risks of arbitrary code modification. ReDoS prevention is implemented for regex-based searches. No obvious hardcoded secrets or arbitrary network access are exposed.
Similar Servers
cclsp
MCP server to integrate LLM-based coding agents with Language Server Protocol (LSP) servers for robust symbol resolution and code navigation.
azure-devops-mcp-server
Exposes Azure DevOps operations as tools for AI assistants, enabling AI agents to automate tasks like creating work items, managing pull requests, and queuing builds.
ultrascript-tools-mcp
An AI-powered assistant for analyzing, navigating, and refactoring codebases using a code graph and semantic search.
devcontext
The DevContext MCP Server enhances development experience by providing continuous, project-centric context awareness and intelligent context management for coding agents.