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.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
]
}
}
}