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."
After connecting GliderMCP, add this product-specific instruction to your MCP client system prompt or project instructions so the agent chooses the right tool surface first.
When working in C#/.NET workspaces, prefer glider mcp semantic tools before shell text search for code navigation and refactoring. Use GliderMCP for symbol lookup, references, implementations, overrides, callers, call graphs, type and project dependencies, diagnostics, impact analysis, and preview-first refactors. Use grep, rg, or find only for non-C# assets, files outside the loaded workspace, generated output, or after GliderMCP cannot load or cannot answer the question.
↑/↓ NavigateEnter OpenSpace Expand