mcp-sdk
Verified Safeby NexusPHP
Overview
This PHP SDK provides the necessary data structures and message definitions for building both client and server applications that interact using the Model Context Protocol, primarily facilitating communication for large language model (LLM) interactions and data exchange.
Installation
No command providedSecurity Notes
The source code appears to be well-structured and focuses on defining data schemas for the Model Context Protocol. No direct use of dangerous functions like `eval`, `shell_exec`, or `unserialize` was found. Input validation for URIs (`ResourceValidator`) and regex patterns (`StringType`) is implemented, including error handling for regex compilation, which mitigates common injection risks. Classes are `final readonly`, promoting immutability. The `_meta` fields allow arbitrary data, but the SDK merely transports this; responsibility for safe handling of such data lies with the consuming application. Overall, the SDK itself seems robust for its intended purpose of message definition and serialization.
Similar Servers
rust-mcp-sdk
A high-performance, asynchronous Rust SDK for building Model Context Protocol (MCP) servers and clients, supporting various transports and authentication methods.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
php-mcp-sdk
A PHP SDK for building Model Context Protocol (MCP) servers that expose AI capabilities (tools, prompts, sampling) and data resources to clients, facilitating AI agent orchestration and structured human-AI interaction.
mcp
An MCP server providing a set of mathematical tools (calculator functions) for remote execution via the Model Context Protocol.