r/ZedEditor • u/Goldziher • 10d ago
Generating a project-local Zed context server from shared MCP configuration
Hi people,
I'm glad to announce ai-rulez v5. It's a CLI and MCP for managing the instructions, skills, and settings that coding agents use in a repository. It's available through Homebrew, Scoop, npm, PyPI, and Go (see the installation instructions for details). The tool covers the following parts of AI Governance:
- Keep MCP settings in the repository and generate the native files for each client.
- Inspect command changes before starting an editor and check for configuration drift in CI.
I maintain ai-rulez. I tested this with v5.13.2 in a scratch Git repo. Run ai-rulez init zed-demo --yes --skip-content, set presets = ["zed"] in .ai-rulez/config.toml, then add:
[[mcp_servers]]
name = "repo-skills"
command = "ai-rulez"
args = ["mcp", "--serve-skills", "--read-only"]
Run ai-rulez generate and inspect .zed/settings.json. It writes the command and arguments under context_servers.repo-skills. ai-rulez generate --check checks the generated files for drift. If your team uses another supported editor, its preset can render the same server declaration into its own native format. The MCP configuration docs cover the server options.
I'm happy to hear any comments. If you find the tool useful, star it. It really does help. And of course, I'd love to see people use it and get involved with the project.