# Ruler Configuration File
# See https://ai.intellectronica.net/ruler for documentation.

# To specify which agents are active by default when --agents is not used,
# uncomment and populate the following line. If omitted, all agents are active.
default_agents = ["opencode"]

# Enable nested rule loading from nested .ruler directories
# When enabled, ruler will search for and process .ruler directories throughout the project hierarchy
nested = true

# [gitignore]
# enabled = true
# local = false  # set true to write generated ignores to .git/info/exclude instead

# --- Agent Specific Configurations ---
# You can enable/disable agents and override their default output paths here.
# Use lowercase agent identifiers: aider, amp, claude, cline, codex, copilot, cursor, jetbrains-ai, kilocode, pi, windsurf

# [agents.copilot]
# enabled = true
# output_path = ".github/copilot-instructions.md"

# [agents.aider]
# enabled = true
# output_path_instructions = "AGENTS.md"
# output_path_config = ".aider.conf.yml"

# [agents.gemini-cli]
# enabled = true

# --- MCP Servers ---
# Define Model Context Protocol servers here. Two examples:
# 1. A stdio server (local executable)
# 2. A remote server (HTTP-based)

# [mcp_servers.example_stdio]
# command = "node"
# args = ["scripts/your-mcp-server.js"]
# env = { API_KEY = "replace_me" }

# [mcp_servers.example_remote]
# url = "https://api.example.com/mcp"
# headers = { Authorization = "Bearer REPLACE_ME" }
# 
# mcp-template: mcp_servers
#
# [mcp_servers."Better Auth"]
# url = "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp"
# type = "remote"
#
# [mcp_servers.beads]
# command = "beads-mcp"
# type = "stdio"
#
[mcp_servers.bun]
url = "https://bun.com/docs/mcp"
type = "remote"
#
# [mcp_servers.chrome-devtools]
# command = "stdio-multiplexer"
# args = ["chrome-devtools-mcp", "--", "--user-data-dir=.chrome/profile"]
# env.SOCKET_PATH = ".chrome/chrome-devtools-mcp.sock"
#
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"
type = "remote"
#
# [mcp_servers.next-devtools]
# command = "bun"
# args = ["/home/dstanchiev/projects/next-devtools-mcp/dist/index.js"]
# env.NEXT_TELEMETRY_DISABLED = "1"
# env.NEXT_DEVTOOLS_PKG_MANAGER = "bun"
#
# [mcp_servers.niri]
# command = "niri-mcp-server"
#
# [mcp_servers.rustdocs]
# command = "rustdocs-mcp"
#
[mcp_servers.shadcn]
command = "bunx"
args = ["--bun", "shadcn@latest", "mcp"]
#
# [mcp_servers.github]
# url = "https://api.githubcopilot.com/mcp"
# headers.Authorization = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#
[mcp_servers.grep-app]
command = "grep-app-mcp-server"
#
# [mcp_servers."openrouter.ai"]
# url = "https://openrouter.ai/docs/_mcp/server"
# type = "remote"
#
# [mcp_servers.nix]
# command = "mcp-nixos"
#
# [mcp_servers.devenv]
# command = "devenv"
# args = ["mcp"]
#
# [mcp_servers.kagi]
# command = "kagimcp"
# env.KAGI_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#
# [mcp_servers.dokploy]
# type = "stdio"
# command = "bunx"
# args = ["-y", "@dokploy/mcp@latest"]
# env.DOKPLOY_URL = "https://dokploy.cloud.dmytros.dev/api"
# env.DOKPLOY_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
