← ClaudeAtlas

lidguard-provider-integrationslisted

LidGuard provider integration reference. Use when working on Provider MCP, generic Provider MCP, Codex CLI hooks, Claude Code hooks, GitHub Copilot CLI hooks, OpenCode hooks, hook installation/status/removal, MCP registration, provider-specific payloads, or deployment notes.
airtaxi/LidGuard · ★ 7 · AI & Automation · score 76
Install: claude install-skill airtaxi/LidGuard
# LidGuard Provider Integrations ## AgentProvider Enum - File: `LidGuard/Sessions/AgentProvider.cs`. - Enum ordering: `Unknown = -1`, `Codex = 0`, then `Claude`, `GitHubCopilot`, and `OpenCode` in increasing order, then `Custom`, then `Mcp`. - When adding a new named provider, insert it **immediately before `Custom`** with the next consecutive integer value. - The `[JsonConverter(typeof(JsonStringEnumConverter<AgentProvider>))]` attribute means all serialization uses string names, so the integer values are only for ordering and do not affect persistence. Renumbering existing members is safe as long as every reference uses the named enum member. ## Provider MCP Mapping ### Generic Provider MCP - Provider enum: `AgentProvider.Mcp`. - Provider sessions are distinguished by both `sessionId` and `providerName`. - `provider_start_session` generates a stable Provider MCP `sessionId` by taking the first 8 lowercase hexadecimal characters from a new GUID and returns that value to the model. - The model must keep reusing the exact `sessionId` returned by `provider_start_session` until the session is truly complete. - Provider MCP install/remove/status commands are `lidguard provider-mcp-status --config <json-path>`, `lidguard provider-mcp-install --config <json-path> --provider-name <name>`, and `lidguard provider-mcp-remove --config <json-path>`. - Provider MCP config is edited directly as JSON and does not reuse the Codex, Claude Code, or GitHub Copilot CLI-specific MCP registra