PHP code example of bharathcoorg / intermcp

1. Go to this page and download the library: Download bharathcoorg/intermcp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bharathcoorg / intermcp example snippets


use InterMcp\Client;

$client = new Client();
$client->start();

$result = $client->callTool('system_info', []);
echo json_encode($result, JSON_PRETTY_PRINT);

$client->close();