MCPsharp
Verified Safeby jas88
Overview
Intelligent C# project analysis and semantic code editing for AI agents.
Installation
dotnet run --project src/MCPsharp/MCPsharp.csprojEnvironment Variables
- OPENROUTER_API_KEY
- OLLAMA_URL
- OLLAMA_MODEL
- MCP_MAX_TOKENS
- MCP_ENABLE_TRUNCATION
- MCP_SUMMARY_STYLE
- MCP_TRUNCATE_LENGTH
- MCP_WARNING_THRESHOLD
- MCP_INCLUDE_TOKEN_COUNT
- MCP_EXEMPT_TOOLS
- MCP_AUTO_LOAD_PROJECT
- MCP_AUTO_LOAD_ANALYZERS
- MCP_LAZY_LOAD_ROSLYN
- ANTHROPIC_API_KEY
Security Notes
The server integrates AI models internally (Ollama/OpenRouter). Cloud AI (OpenRouter) requires an API key (OPENROUTER_API_KEY) which is expected to be managed via environment variables. The analyzer integration system includes a 'Security Framework' for validating analyzer assemblies, managing permissions, and sandboxing execution to mitigate risks from third-party code. ReDoS prevention is implemented for regex search. Overall, a strong security posture for an AI-integrated code analysis tool.
Similar Servers
jinni
A tool to efficiently provide Large Language Models with structured project context for code comprehension and generation tasks.
UnityNaturalMCP
Integrates Unity Editor with Model Context Protocol (MCP) clients like AI coding assistants, enabling direct execution of Unity C# tools from these clients.
csharp-lsp-mcp
An MCP server that provides C# and XAML language intelligence by integrating with `csharp-ls` and built-in XAML analysis for AI assistants like Claude.
ultrascript-tools-mcp
An expert developer tool for comprehensive code analysis, semantic search, refactoring, code modification, and automated documentation. It leverages AI and specialized runtime environments (Node.js/Bun) for high performance, featuring deep Git integration for branch-aware indexing and merge conflict resolution across multiple programming languages.