php-mcp-sdk / rules
Cursor rule27 starsChanged 15 months agoMITView on GitHub
The CHANGELOG.md file must be maintained for every change to the PHP MCP SDK. When making changes, ensure the changelog includes: ✅ Good: "Added McpServer::registerBatchTools() method to register multiple tools at once, improving initialization performance" ❌ Bad: "Updated server code" ✅ Good: "Fixed memory leak in StdioTransport when handling messages larger than 1MB" ❌ Bad: "Fixed bug" Note: If you're unsure about how to categorize a change, review the Keep a Changelog guidelines linked in the changelog header.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- .cursor/rules/laravel-inertia-integration.mdcCursor rule
- .cursor/rules/php-auth-implementation.mdcCursor rule
- .cursor/rules/php-client-implementation.mdcCursor rule
- .cursor/rules/php-mcp-sdk-main.mdcCursor rule
- .cursor/rules/php-server-implementation.mdcCursor rule
- .cursor/rules/php-transport-implementation.mdcCursor rule
- .cursor/rules/php-types-validation.mdcCursor rule
The file
We split this changelog-maintenance.mdc into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
When making changes, ensure the changelog includes:
- Distinctive: line 74
Keep entries concise but informative
- Distinctive: line 75
Update immediately after changes to avoid forgetting details
- Distinctive: line 77
Note: If you're unsure about how to categorize a change, review the Keep a Changelog guidelines linked in the changelog header.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- alwaysApply: true --- # Changelog Maintenance Requirements ## IMPORTANT: Always Review and Update the Changelog The [CHANGELOG.md](mdc:CHANGELOG.md) file must be maintained for every change to the PHP MCP SDK. ### Before Starting Any Work 1. **Review the changelog** to understand: - Recent changes that might affect your work - Current version and unreleased changes - Any deprecated features to avoid using 2. **Check for conflicts** with ongoing work listed in "Unreleased" ### After Completing Changes 1. **Update the changelog** immediately with: - Clear description of what changed - Category (Added/Changed/Deprecated/Removed/Fixed/Security) - Any breaking changes or migration notes - Dependencies added or updated 2. **Format entries** properly: ```markdown ### Added - Brief description of new feature or capability - Another new feature with explanation if needed ### Changed - What was modified and why (if not obvious) ### Fixed - Bug that was fixed with issue reference if applicable ``` ### Changelog Update Checklist When making changes, ensure the changelog includes: - [ ] All new features or capabilities added - [ ] Any changes to existing functionality - [ ] Bug fixes with clear descriptions - [ ] New dependencies or dependency updates - [ ] Breaking changes highlighted with migration notes - [ ] Security fixes (if applicable) - [ ] Deprecation notices for features being phased out ### Examples of Good Changelog Entries ✅ **Good**: "Added `McpServer::registerBatchTools()` method to register multiple tools at once, improving initialization performance" ❌ **Bad**: "Updated server code" ✅ **Good**: "Fixed memory leak in `StdioTransport` when handling messages larger than 1MB" ❌ **Bad**: "Fixed bug" ### Remember - The changelog is for humans, not machines - write clearly - Include the "why" when the reason isn't obvious - Group related changes together - Keep entries concise but informative - Update immediately after changes to avoid forgetting details **Note**: If you're unsure about how to categorize a change, review the [Keep a Changelog](https://keepachangelog.com) guidelines linked in the changelog header.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

