HelPHP

mcp_server.php

MCP (Model Context Protocol) stdio server. Meant to be launched as a subprocess by an MCP client (Claude Code, Cursor, ...), talking newline-delimited JSON-RPC 2.0 over stdin/stdout.

To call from CLI, either form: php mcp_server.php /path/to/my/instance/ php mcp_server.php -t"/path/to/my/instance/"

Trust model: whoever can execute this script already has filesystem/DB access to the instance (equal to or greater than a web admin) -- same trust level as every other CLI utility in helphp/utils/ (install_module.php, job_manager.php, ...), none of which go through $USER-based login. So $USER->admin is set directly, with no login handshake. Destructive tools still require arguments.confirm === true on every tool call (see helPHP\libs\Mcp\Server::handle_tools_call).

Table of Contents

Functions

mcp_server()  : mixed

Functions

mcp_server()

mcp_server(mixed $argv) : mixed
Parameters
$argv : mixed
On this page

Search results