mcp / testing-server
This is a web-based application for testing MCP servers. It was designed to demonstrate a MCP client capable of running in a typical web hosting environment.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: >=8.1
- mcp/mcp-sdk-php: ^1.0
Suggests
- ext-pcntl: For better process handling in CLI environments
This package is auto-updated.
Last update: 2025-03-17 11:45:11 UTC
README
This is a web-based application for testing MCP servers. It was designed to demonstrate a MCP client capable of running in a typical web hosting environment.
Installation
You can install the package via Composer:
composer create-project mcp/testing-server web-client
Using The Web Client
php server.php
To connect to the included MCP test server, enter php
in the Command field and server.php
in the Arguments field and click Connect to Server
. The interface allows you to test Prompts, Tools, and Resources. There is also a Debug Panel allowing you to view the JSON-RPC messages being sent between the Client and Server.
Web Client Notes And Limitations
php -S 127.0.0.1:8989
This MCP Web Client is intended for developers to test MCP servers, and it is not recommended to be made publicly accessible as a web interface without additional testing for security, error handling, and resource management.
While MCP is usually implemented as a stateful session protocol, a typical PHP-based web hosting environment restricts long-running processes. To maximize compatibility, the MCP Web Client will initialize a new connection between the client and server for every request, and then close that connection after the request is complete.
License
The MIT License (MIT). Please see License File for more information.