Skip to main content
Glama
README.md
# Roslyn Codex LSP

[![CI](https://img.shields.io/github/actions/workflow/status/thomas-fazzari/roslyn-codex-lsp/ci.yml?branch=master&label=CI)](https://github.com/thomas-fazzari/roslyn-codex-lsp/actions/workflows/ci.yml)
[![Version](https://img.shields.io/github/v/release/thomas-fazzari/roslyn-codex-lsp)](https://github.com/thomas-fazzari/roslyn-codex-lsp/releases/latest)
[![Documentation](https://img.shields.io/badge/docs-VitePress-646CFF?logo=vitepress&logoColor=white)](https://thomas-fazzari.github.io/roslyn-codex-lsp/)
[![License](https://img.shields.io/github/license/thomas-fazzari/roslyn-codex-lsp)](LICENSE)

C# diagnostics, navigation and refactoring in Codex, backed by the official Roslyn language server through the Model Context Protocol (MCP).

Find definitions, implementations and references. Preview and apply renames, fixes and refactorings.
The bridge reads saved files and works independently of your editor.

[Get started](https://thomas-fazzari.github.io/roslyn-codex-lsp/getting-started.html) · [Usage](https://thomas-fazzari.github.io/roslyn-codex-lsp/usage.html) · [Development](https://thomas-fazzari.github.io/roslyn-codex-lsp/development.html)

## Install

Prerequisite: Codex CLI. The installer can use an existing Roslyn language server or install one for you.

macOS and Linux, with Bash, curl and tar:

```sh
curl -fsSL https://raw.githubusercontent.com/thomas-fazzari/roslyn-codex-lsp/master/install.sh | bash
```

Windows x64, in PowerShell:

```powershell
& ([scriptblock]::Create((Invoke-RestMethod https://raw.githubusercontent.com/thomas-fazzari/roslyn-codex-lsp/master/install.ps1)))
```

Open a new Codex session in your C# project. The `roslyn` MCP server is available globally.

## Contributors

[![Contributors](https://contrib.rocks/image?repo=thomas-fazzari/roslyn-codex-lsp)](https://github.com/thomas-fazzari/roslyn-codex-lsp/graphs/contributors)