It's much easier to give your agents the LSP for the language(s) it's working on.
A project that turns them into MCP: https://github.com/isaacphi/mcp-language-server
Some basic differences described here: https://news.ycombinator.com/item?id=30664671
More in depth: https://lambdaland.org/posts/2026-01-21_tree-sitter_vs_lsp/
Claude Code's instructions for LSP: https://github.com/Piebald-AI/claude-code-system-prompts/blo...
I'm not convinced that ASTs are meaningfully helpful in the grand scheme and the long-run. LSPs and code intelligence I find useful as a human and for my coding agent.
It's much easier to give your agents the LSP for the language(s) it's working on.
A project that turns them into MCP: https://github.com/isaacphi/mcp-language-server