u/Independent_Turn_532

▲ 2 r/mcp

Two MCP servers that give your AI the compiler's eyes — one for your code (LSAI), one for 900+ OSS libraries (xmp4)

I've been building two MCP servers for the past 7 months and I think they solve a problem most AI coding agents have: they grep and guess instead of actually understanding code.

The problem

When your AI needs to answer "who calls this method?", "what breaks if I change this?", or "how does this library API work?" — the default path is grep → read 50 files → re-rank → guess. On any serious codebase that's 40-60k tokens of noise per question, most of it irrelevant string matches.

The solution: two MCP servers, one tandem

LSAI — your code, live

Runs locally. Wraps real LSP servers — Roslyn for C#, rust-analyzer, jdtls for Java, typescript-language-server, gopls, ty for Python, clangd for C++, intelephense for PHP. 9 languages, 14 MCP tools.

{"mcpServers":{"lsai":{"command":"~/.lsai/run","args":["--stdio"]}}}

Install: curl -fsSL https://github.com/0ics-srls/Zerox.Lsai.Public/releases/latest/download/install.sh | bash

What your AI gets:

  • lsai_callers → "15 callers, exact file:line"
  • lsai_impact → "MEDIUM risk, 27 tests affected"
  • lsai_hierarchy → full inheritance chain
  • lsai_rename → safe rename across workspace

xmp4 — every library, pre-indexed

900+ OSS libraries already indexed across 12 languages. 15,000+ navigable projects. 17 MCP tools. No install, no API key:

{"mcpServers":{"xmp4":{"type":"http","url":"https://mcp.example4.ai/mcp"}}}

Real source, typed callers, hierarchy, tests — for libraries like spring-boot, django, tokio, express, EF Core, Flask, and hundreds more.

How they work together

LSAI tells your AI "your PublishAsync calls GetRequiredService" (your code). xmp4 shows how GetRequiredService is implemented in dotnet/runtime (the library). The AI traces calls from your code into library internals and back — no grep, no cloning, no guessing.

Token usage on exploration: ~1,500 instead of ~50,000. Measured on real tasks across 4 tier-1 libraries — full whitepaper here.

Links

Works with Claude Code, Cursor, VS Code, Claude Desktop — any MCP client.

Both free, actively developed. Happy to answer questions!

reddit.com
u/Independent_Turn_532 — 8 days ago

I built a free MCP extension for Visual Studio — gives Copilot/Claude semantic access to your codebase via Roslyn (41 tools)

I've been working on this for about 7 months and figured it's time to share properly.

The problem

AI assistants in VS (Copilot, Claude via custom model) only see text — your open file, maybe some context. They don't understand your solution structure, can't resolve types, don't know who calls what. So they grep and guess.

What vs-mcp does

It's a Visual Studio extension that exposes Roslyn's semantic analysis through MCP (Model Context Protocol). Your AI assistant gets actual compiler-grade tools — 41 of them:

  • FindSymbols — search across the entire solution
  • GetDocumentOutline — structure with real signatures
  • FindSymbolUsages — all references, type-resolved
  • GetMethodCallers / GetMethodCalls — call graph
  • GetInheritance — type hierarchy
  • GetSymbolAtLocation — what's at this line:col?
  • ExecuteCommand — run builds, tests from the AI
  • ...and 33 more

Real example: searching for "WhisperFactory" — grep returns 47 matches across tests, docs, comments. vs-mcp returns "class, Whisper.net namespace, line 16" in one call.

Demo video

🎬 Watch the 2-min demo on YouTube

Setup

Works with VS 2022 and VS 2026. Install from Marketplace, enable MCP in Copilot settings, done.

📦 Marketplace — free

🌐 Website with full docs

Part of a bigger picture

vs-mcp gives your AI eyes on your code inside Visual Studio. I also built two complementary MCP servers:

  • LSAI — same concept but for CLI tools (Claude Code, Cursor). Runs locally, wraps LSP servers for 9 languages.
  • xmp4 — pre-indexed 900+ OSS libraries. Your AI navigates third-party code with the same semantic precision.

Together: your AI has compiler-grade intelligence on your code AND every library you use. More at example4.ai.

Happy to answer any questions about the architecture or setup!

u/Independent_Turn_532 — 8 days ago