OpenCode Setup

Configure Glider with OpenCode.

OpenCode

Prerequisite: .NET 10 SDK must be installed before running dotnet tool install --global glider.
dotnet tool install --global glider
OpenCode launches local MCP servers through a command array. Make sure glider is available on PATH.
# bash/zsh
export PATH="$PATH:$HOME/.dotnet/tools"
which glider
Create opencode.json in your project root. This local command setup uses stdio. OpenCode config files are merged, and project config overrides global defaults. OpenCode MCP docs: thdxr.dev.opencode.ai/docs/mcp-servers.
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "glider": {
      "type": "local",
      "command": ["glider", "--default-timeout", "30m"],
      "enabled": true
    }
  }
}
Add the same mcp block to ~/.config/opencode/opencode.json if you want Glider available across projects.
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "glider": {
      "type": "local",
      "command": ["glider", "--default-timeout", "30m"],
      "enabled": true
    }
  }
}
If you prefer Streamable HTTP, start Glider yourself and configure OpenCode as a remote MCP server at http://localhost:5001/mcp.
glider --transport http --default-timeout 30m

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "glider": {
      "type": "remote",
      "url": "http://localhost:5001/mcp",
      "enabled": true
    }
  }
}
List configured MCP servers, then start OpenCode and ask it to use Glider for a C# workspace.
opencode mcp list
opencode
# Ask: "Use glider to load this solution and run server_status."
↑/↓ NavigateEnter OpenSpace Expand