laravel-mcp-sdk

laravel-mcp-sdk

3.4

If you are the rightful owner of laravel-mcp-sdk and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Laravel package for implementing the Model Context Protocol (MCP) in Laravel applications, facilitating communication between AI models and Laravel applications through standardized interfaces.

Laravel MCP is a comprehensive package designed to integrate the Model Context Protocol (MCP) into Laravel applications. It provides a robust framework for enabling communication between AI models and Laravel applications using standardized interfaces. The package supports multiple transport options, including HTTP, WebSocket, and Stdio, allowing for flexible deployment scenarios. It offers extensive server capabilities such as tool registration, resource management, prompt handling, and progress tracking. The tool system allows for the registration of custom tools with parameters, handling tool calls with arguments, and returning structured responses. Resource management is URI-based, supporting dynamic resource handling and content type support. The prompt system is template-based, supporting dynamic argument handling and context management. Additionally, the package includes a logging system with multiple log levels and transport-agnostic logging. The package is well-documented, with comprehensive PHPDoc documentation available for all classes and methods, making it easy for developers to integrate and extend its functionality.

Features

  • Multiple Transport Options: HTTP, WebSocket, Stdio
  • Server Capabilities: Tool registration, Resource management, Prompt handling
  • Tool System: Custom tool registration, Error handling
  • Resource Management: URI-based access, Dynamic handling
  • Prompt System: Template-based prompts, Context management