Back to Home
jas88 icon

MCPsharp

Verified Safe

by jas88

Overview

Provides intelligent C# project analysis and semantic code editing capabilities to AI agents via the Model Context Protocol (MCP).

Installation

Run Command
dotnet run --project src/MCPsharp/MCPsharp.csproj

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-13

Tags

C#.NETRoslynSemantic EditingAI-PoweredMCP ServerCode AnalysisProject ManagementDeveloper Tools