mcp-sdk-php

logiscapedev
309
Model Context Protocol SDK for PHP

Overview

What is mcp-sdk-php

mcp-sdk-php is a PHP implementation of the Model Context Protocol (MCP), designed to provide a standardized way for applications to supply context for Large Language Models (LLMs). It separates context provision from LLM interactions.

How to Use

To use mcp-sdk-php, install it via Composer with the command 'composer require logiscape/mcp-sdk-php'. You can create an MCP server by instantiating the Server class and registering handlers for various MCP protocol messages.

Key Features

Key features include the ability to build MCP clients and servers, support for standard transports like stdio and HTTP, and handling of all MCP protocol messages and lifecycle events.

Where to Use

mcp-sdk-php is primarily used in AI integration solutions, particularly for applications that require interaction with Large Language Models by providing contextual information.

Use Cases

Use cases include creating custom MCP servers that expose prompts and resources, developing applications that require context-aware interactions with LLMs, and building tools for testing and managing LLM interactions.

Content