#!/usr/bin/env php info('Starting MCP Manual Registration (Stdio) Server...'); Server::make() ->withServerInfo('Manual Reg Server', '1.0.0') ->withLogger(logger()) ->withContainer(container()) ->withTool([SimpleHandlers::class, 'echoText'], 'echo_text') ->withResource([SimpleHandlers::class, 'getAppVersion'], 'app://version', 'application_version', mimeType: 'text/plain') ->withPrompt([SimpleHandlers::class, 'greetingPrompt'], 'personalized_greeting') ->withResourceTemplate([SimpleHandlers::class, 'getItemDetails'], 'item://{itemId}/details', 'get_item_details', mimeType: 'application/json') ->build() ->connect(new StdioTransport(logger: logger())); logger()->info('Server listener stopped gracefully.');