Read-only MCP server that gives AI assistants Roslyn-powered browsing of a C# solution: list types by folder or namespace, read XML docs, and fetch method signatures and bodies without reading whole files.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add c-class-analyzer -- dnx CSharpAnalyserMcp --yes --workspace '<WORKSPACE>'~/.codex/config.toml
[mcp_servers.c-class-analyzer]
command = "dnx"
args = ["CSharpAnalyserMcp", "--yes", "--workspace", "<WORKSPACE>"]
# codex mcp add c-class-analyzer -- dnx CSharpAnalyserMcp --yes --workspace '<WORKSPACE>'~/.cursor/mcp.json
{
"mcpServers": {
"c-class-analyzer": {
"command": "dnx",
"args": [
"CSharpAnalyserMcp",
"--yes",
"--workspace",
"<WORKSPACE>"
]
}
}
}.vscode/mcp.json
{
"servers": {
"c-class-analyzer": {
"type": "stdio",
"command": "dnx",
"args": [
"CSharpAnalyserMcp",
"--yes",
"--workspace",
"<WORKSPACE>"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"c-class-analyzer": {
"command": "dnx",
"args": [
"CSharpAnalyserMcp",
"--yes",
"--workspace",
"<WORKSPACE>"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"c-class-analyzer": {
"command": "dnx",
"args": [
"CSharpAnalyserMcp",
"--yes",
"--workspace",
"<WORKSPACE>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"c-class-analyzer": {
"command": "dnx",
"args": [
"CSharpAnalyserMcp",
"--yes",
"--workspace",
"<WORKSPACE>"
]
}
}
}