npx agentspec-cli install fc13f075-cd87-40f7-b3a3-3e5fb0aabdc0 --file-type agents-md→ .agents/
# Repository Guidelines Kirby MCP is a CLI-first MCP server for Kirby CMS (composer-based Kirby projects). This repo contains the PHP library, the `kirby-mcp` executable, and a bundled Markdown knowledge base. ## Scoped Agent Guides (Keep in Sync) When changing behavior in a scoped area, update that area’s `AGENTS.md` and any referenced tests/docs (often `README.md`): - `src/Mcp/AGENTS.md` – MCP tools/resources/contracts - `src/Cli/AGENTS.md` – Kirby CLI execution/parsing - `src/Install/AGENTS.md` – runtime install/update semantics - `commands/mcp/AGENTS.md` – runtime command templates - `tests/Unit/AGENTS.md` and `tests/Integration/AGENTS.md` – test conventions - `kb/AGENTS.md` – shipped knowledge base - `.github/workflows/AGENTS.md` – CI workflows Note: `tests/cms/` intentionally has no scoped `AGENTS.md` (it’s a generated fixture sandbox). ## Project Structure & Module Organization - `src/` – PSR-4 library code (`Bnomei\\KirbyMcp\\*`), grouped by concern: `Mcp/`, `Cli/`, `Project/`, `Blueprint/`, `Docs/`, `Dumps/`, `Install/`, `Support/`. - `bin/kirby-mcp` – development entrypoint (published as `vendor/bin/kirby-mcp` via Composer). - `commands/mcp/` – Kirby CLI command wrappers installed into host projects by `kirby-mcp install`. - `kb/` – bundled markdown knowledge base. - `tests/` – Pest tests (`tests/Unit`, `tests/Integration`) with fixtures in `tests/fixture` and the generated Kirby site in `tests/cms`. ## Build, Test, and Development Commands - `composer install` – install PHP deps (PHP `^8.2`; CI currently runs on PHP `8.5`). - `composer mcp` / `bin/kirby-mcp` – run the CLI locally. - `composer test` – run Pest (prepends `tests/prepend.php`). - `composer analyse` – run PHPStan (`phpstan.neon.dist`, level 8). - `composer format` – format PHP via Pint (PSR-12 preset). - `npm ci && npm run format` – format Markdown/YAML/JS via Prettier. ## Coding Style & Naming Conventions - Indentation: PHP = 4 spaces; MD/YAML/JSON/JS = 2 spaces (see `.editorconfig`). - Classes follow PSR-4 (file name matches class); tests end with `Test.php`. - Don’t commit generated deps/artifacts: `vendor/`, `node_modules/`, `.phpunit.cache/`, `.phpstan.cache/`. ## Testing Guidelines - Prefer adding/adjusting tests alongside changes; keep unit tests deterministic. - Put fast logic tests in `tests/Unit`; use `tests/Integration` when Kirby runtime/fixtures are required. - **Fixture setup:** Run `composer cms:starterkit` before running the full test suite (tests expect the starterkit, not plainkit). - Coverage runs: see `TESTING.md` (baseline command: `herd coverage ./vendor/bin/pest --coverage`). ## Commit & Pull Request Guidelines - Commit history is minimal; use descriptive, imperative messages (optionally `feat:`, `fix:`, `chore:`). - PRs include: what/why, how to test (`composer test`), and any user-visible changes (CLI output or docs). - Keep `CHANGELOG.md`, `SECURITY.md`, and `CONTRIBUTING.md` updated when policies or releases change. - Run `composer format` before pushing; CI may auto-fix styling with Pint. ## Security & Configuration - Treat anything that executes Kirby CLI or evaluates PHP as sensitive; keep new capabilities gated/allowlisted and document defaults and risks in `README.md`.
MCP Boilerplate Project Overview
This rule provides a guide to understanding the structure and core functionalities of the MCP Boilerplate project. It's designed to help you navigate and extend the boilerplate effectively.
by AgentHub Crawler
AI Project Synthesizer - Windsurf Rules
This is an MCP (Model Context Protocol) server that synthesizes code from multiple repositories. It integrates with Windsurf IDE to provide intelligent project generation capabilities.
by AgentHub Crawler
Project Guidelines
A distributed Model Context Protocol (MCP) server implementing an intelligent web ingestion and retrieval-augmented generation pipeline for AI agents and coding assistants.
by AgentHub Crawler
Sign in to leave a comment.
AppMCP Project Intelligence
This is AppMCP - a Swift Package that implements a Model Context Protocol (MCP) server for macOS GUI automation. The project enables AI systems to see, understand, and control macOS applications through standardized MCP resources and tools.
by AgentHub Crawler