Back to Home
jas88 icon

MCPsharp

Verified Safe

by jas88

Overview

Intelligent C# project analysis and semantic code editing for AI agents.

Installation

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

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens250
Stars0
Forks0
Last Update2026-01-18

Tags

C#.NETRoslynMCPAI-Powered