Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/dalehurley/php-mcp-sdkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/dalehurley/php-mcp-sdk/php-mcp-sdk-main)<a href="https://agentmods.dev/rules/dalehurley/php-mcp-sdk/php-mcp-sdk-main"><img src="https://agentmods.dev/badge/rules/dalehurley/php-mcp-sdk/php-mcp-sdk-main/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/dalehurley/php-mcp-sdk/php-mcp-sdk-main"><img src="https://agentmods.dev/badge/rules/dalehurley/php-mcp-sdk/php-mcp-sdk-main.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01150 | $0.01150 |
| Opus 5.5 | $0.00460 | $0.00460 |
| Sonnet 5.5 | $0.00230 | $0.00230 |
| Haiku 4.5 | $0.00115 | $0.00115 |
Grade A, and why
php-mcp-sdk-main scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHP MCP SDK Architecture Guide
This is the PHP implementation of the Model Context Protocol (MCP) SDK, following the patterns established by the TypeScript SDK.
Core Architecture Principles
- Follow TypeScript SDK Patterns: The PHP SDK should mirror the TypeScript SDK's architecture while using PHP idioms
- Type Safety: Use PHP 8+ type declarations, union types, and attributes extensively
- Async Support: Utilize ReactPHP or similar for async operations where the TypeScript SDK uses Promises
- PSR Standards: Follow PSR-4 for autoloading, PSR-12 for coding standards, PSR-7 for HTTP messages
Project Structure
php-mcp-sdk/
├── src/
│ ├── Server/ # Server implementations
│ │ ├── McpServer.php # High-level server API
│ │ ├── Server.php # Low-level server implementation
│ │ ├── Auth/ # Authentication providers
│ │ │ ├── Provider.php
│ │ │ └── Providers/
│ │ └── Transport/ # Server transport implementations
│ │ ├── StdioServerTransport.php
│ │ ├── StreamableHttpServerTransport.php
│ │ └── SseServerTransport.php (deprecated)
│ ├── Client/ # Client implementations
│ │ ├── Client.php # MCP client
│ │ └── Transport/ # Client transport implementations
│ │ ├── StdioClientTransport.php
│ │ ├── StreamableHttpClientTransport.php
│ │ └── SseClientTransport.php (deprecated)
│ ├── Shared/ # Shared components
│ │ ├── Protocol.php # Protocol base class
│ │ ├── Transport.php # Transport interface
│ │ ├── UriTemplate.php # URI template handling
│ │ └── AuthUtils.php # Authentication utilities
│ ├── Types/ # Type definitions
│ │ ├── Types.php # Core type definitions
│ │ ├── Schemas.php # Validation schemas
│ │ └── Exceptions.php # MCP exceptions
│ └── Utils/ # Utility classes
│ ├── JsonSchema.php # JSON Schema validation
│ └── Completable.php # Completion support
├── tests/ # Test files mirroring src structure
├── examples/ # Example implementations
│ ├── server/
│ └── client/
├── composer.json
└── README.md
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 149 lines · 1,150 tokens per session scan A 61869c9c5360
php-mcp-sdk-main is a cursor rule published in the GitHub repository dalehurley/php-mcp-sdk (27 stars, last pushed 10mo ago), licensed MIT. It adds 1,150 tokens to every session, about $0.0046 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
atelier
Atelier UI/UX and Backend Architecture Quality Gate.
typescript-coding-rule
It allows a subset of JSDoc tags. Most tags must occupy their own line, with the tag at the beginning of the line.
typescript-standards
// Good: Typed error handling function loadConfig(): Config { try { // ... loading logic } catch (error) { if (error instanceof yaml.YAMLException) { throw new Error(Invalid YAML in configuration file: ${error.message}); } throw error; } }.
python-code-validator
Validate generated Python at every step, not once at the end.
114-java-secure-coding
Java Secure coding guidelines.
project
Project rules for a CloudBase AI Toolkit codebase, including its folders, naming practices, commits, and slash commands.